Yep. M65 calling a macro to toggle on an Output seems the best solution. However I'm hung up on how to write that macro. I've looked at the sample macros ion my profile's macro directory and the structure is fairly straightforward. What I'm missing is the function that enables and disables an Output. Anyone who can show me a sample of how that function would be called in a macro would be most appreciated.
M64 and M65 are existing macros in Mach4. From the "Mill GCode Programming" pdf in the Mach4Hobby\docs folder...
M64 – Immediate Output On
The specified output is turned on immediately.
Format: M64 P__
P specifies the output number to turn on. For example: Output0 = 0, Output3 = 3, Output10 = 10, etc.
M65 – Immediate Output Off
The specified output is turned off immediately.
Format: M65 P__
P specifies the output number to turn on. For example: Output0 = 0, Output3 = 3, Output10 = 10, etc.