Originally Posted by
damae
Am I right, is it a simple thing to do?
Normally that is a simple thing, I am not familiar with Mach2, but if you move 5mm then wait for a pulse, you may have to set it up as an M code in a CNC system, to wait until the input goes active high, the ideal way is to set up handshaking, because if it is not the rising edge of the pulse you are detecting but the fact that it is high indicating you should index to the next 5mm move, then if you index and the pulse has not ended, i.e. not=0 then you it could be seen as a new index move and the machine will index prematurely.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.