Skip to content

Instantly share code, notes, and snippets.

@duganj
Last active February 27, 2022 00:18
Show Gist options
  • Save duganj/ee2340b43855cbd99a98b740d4fbafe5 to your computer and use it in GitHub Desktop.
Save duganj/ee2340b43855cbd99a98b740d4fbafe5 to your computer and use it in GitHub Desktop.
M104 S0 ; extruder heater off
M140 S0 ; heated bed heater off
M107; Turn fan off
G91 ; relative positioning
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure
G1 Z+2.0 F6000 ; move Z up
G1 E-5 F300 ; retract filament even more
G90 ; absolute positioning
G1 X0 F6000 ; move X to min endstops so the head is out of the way
G1 Y160 F6000 ; move the bed so it is easy to access to the printed part
G92 E0 ; zero the extruded length
M84 ; steppers off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment