thinkyhead

M907 - Trimpot Stepper Motor Current

control Set motor current via digital trimpot DIGIPOTSS_PIN|HAS_MOTOR_CURRENT_PWM|DIGIPOT_I2C|DAC_STEPPER_CURRENT

Description

Set digital trimpot motor current using axis codes (X, Y, Z, E, etc.) plus B and S. The unit used for current depends on the type of stepper driver.

Notes

Trinamic and L64xx stepper drivers should use M906 instead.

Usage

M907 [B<current>] [C<current>] [D<current>] [E<current>] [I<current>] [J<current>] [K<current>] [S<current>] [U<current>] [V<current>] [W<current>] [X<current>] [Y<current>] [Z<current>]

Parameters

[B<current>]
DIGIPOTSS_PIN | DIGIPOT_I2C

Current for the E1 stepper

    [C<current>]
    DIGIPOT_I2C

    Current for the E2 stepper

      [D<current>]
      DIGIPOT_I2C

      Current for the E3 stepper

        [E<current>]

        Current for the E0 stepper

          [I<current>]
          2.0.9
          I_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)

          Current for the I stepper

            [J<current>]
            2.0.9
            J_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)

            Current for the J stepper

              [K<current>]
              2.0.9
              K_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)

              Current for the K stepper

                [S<current>]
                DIGIPOTSS_PIN | DAC_STEPPER_CURRENT

                Set this current on all steppers

                  [U<current>]
                  2.1
                  U_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)

                  Current for the U stepper

                    [V<current>]
                    2.1
                    V_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)

                    Current for the V stepper

                      [W<current>]
                      2.1
                      W_DRIVER_TYPE & (DIGIPOTSS_PIN | DIGIPOT_I2C)

                      Current for the W stepper

                        [X<current>]

                        Current for the X stepper (and the Y stepper with MOTOR_CURRENT_PWM_XY)

                          [Y<current>]

                          Current for the Y stepper. (Use X with MOTOR_CURRENT_PWM_XY)

                            [Z<current>]

                            Current for the Z stepper