Skip to content

Instantly share code, notes, and snippets.

@hugokernel
Created June 28, 2014 10:15
Show Gist options
  • Save hugokernel/f33523a536614c92d64f to your computer and use it in GitHub Desktop.
Save hugokernel/f33523a536614c92d64f to your computer and use it in GitHub Desktop.
end.gcode
;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
M81 ; Suicide !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment