Skip to content

Klipper Gcode flavor + Toolchange = SET_PRESSURE_ADVANCE=0 #11021

@viesturz

Description

@viesturz

Description of the bug

Prusaslicer inserts unexpected and unremovable SET_PRESSURE_ADVANCE ADVANCE=0 comands
when unloading filament for toolchange and never restores it.

Klipper saves pressure advance change for the current extruder and never restores the original advance.

Project file & How to reproduce

Base.zip
Set gcode flavor to Klipper
Add more than 1 extruder, slice something with multiple colours.

Reproducible even if retraction length on toolchange is set to 0.

Recommended change: remove the command. Klipper tool changes are generally gcode scripts and expecting any tuning like this to happen there, with slicer focusing on actual slicing.

Relevant Gcode snippet:

; CP TOOLCHANGE UNLOAD
;WIDTH:0.5
SET_PRESSURE_ADVANCE ADVANCE=0
;WIDTH:0.5
G4 S0
G1 E-5 F2400
;WIPE_START
G1 F14400
G1 X201.281 Y179.446 E-.16653
;WIPE_END
G1 E-4.83347 F2400
G1 Z4.1 F18000
M104 S245 T0 ; set temperature ;cooldown
M104 S250 T1 ; set new tool temperature so it can start heating while changing
T1
M109 S250 T1 ; set temperature and wait for it to be reached

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

2.6.0

Operating system

Win11

Printer model

Voron 2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions