Update printer.cfg

This commit is contained in:
Siwat Sirichai 2024-01-18 21:53:02 +07:00
parent ec784e5b92
commit a6fc0332db
1 changed files with 17 additions and 0 deletions

View File

@ -444,6 +444,23 @@ default_type: echo
# Macros # Macros
##################################################################### #####################################################################
[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gccode:
M220 S100 ; reset speed factor override percentage to default (100%)
M221 S100 ; reset extrusion factor override percentage to default (100%)
{% if printer.extruder.temperature > 170 %} ; if extruder is hot, retract filament
G1 E-3.0 F3600 ; retract filament by 3mm
{% endif %}
{% if printer.toolhead.homed_axis == "xyz" %} ; if XYZ is homed, we can move the nozzle
G91 ; relative positioning
G1 Z+5 F3600 ; move nozzle up 5mm
G90 ; absolute positioning
PARK_NOZZLE_REAR ; park nozzle
{% endif %}
CLEAR_PAUSE
BASE_CANCEL_PRINT
[gcode_macro G32] [gcode_macro G32]
gcode: gcode:
G28 G28