Create a gist now

Instantly share code, notes, and snippets.

@foosel /afterPrintPaused Secret
Last active Apr 4, 2017

What would you like to do?
pause/resume scripts for OctoPrint 1.3.0
; relative XYZE
G91
M83
; retract filament, move Z slightly upwards
G1 Z+5 E-5 F4500
; absolute XYZE
M82
G90
; move to a safe rest position, adjust as necessary
G1 X0 Y0
; relative extruder
M83
; prime nozzle
G1 E-5 F4500
G1 E5 F4500
G1 E5 F4500
; absolute E
M82
; absolute XYZ
G90
; reset E
G92 E{{ pause_position.e }}
; move back to pause position XYZ
G1 X{{ pause_position.x }} Y{{ pause_position.y }} Z{{ pause_position.z }} F4500
; reset to feed rate before pause
G1 {{ pause_position.f }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment