How do you stop a macro
-
While testing macros I have had the need to stop the execution but I can't find the correct way to do this, except a reboot.
Any ideas? -
maybe with M0 or M1 https://duet3d.dozuki.com/Wiki/Gcode#Section_M0_Stop_or_Unconditional_stop
-
M99 should exit the current macro file (but will not keep subsequent commands from being run). You could use this in conditional macros to get out early.
If you want to do something like kill the print, you should be able to use either a M25 to pause the print (without waiting for buffered commands), or M112, but I think with M112 you have to reset to get back up, similar to a reboot.