3D printer G-code · Marlin and Klipper
G92: Set position (G92 E0) (Marlin & Klipper)
Set position (G92 E0) — Tells the firmware that the current position has a new value, without moving. Nearly always used as G92 E0 to reset the extruder position in absolute extrusion mode…
On this page
| Property | Value |
|---|---|
| Command | G92 |
| Function | Set position (G92 E0) |
| Firmware | Marlin and Klipper |
| Group | Extrusion |
| Syntax | G92 [X] [Y] [Z] [E] |
What does G92 do?
Tells the firmware that the current position has a new value, without moving. Nearly always used as G92 E0 to reset the extruder position in absolute extrusion mode. Using it for X, Y or Z shifts the coordinate system and can make the next move hit the frame.
Parameters
| Parameter | Meaning |
|---|---|
E | New extruder position, usually 0 |
X Y Z | New axis position (use with care) |
Example
G92 E0 ; reset extruder
G1 X60 E9 F1000 ; prime lineTips from practice
- In absolute E mode a missing G92 E0 after a prime or filament change makes the extruder push a huge length at once.
- Slicers can add G92 E0 at every layer (an option in PrusaSlicer and Cura) to avoid rounding problems in long prints.
The command works in Marlin and Klipper. Options can differ: Klipper accepts fewer parameters for some M-codes and ignores codes it does not know with an "Unknown command" error.
Related commands
More extrusion commands
| Command | Function | Firmware |
|---|---|---|
G10 | Firmware retract (G10 / G11) | 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 |
SET_RETRACTION | Change firmware retraction | 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 simulator