Create a gist now

Instantly share code, notes, and snippets.

@foosel /afterPrintPaused Secret
Last active May 16, 2018

What would you like to do?
pause/resume scripts for OctoPrint 1.3.0
{% if pause_position.x is not none %}
; 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
{% endif %}
{% if pause_position.x is not none %}
; 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 if available
{% if pause_position.f is not none %}G1 F{{ pause_position.f }}{% endif %}
{% endif %}
@thomasdunn

This comment has been minimized.

Show comment Hide comment
@thomasdunn

thomasdunn Jan 4, 2018

Awesome, thank you.

Awesome, thank you.

@nandinho84

This comment has been minimized.

Show comment Hide comment
@nandinho84

nandinho84 Jan 18, 2018

Hi! I've read somewhere that the pause_temperature has been implemented, but I've searched and I couldn't find any examples like the ones you've posted above. Could you please tell if this resume script is good to resume the temperature of the bed and the extruder to the previous temperature before pause the print?:

{% if pause_temperature.0 is not none %}
; wait for bed to reach the previous temperature
M190 S {{ pause_temperature.b }}
; wait for extruder to reach the previous temperature
M109 S{{ pause_temperature.0 }}

Hi! I've read somewhere that the pause_temperature has been implemented, but I've searched and I couldn't find any examples like the ones you've posted above. Could you please tell if this resume script is good to resume the temperature of the bed and the extruder to the previous temperature before pause the print?:

{% if pause_temperature.0 is not none %}
; wait for bed to reach the previous temperature
M190 S {{ pause_temperature.b }}
; wait for extruder to reach the previous temperature
M109 S{{ pause_temperature.0 }}

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