Skip to content

Instantly share code, notes, and snippets.

@BradMcGonigle
Created February 13, 2020 14:39
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 BradMcGonigle/601556da256c142c2ea25302a122cd12 to your computer and use it in GitHub Desktop.
Save BradMcGonigle/601556da256c142c2ea25302a122cd12 to your computer and use it in GitHub Desktop.
GCODE Script for OctoPi's After Print Job Completes
G4 ; wait for buffer to clear
G92 E0; set extruder value back to 0
G1 E-2 F700; Retract a little. 700mm/min
M140 S0 ; turn off heatbed
M107 ; turn off fan
G1 X125 Y125 F4800; Bring print surface forward as fast as possible per min, center x to try to keep filament on spool and hotend cable off usb plug
G1 E10 F700; Crank out some plastic to weigh down the plastic thread. This prevents material from curling up as it cools, sticking to hotend. 700mm/min
G1 E-2 F700; Retract a little. 700mm/min
M104 S0 ; turn off hotend
G1 Z205 F1200; Raise to top. Because this is centered in previous gcode, the filament spool should be directly above, so the risk of unraveling the spool should be lower.
M84 ; disable motors
@BradMcGonigle
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment