Skip to content

RetractTower g-code post-processing script configured for Distance results in large extrusion at end of printΒ #147

@dpmott

Description

@dpmott

RetractTower g-code post-processing script configured for Distance results in large extrusion at end of print

Steps to reproduce:

  • Cura -> Extensions -> Part for Calibration -> Add a Retract Tower
  • Cura -> Extensions -> Post Processing -> Modify G-Code
  • Add a script -> RetractTower
  • Configure as follows:
    • Command: Distance
    • Starting value: 2
    • Value Increment: 2
    • Change Layer: 38
    • Change Layer Offset: 4
    • Display details on LCD: check
  • Slice model and save gcode
  • Inspect gcode for the following two lines very near the end of the script:
G92 E10;(Set extruder to 10)
G1 F200 E1335.94980 ; Modi

These two lines, taken together, will result in the printer attempting to turn the extruder motor roughly 1325 steps at the end of the print.

I believe that this happens because my Cura Machine Settings End G-Code is configured as follows:

G0 X0 Y120;(Stick out the part)
M190 S0;(Turn off heat bed, don't wait.)
G92 E10;(Set extruder to 10)
G1 E7 F200;(retract 3mm)
M104 S0;(Turn off nozzle, don't wait)
M84;(Turn off stepper motors.)

Note that the line "G1 E7 F200" has been rewritten.

When the RetractTower script is configured with Command: Speed, it rewrites the same line, but with far less disasterous results:

G92 E10;(Set extruder to 10)
G1 F4800 E7.00000

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions