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…

By cnccode · Updated
On this page
  1. What does G92 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More extrusion commands
  7. Frequently asked questions
PropertyValue
CommandG92
FunctionSet position (G92 E0)
FirmwareMarlin and Klipper
GroupExtrusion
SyntaxG92 [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

ParameterMeaning
ENew extruder position, usually 0
X Y ZNew axis position (use with care)

Example

G-code
G92 E0          ; reset extruder
G1 X60 E9 F1000 ; prime line

Tips 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.

More extrusion commands

CommandFunctionFirmware
G10Firmware retract (G10 / G11)Marlin and Klipper
M82Absolute extrusion (M82 / M83)Marlin and Klipper
M221Flow percentageMarlin and Klipper
M900Linear advance factorMarlin
SET_PRESSURE_ADVANCEPressure advance (Klipper)Klipper
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 G92 do on a 3D printer?
G92 is 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. Using it for X, Y or Z shifts the coordinate system and can make the…
Does G92 work in Klipper and Marlin?
Yes, both firmwares understand G92.
Was this page helpful?