Macros
Last updated
Last updated
This section describes how to add a START_PRINT
and END_PRINT
macro in Klipper which will replace the gcode that is usually set in your Slicer software. I see moving the Start/End Print gcode from the Slicer to Klipper as an advantage, as you can update the gcode in your printer.cfg
in Klipper directly, instead of having to open your Slicer, change the settings and then re-slicing the file you want to print.
Adding [gcode_macro START_PRINT]
and [gcodemacro END
_
PRINT]
to your printer.cfg
;
From the MainsailOS web interface, click Machine
, then click on printer.cfg
;
Scroll down until you see the [pause_resume]
section;
Copy all of the text from the Start_Print_and_End_Print.txt
file above and paste it just after the [pause_resume]
section in the printer.cfg
file;
Click the Save & Restart
button near the top right of the window;
This will save the printer.cfg
file and and restart Klipper;