I am trying to write a gcode/mcode sequence to do the following:
1. Run a motor on X axis until it hits a limit switch and stops (I'm using a limit switch input on a breakout board to operate an optical sensor).
2. Then dwell for 2 seconds and then activate a relay on Y output for 2 - 3 milliseconds then dwell for 2 seconds.
3. Then activate a relay on Z output for 2 - 3 milliseconds then dwell for 2 seconds and then repeat the procedure again.
Can anyone help as I'm new to the whole Mach3 scene and would appreciate any help.