Notifications
Clear all

[Solved] Pre-print retraction gcode weirdness  

  RSS
TheMechaniac
(@themechaniac)
Active Member
Pre-print retraction gcode weirdness

I get a big ooze string of PETG-CF during heating. The Intro Line causes it to curl up and stick to the nozzle/heatblock, starting every print with a mangled blob.

I tried to modify the Intro Line code, but the G80 Mesh Bed Leveling always returns to X0 Y0 Z0, so smushing the ooze is inevitable.

Plan B is to add a pause/prompt for me to clean the nozzle after heating, then force a retraction before bed leveling. I'd undo the retraction just before the intro line.

This plan worked great when I put the new start code in a text file, saved it as .gcode, and ran it on the printer.

When I put the same gcode in the "custom gcode/start gcode" in PS, the printer does some weird stuff. If I G1 E-5 F1000 to retract, nothing happens. I tried G1 E5 F1000 just to troubleshoot and squirt some filament out, and the X and Y axes moved 5mm and the extruder didn't move at all. Gcode below (taken from the PS-exported .gcode file, not from the dialogue box in the GUI). What gives?

M73 P0 R45
M73 Q0 S45
M201 X1000 Y1000 Z200 E5000 ; sets maximum accelerations, mm/sec^2
M203 X200 Y200 Z12 E120 ; sets maximum feedrates, mm / sec
M204 S1250 T1250 ; sets acceleration (S) and retract acceleration (R), mm/sec^2
M205 X8.00 Y8.00 Z0.40 E4.50 ; sets the jerk limits, mm/sec
M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
;TYPE:Custom
M862.3 P "MK3S" ; printer model check
M862.1 P0.6 ; nozzle diameter check
M115 U3.11.0 ; tell printer latest fw version
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S255 ; set extruder temp
M140 S60 ; set bed temp
M190 S60 ; wait for bed temp
M109 S255 ; wait for extruder temp
M300 S1200 P100 ; beep three times
M300 S0 P400
M300 S1200 P400
M300 S0 P400
M300 S1200 P100
M300 S0 P400
M0 WIPE NOZZLE
M83 ; extruder relative mode
G1 E5 F1000 ; retract to prevent oozing after nozzle wipe
G1 E-5 F1000M0 Retract?
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
G1 Z0.2 F720G1 Y-3 F1000 ; go outside print area
G1 E5 F1000 ; undo nozzle wipe retract
G92 E0
G1 X60 E9 F1000 ; intro line
G1 X100 E12.5 F1000 ; intro line
G92 E0
M221 S95

Best Answer by TheMechaniac:

Reply to anyone who might read this - I power cycled the printer and now my code works as it should. I suppose "stop print"-ing many times while trying to debug this routine left the machine in some weird state.

 

This topic was modified 11 months ago by TheMechaniac
Posted : 29/07/2023 12:21 am
TheMechaniac
(@themechaniac)
Active Member
Topic starter answered:
RE: Pre-print retraction gcode weirdness

Reply to anyone who might read this - I power cycled the printer and now my code works as it should. I suppose "stop print"-ing many times while trying to debug this routine left the machine in some weird state.

 

Posted : 29/07/2023 6:07 am
Share: