3D printer G-code · Klipper
SET_RETRACTION: Change firmware retraction (Klipper)
Change firmware retraction — Changes the values used by G10/G11 while printing. Needs [firmware_retraction].
On this page
| Property | Value |
|---|---|
| Command | SET_RETRACTION |
| Function | Change firmware retraction |
| Firmware | Klipper |
| Group | Extrusion |
| Syntax | SET_RETRACTION [RETRACT_LENGTH] [RETRACT_SPEED] [UNRETRACT_EXTRA_LENGTH] [UNRETRACT_SPEED] |
What does SET_RETRACTION do?
Changes the values used by G10/G11 while printing. Needs [firmware_retraction].
Parameters
| Parameter | Meaning |
|---|---|
RETRACT_LENGTH | mm |
RETRACT_SPEED | mm/s |
UNRETRACT_EXTRA_LENGTH | Extra after unretract |
UNRETRACT_SPEED | mm/s |
Example
SET_RETRACTION RETRACT_LENGTH=0.6 RETRACT_SPEED=35Klipper. Extended commands need their section in printer.cfg. Results of calibration commands are kept only after SAVE_CONFIG.
Related commands
More extrusion commands
| Command | Function | Firmware |
|---|---|---|
G10 | Firmware retract (G10 / G11) | Marlin and Klipper |
G92 | Set position (G92 E0) | Marlin and Klipper |
M82 | Absolute extrusion (M82 / M83) | Marlin and Klipper |
M221 | Flow percentage | Marlin and Klipper |
M900 | Linear advance factor | Marlin |
SET_PRESSURE_ADVANCE | Pressure advance (Klipper) | Klipper |
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 simulatorFrequently asked questions
What does SET_RETRACTION do on a 3D printer?
SET_RETRACTION is change firmware retraction. Changes the values used by G10/G11 while printing. Needs [firmware_retraction].
Does SET_RETRACTION work in Klipper and Marlin?
SET_RETRACTION is a Klipper command. Marlin printers use other G-codes for this task.
Was this page helpful?