OK, so how do I do that? Do I call the macro at the end of the Gcode by using a custom M code? If I do I won't have to use a loop, just check the input and issue a cycle start if the input is active.
If I do it this way, I will have to issue a M30 from the macro in order to close and rewind the current Gcode program before issuing a cycle start.
Am I on the right track or is there a better way?
Thanks for you help.