mbuc

M913 - Set Hybrid Threshold Speed

control TMC driver switching to spreadCycle HAVE_TMC2130 or HAVE_TMC2208 HYBRID_THRESHOLD

When HYBRID_THRESHOLD is enabled, the TMC driver is switched from the quieter StealthChop to spreadCycle when the feed rate for a given stepper motor is over its _HYBRID_THRESHOLD.


Individual Threshold Values

  • X_HYBRID_THRESHOLD
  • X2_HYBRID_THRESHOLD
  • Y_HYBRID_THRESHOLD
  • Y2_HYBRID_THRESHOLD
  • Z_HYBRID_THRESHOLD
  • Z2_HYBRID_THRESHOLD
  • E0_HYBRID_THRESHOLD
  • E1_HYBRID_THRESHOLD
  • E2_HYBRID_THRESHOLD
  • E3_HYBRID_THRESHOLD
  • E4_HYBRID_THRESHOLD

Usage

M913 [E] [I<index>] [T<index>] [X] [Y] [Z]

Argument Description
[E]

Set E0_HYBRID_THRESHOLD and E1_HYBRID_THRESHOLD and E2_HYBRID_THRESHOLD and E3_HYBRID_THRESHOLD to the provided value.

[I<index>]

(>=1.1.9) Index for dual steppers. Use I1 for X2, Y2, and/or Z2.

[T<index>]

(>=1.1.9) Index (tool) number for the E axis. If not specified, the E0 extruder.

[X]

Set X_HYBRID_THRESHOLD and X2_HYBRID_THRESHOLD to the provided value.

[Y]

Set Y_HYBRID_THRESHOLD and Y2_HYBRID_THRESHOLD to the provided value.

[Z]

Set Z_HYBRID_THRESHOLD and Z2_HYBRID_THRESHOLD to the provided value.

Notes

At least one parameter must be used.

Setting X, Y, Z, or E will set the hybrid threshold for all motors that fall under that category that have the _IS_TRINAMIC flag set. See examples below.

Examples

In this case, assume that X_IS_TRINAMIC and X2_IS_TRINAMIC are both enabled in Configuration_adv.h.

M913 X100

Both X_HYBRID_THRESHOLD and X2_HYBRID_THRESHOLD are set to 100.

In this case, assume that X_IS_TRINAMIC, X2_IS_TRINAMIC, Y_IS_TRINAMIC, E0_IS_TRINAMIC, and E2_IS_TRINAMIC are enabled in Configuration_adv.h.

M913 X100 Y120 E30

X_HYBRID_THRESHOLD and X2_HYBRID_THRESHOLD are set to 100. Y_HYBRID_THRESHOLD is set to 120. E0__HYBRID_THRESHOLD and E2_HYBRID_THRESHOLD are both set to 30. E1_HYBRID_THRESHOLD is not changed since the E0_IS_TRINAMIC flag is not set.