Notifications
Clear all

Octoprint "After print job is cancelled" Gcode  

  RSS
Buzkill
(@buzkill)
Active Member
Octoprint "After print job is cancelled" Gcode

So I've noticed when printing with MK3s+ /w MMU2S, through octoprint, and if i cancel the print from octoprint (VS at the printer) it just follows the "After print job is cancelled" setting in the printer profile set in Octoprint . ie.

; disable motors
M84

;disable all heaters
{% snippet 'disable_hotends' %}
{% snippet 'disable_bed' %}
;disable fan
M106 S0

which is fine for when your printing without the MMU but with it, when you go to start a new print the filament hasn't been retracted at all and so when the MK3S+ goes through that special filament grinding and purge  routine before a print, it just grinds the filament, blasts a huge blob out of the nozzle (far more then normal )and the whole thing can only cause issues.

My question is to the community, is where can i find the updated gcode prusa uses for these steps. the whole "unload filament" and such specific to the MMU2s. It wouldn't be in the spliced gcode, as it's an un-programmed stop situation, so must be hard-coded somewhere.

Napsal : 10/01/2022 4:36 am
Buzkill
(@buzkill)
Active Member
Topic starter answered:
RE: Octoprint "After print job is cancelled" Gcode

Might have just answered my own question (*Smacks forehead) but by just copying the generic "end gcode" for the MMU2s unit from prusa slicer generated gcode seems to work well.

;TYPE:Custom
; Filament-specific end gcode
G1 Z40.3 F720 ; Move print head up
G1 X0 Y210 F7200
G1 E2 F5000
G1 E2 F5500
G1 E2 F6000
G1 E-15 F5800
G1 E-20 F5500
G1 E10 F3000
G1 E-10 F3100
G1 E10 F3150
G1 E-10 F3250
G1 E10 F3300

M140 S0 ; turn off heatbed
M107 ; turn off fan
M702 C
G4 ; wait
M221 S100 ; reset flow
M900 K0 ; reset LA
M907 E538 ; reset extruder motor current
M104 S0 ; turn off temperature
M84 ; disable motors

 

Napsal : 10/01/2022 4:46 am
Buzkill
(@buzkill)
Active Member
Topic starter answered:
RE: Octoprint "After print job is cancelled" Gcode

fix: 

;TYPE:Custom
; Filament-specific end gcode
G91 
G1 Z2;  raise z 2mm

G1 E2 F5000
G1 E2 F5500
G1 E2 F6000
G1 E-15 F5800
G1 E-20 F5500
G1 E10 F3000
G1 E-10 F3100
G1 E10 F3150
G1 E-10 F3250
G1 E10 F3300

M140 S0 ; turn off heatbed
M107 ; turn off fan
M702 C
G4 ; wait
M221 S100 ; reset flow
M900 K0 ; reset LA
M907 E538 ; reset extruder motor current
M104 S0 ; turn off temperature
M84 ; disable motors
Napsal : 10/01/2022 4:55 am
toy4x4 se líbí
Share: