machines/systems/flexibot/docs/marlin/_gcode/M906.md
2025-03-11 23:32:39 +01:00

1.4 KiB

tag title brief author requires group codes notes parameters examples
m0906 Stepper Motor Current Set the motor current (in milliamps) thinkyhead TMC2130|TMC2208|TMC2660|L64xx none
M906
Requires one or more compatible Trinamic or L64xx stepper drivers.
tag optional description values
E true Current for the E0 stepper
unit type
mA int
tag optional since description values
I false 1.1.9 Index for multiple steppers. (i.e., `I1` for X2, Y2, Z2; `I2` for Z3; `I3` for Z4).
unit type
index int
tag optional since description values
T true 1.1.9 Index (tool) number for the E axis. If not specified, the E0 extruder.
unit type
index int
tag optional description values
X true Current for the X stepper
unit type
mA int
tag optional description values
Y true Current for the Y stepper
unit type
mA int
tag optional description values
Z true Current for the Z stepper
unit type
mA int
pre code
Set the XYZ motor currents to 5mA M906 X5 Y5 Z5
pre code
Set the E1 motor current to 10mA M906 T1 E10
pre code
Set the X2 motor current to 5mA M906 I1 X5

Set stepper motor currents in milliamps units.