3D printer G-code · Marlin

M92: Set steps per unit (E-steps) (Marlin)

Set steps per unit (E-steps) — Sets how many motor steps make one millimetre. For the extruder this is the E-steps value that you calibrate by extruding 100 mm. In Klipper the same is…

By cnccode · Updated
On this page
  1. What does M92 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More calibration commands
  7. Frequently asked questions
PropertyValue
CommandM92
FunctionSet steps per unit (E-steps)
FirmwareMarlin
GroupCalibration
SyntaxM92 [X] [Y] [Z] [E]

What does M92 do?

Sets how many motor steps make one millimetre. For the extruder this is the E-steps value that you calibrate by extruding 100 mm. In Klipper the same is rotation_distance in printer.cfg.

Parameters

ParameterMeaning
X Y Z ESteps per mm of each axis

Example

G-code
M92 E415.3 ; direct drive with gear reduction
M500

Tips from practice

  • Use the E-steps calculator for the new value.
  • X and Y steps are set by belt pitch and pulley; change them only if a part is wrong on every axis in the same ratio.

Marlin. Many Marlin commands only exist when the feature is enabled in the firmware build. If the printer answers "Unknown command", the feature is missing. Klipper does not understand most of these settings codes; it uses printer.cfg instead.

More calibration commands

CommandFunctionFirmware
M593Input shaping (Marlin)Marlin
SHAPER_CALIBRATEMeasure resonances (input shaper)Klipper
SET_INPUT_SHAPERSet input shaperKlipper
TUNING_TOWERChange a value with heightKlipper

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 M92 do on a 3D printer?
M92 is set steps per unit (E-steps). Sets how many motor steps make one millimetre. For the extruder this is the E-steps value that you calibrate by extruding 100 mm. In Klipper the same is rotation_distance in printer.cfg.
Does M92 work in Klipper and Marlin?
M92 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?