From 299209d5366f2ae1857d153e0eb17c3481677897 Mon Sep 17 00:00:00 2001 From: macocha Date: Sat, 12 Jul 2025 20:59:19 +0000 Subject: [PATCH] print_end.cfg modified - 07/12/2025 - 08:59:16 PM --- printer_data/config/macros/print_end.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/printer_data/config/macros/print_end.cfg b/printer_data/config/macros/print_end.cfg index e69de29..e5353f7 100644 --- a/printer_data/config/macros/print_end.cfg +++ b/printer_data/config/macros/print_end.cfg @@ -0,0 +1,24 @@ +[gcode_macro PRINT_END] +# Use PRINT_END for the slicer ending script - please customise for your slicer of choice +gcode: + SAVE_GCODE_STATE NAME=STATE_PRINT_END + + M400 ; wait for buffer to clear + G92 E0 ; zero the extruder + G1 E-10.0 F3600 ; retract filament + + G91 ; relative positioning + G0 Z1.00 X20.0 Y20.0 F20000 ; move nozzle to remove stringing + TURN_OFF_HEATERS + M107 ; turn off fan + G1 Z2 F3000 ; move nozzle up 2mm + G90 ; absolute positioning + G0 X125 Y250 F3600 ; park nozzle at rear + BED_MESH_CLEAR + + # The purpose of the SAVE_GCODE_STATE/RESTORE_GCODE_STATE + # command pair is to restore the printer's coordinate system + # and speed settings since the commands above change them. + # However, to prevent any accidental, unintentional toolhead + # moves when restoring the state, explicitly set MOVE=0. + RESTORE_GCODE_STATE NAME=STATE_PRINT_END MOVE=0 \ No newline at end of file