|
|
@ -1797,91 +1797,91 @@
|
|
|
|
#define X_CURRENT 800 // (mA) RMS current. Multiply by 1.414 for peak current.
|
|
|
|
#define X_CURRENT 800 // (mA) RMS current. Multiply by 1.414 for peak current.
|
|
|
|
#define X_MICROSTEPS 16 // 0..256
|
|
|
|
#define X_MICROSTEPS 16 // 0..256
|
|
|
|
#define X_RSENSE 0.11
|
|
|
|
#define X_RSENSE 0.11
|
|
|
|
#define X_CHAIN_POS 0 // 0 - Not chained, 1 - MCU MOSI connected, 2 - next in chain, ...
|
|
|
|
#define X_CHAIN_POS -1 // <=0 : Not chained. 1 : MCU MOSI connected. 2 : Next in chain, ...
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(X2)
|
|
|
|
#if AXIS_IS_TMC(X2)
|
|
|
|
#define X2_CURRENT 800
|
|
|
|
#define X2_CURRENT 800
|
|
|
|
#define X2_MICROSTEPS 16
|
|
|
|
#define X2_MICROSTEPS 16
|
|
|
|
#define X2_RSENSE 0.11
|
|
|
|
#define X2_RSENSE 0.11
|
|
|
|
#define X2_CHAIN_POS 0
|
|
|
|
#define X2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(Y)
|
|
|
|
#if AXIS_IS_TMC(Y)
|
|
|
|
#define Y_CURRENT 800
|
|
|
|
#define Y_CURRENT 800
|
|
|
|
#define Y_MICROSTEPS 16
|
|
|
|
#define Y_MICROSTEPS 16
|
|
|
|
#define Y_RSENSE 0.11
|
|
|
|
#define Y_RSENSE 0.11
|
|
|
|
#define Y_CHAIN_POS 0
|
|
|
|
#define Y_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(Y2)
|
|
|
|
#if AXIS_IS_TMC(Y2)
|
|
|
|
#define Y2_CURRENT 800
|
|
|
|
#define Y2_CURRENT 800
|
|
|
|
#define Y2_MICROSTEPS 16
|
|
|
|
#define Y2_MICROSTEPS 16
|
|
|
|
#define Y2_RSENSE 0.11
|
|
|
|
#define Y2_RSENSE 0.11
|
|
|
|
#define Y2_CHAIN_POS 0
|
|
|
|
#define Y2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(Z)
|
|
|
|
#if AXIS_IS_TMC(Z)
|
|
|
|
#define Z_CURRENT 800
|
|
|
|
#define Z_CURRENT 800
|
|
|
|
#define Z_MICROSTEPS 16
|
|
|
|
#define Z_MICROSTEPS 16
|
|
|
|
#define Z_RSENSE 0.11
|
|
|
|
#define Z_RSENSE 0.11
|
|
|
|
#define Z_CHAIN_POS 0
|
|
|
|
#define Z_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(Z2)
|
|
|
|
#if AXIS_IS_TMC(Z2)
|
|
|
|
#define Z2_CURRENT 800
|
|
|
|
#define Z2_CURRENT 800
|
|
|
|
#define Z2_MICROSTEPS 16
|
|
|
|
#define Z2_MICROSTEPS 16
|
|
|
|
#define Z2_RSENSE 0.11
|
|
|
|
#define Z2_RSENSE 0.11
|
|
|
|
#define Z2_CHAIN_POS 0
|
|
|
|
#define Z2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(Z3)
|
|
|
|
#if AXIS_IS_TMC(Z3)
|
|
|
|
#define Z3_CURRENT 800
|
|
|
|
#define Z3_CURRENT 800
|
|
|
|
#define Z3_MICROSTEPS 16
|
|
|
|
#define Z3_MICROSTEPS 16
|
|
|
|
#define Z3_RSENSE 0.11
|
|
|
|
#define Z3_RSENSE 0.11
|
|
|
|
#define Z3_CHAIN_POS 0
|
|
|
|
#define Z3_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(E0)
|
|
|
|
#if AXIS_IS_TMC(E0)
|
|
|
|
#define E0_CURRENT 800
|
|
|
|
#define E0_CURRENT 800
|
|
|
|
#define E0_MICROSTEPS 16
|
|
|
|
#define E0_MICROSTEPS 16
|
|
|
|
#define E0_RSENSE 0.11
|
|
|
|
#define E0_RSENSE 0.11
|
|
|
|
#define E0_CHAIN_POS 0
|
|
|
|
#define E0_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(E1)
|
|
|
|
#if AXIS_IS_TMC(E1)
|
|
|
|
#define E1_CURRENT 800
|
|
|
|
#define E1_CURRENT 800
|
|
|
|
#define E1_MICROSTEPS 16
|
|
|
|
#define E1_MICROSTEPS 16
|
|
|
|
#define E1_RSENSE 0.11
|
|
|
|
#define E1_RSENSE 0.11
|
|
|
|
#define E1_CHAIN_POS 0
|
|
|
|
#define E1_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(E2)
|
|
|
|
#if AXIS_IS_TMC(E2)
|
|
|
|
#define E2_CURRENT 800
|
|
|
|
#define E2_CURRENT 800
|
|
|
|
#define E2_MICROSTEPS 16
|
|
|
|
#define E2_MICROSTEPS 16
|
|
|
|
#define E2_RSENSE 0.11
|
|
|
|
#define E2_RSENSE 0.11
|
|
|
|
#define E2_CHAIN_POS 0
|
|
|
|
#define E2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(E3)
|
|
|
|
#if AXIS_IS_TMC(E3)
|
|
|
|
#define E3_CURRENT 800
|
|
|
|
#define E3_CURRENT 800
|
|
|
|
#define E3_MICROSTEPS 16
|
|
|
|
#define E3_MICROSTEPS 16
|
|
|
|
#define E3_RSENSE 0.11
|
|
|
|
#define E3_RSENSE 0.11
|
|
|
|
#define E3_CHAIN_POS 0
|
|
|
|
#define E3_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(E4)
|
|
|
|
#if AXIS_IS_TMC(E4)
|
|
|
|
#define E4_CURRENT 800
|
|
|
|
#define E4_CURRENT 800
|
|
|
|
#define E4_MICROSTEPS 16
|
|
|
|
#define E4_MICROSTEPS 16
|
|
|
|
#define E4_RSENSE 0.11
|
|
|
|
#define E4_RSENSE 0.11
|
|
|
|
#define E4_CHAIN_POS 0
|
|
|
|
#define E4_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_IS_TMC(E5)
|
|
|
|
#if AXIS_IS_TMC(E5)
|
|
|
|
#define E5_CURRENT 800
|
|
|
|
#define E5_CURRENT 800
|
|
|
|
#define E5_MICROSTEPS 16
|
|
|
|
#define E5_MICROSTEPS 16
|
|
|
|
#define E5_RSENSE 0.11
|
|
|
|
#define E5_RSENSE 0.11
|
|
|
|
#define E5_CHAIN_POS 0
|
|
|
|
#define E5_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -2107,7 +2107,7 @@
|
|
|
|
#define X_OVERCURRENT 2000 // (mA) Current where the driver detects an over current (VALID: 375 x (1 - 16) - 6A max - rounds down)
|
|
|
|
#define X_OVERCURRENT 2000 // (mA) Current where the driver detects an over current (VALID: 375 x (1 - 16) - 6A max - rounds down)
|
|
|
|
#define X_STALLCURRENT 1500 // (mA) Current where the driver detects a stall (VALID: 31.25 * (1-128) - 4A max - rounds down)
|
|
|
|
#define X_STALLCURRENT 1500 // (mA) Current where the driver detects a stall (VALID: 31.25 * (1-128) - 4A max - rounds down)
|
|
|
|
#define X_MAX_VOLTAGE 127 // 0-255, Maximum effective voltage seen by stepper
|
|
|
|
#define X_MAX_VOLTAGE 127 // 0-255, Maximum effective voltage seen by stepper
|
|
|
|
#define X_CHAIN_POS 0 // Position in SPI chain, 0=Not in chain, 1=Nearest MOSI
|
|
|
|
#define X_CHAIN_POS -1 // Position in SPI chain. (<=0 : Not in chain. 1 : Nearest MOSI)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_X2(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_X2(L6470)
|
|
|
@ -2115,7 +2115,7 @@
|
|
|
|
#define X2_OVERCURRENT 2000
|
|
|
|
#define X2_OVERCURRENT 2000
|
|
|
|
#define X2_STALLCURRENT 1500
|
|
|
|
#define X2_STALLCURRENT 1500
|
|
|
|
#define X2_MAX_VOLTAGE 127
|
|
|
|
#define X2_MAX_VOLTAGE 127
|
|
|
|
#define X2_CHAIN_POS 0
|
|
|
|
#define X2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Y(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_Y(L6470)
|
|
|
@ -2123,7 +2123,7 @@
|
|
|
|
#define Y_OVERCURRENT 2000
|
|
|
|
#define Y_OVERCURRENT 2000
|
|
|
|
#define Y_STALLCURRENT 1500
|
|
|
|
#define Y_STALLCURRENT 1500
|
|
|
|
#define Y_MAX_VOLTAGE 127
|
|
|
|
#define Y_MAX_VOLTAGE 127
|
|
|
|
#define Y_CHAIN_POS 0
|
|
|
|
#define Y_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Y2(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_Y2(L6470)
|
|
|
@ -2131,7 +2131,7 @@
|
|
|
|
#define Y2_OVERCURRENT 2000
|
|
|
|
#define Y2_OVERCURRENT 2000
|
|
|
|
#define Y2_STALLCURRENT 1500
|
|
|
|
#define Y2_STALLCURRENT 1500
|
|
|
|
#define Y2_MAX_VOLTAGE 127
|
|
|
|
#define Y2_MAX_VOLTAGE 127
|
|
|
|
#define Y2_CHAIN_POS 0
|
|
|
|
#define Y2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Z(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_Z(L6470)
|
|
|
@ -2139,7 +2139,7 @@
|
|
|
|
#define Z_OVERCURRENT 2000
|
|
|
|
#define Z_OVERCURRENT 2000
|
|
|
|
#define Z_STALLCURRENT 1500
|
|
|
|
#define Z_STALLCURRENT 1500
|
|
|
|
#define Z_MAX_VOLTAGE 127
|
|
|
|
#define Z_MAX_VOLTAGE 127
|
|
|
|
#define Z_CHAIN_POS 0
|
|
|
|
#define Z_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Z2(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_Z2(L6470)
|
|
|
@ -2147,7 +2147,7 @@
|
|
|
|
#define Z2_OVERCURRENT 2000
|
|
|
|
#define Z2_OVERCURRENT 2000
|
|
|
|
#define Z2_STALLCURRENT 1500
|
|
|
|
#define Z2_STALLCURRENT 1500
|
|
|
|
#define Z2_MAX_VOLTAGE 127
|
|
|
|
#define Z2_MAX_VOLTAGE 127
|
|
|
|
#define Z2_CHAIN_POS 0
|
|
|
|
#define Z2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_Z3(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_Z3(L6470)
|
|
|
@ -2155,7 +2155,7 @@
|
|
|
|
#define Z3_OVERCURRENT 2000
|
|
|
|
#define Z3_OVERCURRENT 2000
|
|
|
|
#define Z3_STALLCURRENT 1500
|
|
|
|
#define Z3_STALLCURRENT 1500
|
|
|
|
#define Z3_MAX_VOLTAGE 127
|
|
|
|
#define Z3_MAX_VOLTAGE 127
|
|
|
|
#define Z3_CHAIN_POS 0
|
|
|
|
#define Z3_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_E0(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_E0(L6470)
|
|
|
@ -2163,7 +2163,7 @@
|
|
|
|
#define E0_OVERCURRENT 2000
|
|
|
|
#define E0_OVERCURRENT 2000
|
|
|
|
#define E0_STALLCURRENT 1500
|
|
|
|
#define E0_STALLCURRENT 1500
|
|
|
|
#define E0_MAX_VOLTAGE 127
|
|
|
|
#define E0_MAX_VOLTAGE 127
|
|
|
|
#define E0_CHAIN_POS 0
|
|
|
|
#define E0_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_E1(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_E1(L6470)
|
|
|
@ -2171,7 +2171,7 @@
|
|
|
|
#define E1_OVERCURRENT 2000
|
|
|
|
#define E1_OVERCURRENT 2000
|
|
|
|
#define E1_STALLCURRENT 1500
|
|
|
|
#define E1_STALLCURRENT 1500
|
|
|
|
#define E1_MAX_VOLTAGE 127
|
|
|
|
#define E1_MAX_VOLTAGE 127
|
|
|
|
#define E1_CHAIN_POS 0
|
|
|
|
#define E1_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_E2(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_E2(L6470)
|
|
|
@ -2179,7 +2179,7 @@
|
|
|
|
#define E2_OVERCURRENT 2000
|
|
|
|
#define E2_OVERCURRENT 2000
|
|
|
|
#define E2_STALLCURRENT 1500
|
|
|
|
#define E2_STALLCURRENT 1500
|
|
|
|
#define E2_MAX_VOLTAGE 127
|
|
|
|
#define E2_MAX_VOLTAGE 127
|
|
|
|
#define E2_CHAIN_POS 0
|
|
|
|
#define E2_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_E3(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_E3(L6470)
|
|
|
@ -2187,7 +2187,7 @@
|
|
|
|
#define E3_OVERCURRENT 2000
|
|
|
|
#define E3_OVERCURRENT 2000
|
|
|
|
#define E3_STALLCURRENT 1500
|
|
|
|
#define E3_STALLCURRENT 1500
|
|
|
|
#define E3_MAX_VOLTAGE 127
|
|
|
|
#define E3_MAX_VOLTAGE 127
|
|
|
|
#define E3_CHAIN_POS 0
|
|
|
|
#define E3_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_E4(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_E4(L6470)
|
|
|
@ -2195,7 +2195,7 @@
|
|
|
|
#define E4_OVERCURRENT 2000
|
|
|
|
#define E4_OVERCURRENT 2000
|
|
|
|
#define E4_STALLCURRENT 1500
|
|
|
|
#define E4_STALLCURRENT 1500
|
|
|
|
#define E4_MAX_VOLTAGE 127
|
|
|
|
#define E4_MAX_VOLTAGE 127
|
|
|
|
#define E4_CHAIN_POS 0
|
|
|
|
#define E4_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if AXIS_DRIVER_TYPE_E5(L6470)
|
|
|
|
#if AXIS_DRIVER_TYPE_E5(L6470)
|
|
|
@ -2203,7 +2203,7 @@
|
|
|
|
#define E5_OVERCURRENT 2000
|
|
|
|
#define E5_OVERCURRENT 2000
|
|
|
|
#define E5_STALLCURRENT 1500
|
|
|
|
#define E5_STALLCURRENT 1500
|
|
|
|
#define E5_MAX_VOLTAGE 127
|
|
|
|
#define E5_MAX_VOLTAGE 127
|
|
|
|
#define E5_CHAIN_POS 0
|
|
|
|
#define E5_CHAIN_POS -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|