3D printer G-code · Klipper

SET_PRESSURE_ADVANCE: Pressure advance (Klipper) (Klipper)

Pressure advance (Klipper) — Sets pressure advance: the extruder runs ahead when the head accelerates and back when it brakes, so the line width stays even. The same idea as Linear Advance in…

By cnccode · Updated
On this page
  1. What does SET_PRESSURE_ADVANCE do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More extrusion commands
  7. Frequently asked questions
PropertyValue
CommandSET_PRESSURE_ADVANCE
FunctionPressure advance (Klipper)
FirmwareKlipper
GroupExtrusion
SyntaxSET_PRESSURE_ADVANCE ADVANCE=<value> [SMOOTH_TIME=<s>]

What does SET_PRESSURE_ADVANCE do?

Sets pressure advance: the extruder runs ahead when the head accelerates and back when it brakes, so the line width stays even. The same idea as Linear Advance in Marlin, with different numbers. Set it in [extruder] as pressure_advance or per filament in the slicer start code.

Parameters

ParameterMeaning
ADVANCETypical direct drive 0.02–0.08, Bowden 0.3–1.0
SMOOTH_TIMESmoothing, default 0.04 s

Example

Klipper
SET_PRESSURE_ADVANCE ADVANCE=0.045

Tips from practice

  • Find the value with TUNING_TOWER or the calibration tower generator.

Klipper. Extended commands need their section in printer.cfg. Results of calibration commands are kept only after SAVE_CONFIG.

More extrusion commands

CommandFunctionFirmware
G10Firmware retract (G10 / G11)Marlin and Klipper
G92Set position (G92 E0)Marlin and Klipper
M82Absolute extrusion (M82 / M83)Marlin and Klipper
M221Flow percentageMarlin and Klipper
M900Linear advance factorMarlin
SET_RETRACTIONChange firmware retractionKlipper

Test it before you print

Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.

Open the simulator

Frequently asked questions

What does SET_PRESSURE_ADVANCE do on a 3D printer?
SET_PRESSURE_ADVANCE is pressure advance (Klipper). Sets pressure advance: the extruder runs ahead when the head accelerates and back when it brakes, so the line width stays even. The same idea as Linear Advance in Marlin, with different numbers. Set it in [extruder] as pressure_advance or…
Does SET_PRESSURE_ADVANCE work in Klipper and Marlin?
SET_PRESSURE_ADVANCE is a Klipper command. Marlin printers use other G-codes for this task.
Was this page helpful?