Thought I'd start a new topic on this. I want to turn my laser on and off with a fast output. I understand that the PMDX-422 doesn't support the M62P1/M63P1 command in Mach4?
I have read that the best way is to use the Spindle commands M3 and M5. This works but I would rather not do this as funnily enough I am using this output (and the relay) for the spindle and I don't want to change the way the Spindle behaves (e.g. turning on the spindle in my gcode header before starting a job). It also means I have to remember to power off the spindle controller before doing any lasering.
I also don't wish to use an M8 or M7 (Flood/Mist) command due to the fact that I am using M8 for my extraction and coolant, and M9 turns them both off.
I can't use the A-Axis DIR pin trick, as I am already using four axes (two on my X axis) and the controller only supports 4.
Is there not a straightforward way to turn an output of my choice on and off from the gcode?
Hopefully a solution would help others as I can't seem to find a simple answer.
Thanks!