3D printer G-code · Marlin
M906: Stepper motor current (TMC) (Marlin)
Stepper motor current (TMC) — Sets the RMS current of TMC stepper drivers in milliamps. Too little current loses steps (layer shifts), too much makes motors hot. M569 S1 switches stealthChop on for…
On this page
| Property | Value |
|---|---|
| Command | M906 |
| Function | Stepper motor current (TMC) |
| Firmware | Marlin |
| Group | Settings |
| Syntax | M906 [X] [Y] [Z] [E] <mA> |
What does M906 do?
Sets the RMS current of TMC stepper drivers in milliamps. Too little current loses steps (layer shifts), too much makes motors hot. M569 S1 switches stealthChop on for an axis.
Parameters
| Parameter | Meaning |
|---|---|
X Y Z E | Current in mA (RMS) |
Example
M906 X800 Y800 E650
M500Tips from practice
- Start near 70 % of the rated current of the motor.
- Klipper sets run_current in the [tmc2209 stepper_x] sections.
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.
Related commands
More settings commands
| Command | Function | Firmware |
|---|---|---|
M500 | Save settings to EEPROM | Marlin |
M501 | Load settings from EEPROM | Marlin |
M502 | Factory reset (firmware defaults) | Marlin |
M503 | Report settings | Marlin |
M201 | Max acceleration per axis | Marlin |
M203 | Max feed rate per axis | Marlin |
M204 | Set acceleration | Marlin and Klipper |
M205 | Jerk and junction deviation | Marlin |
SAVE_CONFIG | Save calibration to printer.cfg | Klipper |
SET_VELOCITY_LIMIT | Speed, acceleration and corner limits | Klipper |
FIRMWARE_RESTART | Restart (RESTART / FIRMWARE_RESTART) | 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