Skip to content

Instantly share code, notes, and snippets.

@ospalh
Created November 12, 2019 07:19
Show Gist options
  • Save ospalh/37260702a92f8f0dcc1919048026038c to your computer and use it in GitHub Desktop.
Save ospalh/37260702a92f8f0dcc1919048026038c to your computer and use it in GitHub Desktop.
My 3d-printer cancel gcode
M104 S0 T0 ; turn off tool 0 heating
M140 S0 ; Turn off bed heating
M83 ; relative extruder mode
G1 E-2 F2400 ; Retract 2 mm, standard during prints
M82 ; absolute extruder mode.
G91 ; relative move
G1 Z5 F300 ; move z up by 2 mm. N.B.: Check there is space (but we have the software endstop)
M84 ; disable motors
M77 ; stop print timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment