Dual Z TMC configuration

Trying to get my dual Z motors both working with my TMC drivers.  The cables are good and the drivers both have been tested.  Z works but Z2 does not.  Is there a way to get the Z2 to work with the TMC 2130?  Here is the relevent config.h entries.

#define ENDSTOP_PULLUP_Z2_MINMAX false
#define ENDSTOP_Z2_MINMAX_INVERTING false
#define MINMAX_HARDWARE_ENDSTOP_Z2 false

#define Z2_MINMAX_PIN -1

#define INVERT_Z2_DIR 1

#define FEATURE_TWO_ZSTEPPER 1
#define Z2_STEP_PIN   ORIG_E5_STEP_PIN
#define Z2_DIR_PIN    ORIG_E5_DIR_PIN
#define Z2_ENABLE_PIN ORIG_E5_ENABLE_PIN

#define DRV_TMC2130

// Uncomment if you use the stall guard for homing. Only for cartesian printers and xy direction

// The drivers with set CS pin will be used, all others are normal step/dir/enable drivers
#define TMC2130_X_CS_PIN 4
#define TMC2130_Y_CS_PIN 5
#define TMC2130_Z_CS_PIN 6
#define TMC2130_Z2_CS_PIN 40
#define TMC2130_EXT0_CS_PIN -1
#define TMC2130_EXT1_CS_PIN -1
#define TMC2130_EXT2_CS_PIN -1

// Per-axis current setting in mA { X, Y, Z, Z2, E0, E1, E2}
#define MOTOR_CURRENT { 1500,1500,1000,1000,1000,1000,1000 }

Comments

  • Hi,

    I do not have a Z2, but am using the E1 as a second Z-stepper.  Here is my configuration:

    #define FEATURE_TWO_ZSTEPPER 1
    #define Z2_STEP_PIN   ORIG_E1_STEP_PIN
    #define Z2_DIR_PIN    ORIG_E1_DIR_PIN
    #define Z2_ENABLE_PIN ORIG_E1_ENABLE_PIN

     Under my E1 configuration I set the following:

    #define EXT1_MIRROR_STEPPER 1
    #define EXT1_STEP2_PIN ORIG_Z_STEP_PIN
    #define EXT1_DIR2_PIN ORIG_Z_DIR_PIN
    #define EXT1_INVERSE2 0
    #define EXT1_ENABLE2_PIN ORIG_Z_ENABLE_PIN

    I assume you want Z1 and Z2 to be synchronized. Try my definitions with changing EXT1 to EXT5.

    Paul

  • Dual Z is easy, but I'm trying to get the TMC support for the Z2 CS pin for SPI support.  I've got 2 Z drivers now, but they are just regular A4988 drivers.
Sign In or Register to comment.