Aboms CANCEL_PRINT
This is what I use for a cancel macro. Nothing says it has to be done exactly this way.
1
[gcode_macro CANCEL_PRINT]
2
gcode:
3
M220 S100 ; Reset Speed factor override percentage to default (100%)
4
M221 S100 ; Reset Extrude factor override percentage to default (100%)
5
G91 ; Set coordinates to relative
6
{% if printer.extruder.temperature >= 170 %}
7
G1 F1800 E-1 ; Retract filament 3 mm to prevent oozing
8
{% endif %}
9
10
;if all axis are homed, lift the hotend to leave room for hot filament to ooze and to keep it clear of the bed.
11
{% if printer.toolhead.homed_axes == "xyz" %}
12
G1 F6000 Z10 ; Move Z Axis up 10 mm to allow filament ooze freely
13
G90 ; Set coordinates to absolute
14
G1 X0 Y221 F1000 ; Move Heat Bed to the front for easy print removal
15
M84 ; Disable stepper motors
16
{% endif %}
17
18
;set part fan speed to zero.
19
M106 S0
20
;bed and hotend are left at the print temps in case I want to restart.
Copied!
Last modified 1yr ago
Copy link