===== What are Klipper Macros? ====== {{tag>faq about articles}} ...work in progress... {{ :shopping.png?96 |}} Macros are small programs or functions written in [[Klipper]] [[gcode]]. They're defined in [[printer.cfg]] (or files that it includes) and are loaded when Klipper performs a soft or hard restart ([[https://www.klipper3d.org/G-Codes.html#restart|RESTART]] or [[https://www.klipper3d.org/G-Codes.html#firmware_restart|FIRMWARE_RESTART]] respectively), which reads printer.cfg. Macros can be called from: * [[gcode]] * the [[fluidd]] console * by pressing a button for the macro in the [fluidd] GUI ==== Important Macros ==== === PRINT_START === See [[print_start_macro]]. It is called in addition or in conjunction with your slicer's machine print finish gcode. It is called be default in certain earlier versions of Klipper which shipped with the N4. === PRINT_END === This macro performs machine specific post-print activities and also normally called after CANCEL_PRINT. It is called in addition or in conjunction with your slicer's machine print finish gcode.