Skip to content

Instantly share code, notes, and snippets.

@elneruda
Created December 16, 2016 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elneruda/8d790c7247ebdff20842569ba4dd1f1c to your computer and use it in GitHub Desktop.
Save elneruda/8d790c7247ebdff20842569ba4dd1f1c to your computer and use it in GitHub Desktop.
;End GCode
;Ultimaker 2+ octoprint
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 F4200 ;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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment