3D printer G-code · Marlin and Klipper
M82: Absolute extrusion (M82 / M83) (Marlin & Klipper)
Absolute extrusion (M82 / M83) — M82 makes E values absolute: E is the total filament used since the last G92 E0. M83 makes them relative: every E is the length for that move only. Relative extrusion…
On this page
| Property | Value |
|---|---|
| Command | M82 |
| Function | Absolute extrusion (M82 / M83) |
| Firmware | Marlin and Klipper |
| Group | Extrusion |
| Syntax | M82 or M83 |
What does M82 do?
M82 makes E values absolute: E is the total filament used since the last G92 E0. M83 makes them relative: every E is the length for that move only. Relative extrusion is easier to read and safer when lines are edited; Klipper and Bambu files usually use M83.
Example
M83 ; relative E
G1 X60 E9 F1000 ; 9 mm of filament for this moveTips from practice
- Do not mix: the slicer setting "use relative E distances" must match the M82/M83 in your start code.
- The 3D printer simulator warns when E jumps by an impossible amount, the typical sign of a mix-up.
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 |
G92 | Set position (G92 E0) | 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