Meltingplot: lift Z above the print before the end macro

Add a G90 / G1 Z{min(max_layer_z + 5, printable_height)} F600 move at the
start of machine_end_gcode, before M98 print_end shuts the printer down and
parks it. Besides clearing the part, the explicit Z coordinate lets the Duet
file-info parser pick up the object height.
This commit is contained in:
timschneider
2026-07-29 13:26:59 +02:00
committed by Tim Schneider
parent d2fec7623f
commit 8b34dc5344
@@ -63,7 +63,7 @@
"default_print_profile": "",
"change_filament_gcode": "",
"machine_pause_gcode": "M226",
"machine_end_gcode": "M98 P\"0:/sys/meltingplot/print_end\"",
"machine_end_gcode": "G90\nG1 Z{min(max_layer_z + 5, printable_height)} F600\nM98 P\"0:/sys/meltingplot/print_end\"",
"layer_change_gcode": ";AFTER_LAYER_CHANGE\n;[layer_z]",
"before_layer_change_gcode": ";BEFORE_LAYER_CHANGE\n;[layer_z]\n"
}