The round hole is 2-3mm in diameter and is drilled into 60-90m/min multilayer pipe and must only puncture the top layer. It must be 2-3mm deep. if it is 10mm deep then i want to sound an alarm. But for robustness when using different pipe diameters rather than use the actual distances I want to only look at slope. That way I don't need any adjustment if I am looking at 32mm diameter pipe or 20mm diameter pipe.
Mamo,
You may have allowed for this in your 450Hz spec, but maybe not. If the "pulse" of the hole is significantly shorter than the non hole reading, you may have to up your Hz spec. I'm presuming that you counted the holes per second and not double the hole width as a cycle.
OK... I'm confused (g!).
90 m/min = 90,000 mm/min = 1500 mm/sec
Wow. Flying, that. So, a 2mm diameter hole is going to pass the laser in 1.3 ms. This seems to be more like 770Hz, not 450Hz. Or do smaller holes run at slower speeds? Even so, a 3mm hole is going to go by in 2 ms, so not a lot of help there.
Either way, the laser itself has to process quickly enough to "notice" the hole. The laser, and it's internal electronics probably can. The sensor's interface to the outside world probably can't - check that part with the vendor. Sure, the "laser" can run at a pretty high bandwidth. But how about the the 4-20mA output? What are the specs on that?
Even given that the laser has an analog output, it probably can't slew quickly enough to keep up, and why bother anyway? If your criteria is that 3mm is OK, but 10mm is too deep, then there have got to be much cheaper laser sensors that can measure a distance and set a discrete output if the return signal is out of range. Just setting the discrete output is going to take around 0.5 ms to 1 ms, even if the laser sensor itself can take and process multiple measurements every millisecond.
Also, how often does a hole come along to be measured, and what do you do about it if a bad hole is found? How do you keep track of the flaws, and mark or cut or whatever downstream? That stuff is likely to be harder than finding the flaw, especially given that your good/bad criteria is so well delineated (3mm vs. 10mm).