Octoprint activated pause and resume gcode not working with Prusaslicer
 
Notifications
Clear all

Octoprint activated pause and resume gcode not working with Prusaslicer  

  RSS
Borkey
(@borkey)
New Member
Octoprint activated pause and resume gcode not working with Prusaslicer

I'm looking to make use of the pause and resume gcode scripting available through Octoprint to perform filament changes. Seems to work great for Cura but Prusaslicer seems to really dislike it. With Cura using absolute extrusion and Prusaslicer using relative I attempted to make some changes but seem to have the same problem. The position restarts as it should but it just seems to draw inconsistent filament in dots and shows large retracts as it returns to the print. I don't have access to the source firmware on this printer so this is a great option to add this ability without needing it which is why I'm going this route. M600 doesnt do anything here right now when running with Octoprint.


Does anyone happen to have a script they use in Octoprint for pause and resume that actually continues extrusion when resume is pressed?

Also a bit confused how to use the code blocks on the forum or I would post what I've tried any tips with taht would be appreciated as well.

Posted : 05/12/2020 4:59 am
bobstro
(@bobstro)
Illustrious Member
RE: Octoprint activated pause and resume gcode not working with Prusaslicer
Posted by: @borkey

[...] Also a bit confused how to use the code blocks on the forum or I would post what I've tried any tips with taht would be appreciated as well.

Paste the code in as normal text, highlight it, then press the button with the double angle brackets (<>) to highlight it as code.

1
2
3

 

My notes and disclaimers on 3D printing

and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan

Posted : 05/12/2020 5:40 am
Borkey
(@borkey)
New Member
Topic starter answered:
RE: Octoprint activated pause and resume gcode not working with Prusaslicer
Thank you for that tip although I still seem to be failing at this lol.

This is my starting gcode in case its needed for context:


M104 S160 ; set extruder to a temporary high enough temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S160 ; wait for extruder temporary high enough temp

;Avoid mesed up BLtouch by resesting forced
M280 P0 S60 ; Test Mode
G4 P500
M280 P0 S90 ; Stow Probe

G28 ; home all axes
G34 ;level X axis
G29 ; bed leveling
M420 S1

;PRIMING NOZZLE SEQUENCE
G1 Y3 X0 Z2 F3000.0 ; intro line
G1 Y3 X0 Z0.28 F1000.0 ; intro line
M104 S[first_layer_temperature] ; set extruder actual required temp
M109 S[first_layer_temperature] ; wait for extruder actual required temp

G92 E0
G1 Y3 X10.0 E9.0 Z0.28 F1000.0 ; intro line
G1 Y3 X50.0 E12.5 Z0.28 F1000.0 ; intro line
G92 E0 ;Reset Extruder



The pause code (copied directly from Octoprint site code examples)


{% 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 %}

The resume code (copied directly from Octoprint site code examples)


{% 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 %}

 

Posted : 05/12/2020 6:30 am
Share: