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

2.8 KiB

tag, title, brief, author, requires, group, codes, related, notes, parameters
tag title brief author requires group codes related notes parameters
m0916 L6474 Thermal Warning Test Find L6474 drive level (KVAL_HOLD) threshold shitcreek MONITOR_L6470_DRIVER_STATUS L6474
M916
M917
M918
Requires `MONITOR_L6470_DRIVER_STATUS`.
All tests assume each axis uses matching driver chips.
On the L6474 the TVAL is used instead of KVAL.
tag optional description values
J true Select which driver(s) to monitor on multi-driver axis
tag description
0 (default) Monitor all drivers on the axis
tag description
1 Monitor only X, Y, Z, E1
tag description
2 Monitor only X2, Y2, Z2, E2
tag description
3 Monitor only Z3, E3
tag description
4 Monitor only Z4, E4
tag description
5 Monitor only Z5, E5
tag description
6 Monitor only Z6, E6
tag description
7 Monitor only Z7, E7
tag optional description values
X true Monitor X with the given displacement (1 - 255mm) on either side of the current position.
type
mm
tag optional description values
Y true Monitor Y with the given displacement (1 - 255mm) on either side of the current position.
type
mm
tag optional description values
Z true Monitor Z with the given displacement (1 - 255mm) on either side of the current position.
type
mm
tag optional description values
E true Monitor E with the given displacement (1 - 255mm) on either side of the current position.
type
mm
tag optional description values
F true Feedrate for the moves. (Default max feedrate if unspecified.)
tag type
feedrate int
tag optional description values
T true Current (mA) setting for TVAL (0 - 4A in 31.25mA increments, rounds down) - L6474 only. If unspecified, report current value from driver.
tag type
current int
tag optional description values
K true Value for KVAL_HOLD (0 - 255) (ignored for L6474). If unspecified, report current value from driver.
tag type
Kvalue int
tag optional description values
D true Time (in seconds) to run each setting of KVAL_HOLD/TVAL. (Default zero, to run each setting once.)
tag type
second int

M916: increase KVAL_HOLD until thermal warning. This routine is also useful for determining the approximate KVAL_HOLD where the stepper stops losing steps. The sound will get noticeably quieter as it stops losing steps.