3D printer G-code · Marlin and Klipper
M84: Disable motors (M84 / M18) (Marlin & Klipper)
Disable motors (M84 / M18) — Turns the stepper motors off so the axes can be moved by hand. Used at the end of every print. After M84 the position is lost and the next print must home again.
On this page
| Property | Value |
|---|---|
| Command | M84 |
| Function | Disable motors (M84 / M18) |
| Firmware | Marlin and Klipper |
| Group | Print control |
| Syntax | M84 [X Y Z E] |
What does M84 do?
Turns the stepper motors off so the axes can be moved by hand. Used at the end of every print. After M84 the position is lost and the next print must home again.
Parameters
| Parameter | Meaning |
|---|---|
X Y Z E | Only these motors |
Example
M84 X Y E ; keep Z on so the gantry does not dropTips from practice
- On printers where Z can fall by its own weight, keep Z on.
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 print control commands
| Command | Function | Firmware |
|---|---|---|
M220 | Speed factor | Marlin and Klipper |
M600 | Filament change | Marlin |
M412 | Filament runout sensor | Marlin |
M413 | Power-loss recovery | Marlin |
M400 | Finish moves | Marlin and Klipper |
M112 | Emergency stop | Marlin and Klipper |
M25 | Pause SD print (M25 / M24) | Marlin |
EXCLUDE_OBJECT | Cancel one object | Klipper |
PAUSE | Pause, resume, cancel | 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 M84 do on a 3D printer?
M84 is disable motors (M84 / M18). Turns the stepper motors off so the axes can be moved by hand. Used at the end of every print. After M84 the position is lost and the next print must home again.
Does M84 work in Klipper and Marlin?
Yes, both firmwares understand M84.
Was this page helpful?