Call end.g when sdcard file completes
-
Although slicers will automatically add pre and post code, I would like the firmware to automatically call a macro upon completion of the print.
-
You can create a file called end.g and then call it with the M98 command from your slicer end code.
https://duet3d.dozuki.com/Wiki/GCode#Section_M98_Call_Macro_Subprogram
So add M98 end.g to the slicer end code.
Then add whatever you want to end.g
-
It already calls stop.g if your file ends with command M0.
-
Thanks. And thanks. I suspected there must be already a solution.