SPI chaining with TMCStepper simplified interface (#15179)
This commit is contained in:
parent
4564ad2920
commit
178dcd6fd8
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -103,9 +103,15 @@ class TMCMarlin : public TMC, public TMCStorage<AXIS_LETTER, DRIVER_ID> {
|
||||||
TMCMarlin(const uint16_t cs_pin, const float RS) :
|
TMCMarlin(const uint16_t cs_pin, const float RS) :
|
||||||
TMC(cs_pin, RS)
|
TMC(cs_pin, RS)
|
||||||
{}
|
{}
|
||||||
|
TMCMarlin(const uint16_t cs_pin, const float RS, const uint8_t axis_chain_index) :
|
||||||
|
TMC(cs_pin, RS, axis_chain_index)
|
||||||
|
{}
|
||||||
TMCMarlin(const uint16_t CS, const float RS, const uint16_t pinMOSI, const uint16_t pinMISO, const uint16_t pinSCK) :
|
TMCMarlin(const uint16_t CS, const float RS, const uint16_t pinMOSI, const uint16_t pinMISO, const uint16_t pinSCK) :
|
||||||
TMC(CS, RS, pinMOSI, pinMISO, pinSCK)
|
TMC(CS, RS, pinMOSI, pinMISO, pinSCK)
|
||||||
{}
|
{}
|
||||||
|
TMCMarlin(const uint16_t CS, const float RS, const uint16_t pinMOSI, const uint16_t pinMISO, const uint16_t pinSCK, const uint8_t axis_chain_index) :
|
||||||
|
TMC(CS, RS, pinMOSI, pinMISO, pinSCK, axis_chain_index)
|
||||||
|
{}
|
||||||
inline uint16_t rms_current() { return TMC::rms_current(); }
|
inline uint16_t rms_current() { return TMC::rms_current(); }
|
||||||
inline void rms_current(uint16_t mA) {
|
inline void rms_current(uint16_t mA) {
|
||||||
this->val_mA = mA;
|
this->val_mA = mA;
|
||||||
|
@ -267,10 +273,10 @@ class TMCMarlin<TMC2209Stepper, AXIS_LETTER, DRIVER_ID, AXIS_ID> : public TMC220
|
||||||
template<char AXIS_LETTER, char DRIVER_ID, AxisEnum AXIS_ID>
|
template<char AXIS_LETTER, char DRIVER_ID, AxisEnum AXIS_ID>
|
||||||
class TMCMarlin<TMC2660Stepper, AXIS_LETTER, DRIVER_ID, AXIS_ID> : public TMC2660Stepper, public TMCStorage<AXIS_LETTER, DRIVER_ID> {
|
class TMCMarlin<TMC2660Stepper, AXIS_LETTER, DRIVER_ID, AXIS_ID> : public TMC2660Stepper, public TMCStorage<AXIS_LETTER, DRIVER_ID> {
|
||||||
public:
|
public:
|
||||||
TMCMarlin(const uint16_t cs_pin, const float RS) :
|
TMCMarlin(const uint16_t cs_pin, const float RS, const uint8_t) :
|
||||||
TMC2660Stepper(cs_pin, RS)
|
TMC2660Stepper(cs_pin, RS)
|
||||||
{}
|
{}
|
||||||
TMCMarlin(const uint16_t CS, const float RS, const uint16_t pinMOSI, const uint16_t pinMISO, const uint16_t pinSCK) :
|
TMCMarlin(const uint16_t CS, const float RS, const uint16_t pinMOSI, const uint16_t pinMISO, const uint16_t pinSCK, const uint8_t) :
|
||||||
TMC2660Stepper(CS, RS, pinMOSI, pinMISO, pinSCK)
|
TMC2660Stepper(CS, RS, pinMOSI, pinMISO, pinSCK)
|
||||||
{}
|
{}
|
||||||
inline uint16_t rms_current() { return TMC2660Stepper::rms_current(); }
|
inline uint16_t rms_current() { return TMC2660Stepper::rms_current(); }
|
||||||
|
|
|
@ -131,9 +131,6 @@
|
||||||
// Extensible UI pin mapping for RepRapDiscount
|
// Extensible UI pin mapping for RepRapDiscount
|
||||||
#define TOUCH_UI_ULTIPANEL ENABLED(LULZBOT_TOUCH_UI) && ANY(AO_EXP1_PINMAP, AO_EXP2_PINMAP, CR10_TFT_PINMAP)
|
#define TOUCH_UI_ULTIPANEL ENABLED(LULZBOT_TOUCH_UI) && ANY(AO_EXP1_PINMAP, AO_EXP2_PINMAP, CR10_TFT_PINMAP)
|
||||||
|
|
||||||
// TMC SPI Chaining
|
|
||||||
#define TMC_USE_CHAIN (X_CHAIN_POS||Y_CHAIN_POS||Z_CHAIN_POS||X2_CHAIN_POS||Y2_CHAIN_POS||Z2_CHAIN_POS||Z3_CHAIN_POS||E0_CHAIN_POS||E1_CHAIN_POS||E2_CHAIN_POS||E3_CHAIN_POS||E4_CHAIN_POS||E5_CHAIN_POS)
|
|
||||||
|
|
||||||
// Poll-based jogging for joystick and other devices
|
// Poll-based jogging for joystick and other devices
|
||||||
#if ENABLED(JOYSTICK)
|
#if ENABLED(JOYSTICK)
|
||||||
#define POLL_JOG
|
#define POLL_JOG
|
||||||
|
|
|
@ -2157,69 +2157,58 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
#error "STEALTHCHOP requires TMC2130, TMC2160, TMC2208, TMC2209, or TMC5160 stepper drivers."
|
#error "STEALTHCHOP requires TMC2130, TMC2160, TMC2208, TMC2209, or TMC5160 stepper drivers."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TMC_USE_CHAIN
|
#define IN_CHAIN(A) (A##_CHAIN_POS > 0)
|
||||||
#if (X_CHAIN_POS && !PIN_EXISTS(X_CS) ) \
|
// TMC SPI Chaining
|
||||||
|| (Y_CHAIN_POS && !PIN_EXISTS(Y_CS) ) \
|
#if IN_CHAIN(X) || IN_CHAIN(Y) || IN_CHAIN(Z) || IN_CHAIN(X2) || IN_CHAIN(Y2) || IN_CHAIN(Z2) || IN_CHAIN(Z3) || IN_CHAIN(E0) || IN_CHAIN(E1) || IN_CHAIN(E2) || IN_CHAIN(E3) || IN_CHAIN(E4) || IN_CHAIN(E5)
|
||||||
|| (Z_CHAIN_POS && !PIN_EXISTS(Z_CS) ) \
|
#if (IN_CHAIN(X) && !PIN_EXISTS(X_CS) ) || (IN_CHAIN(Y) && !PIN_EXISTS(Y_CS) ) \
|
||||||
|| (X2_CHAIN_POS && !PIN_EXISTS(X2_CS)) \
|
|| (IN_CHAIN(Z) && !PIN_EXISTS(Z_CS) ) || (IN_CHAIN(X2) && !PIN_EXISTS(X2_CS)) \
|
||||||
|| (Y2_CHAIN_POS && !PIN_EXISTS(Y2_CS)) \
|
|| (IN_CHAIN(Y2) && !PIN_EXISTS(Y2_CS)) || (IN_CHAIN(Z2) && !PIN_EXISTS(Z2_CS)) \
|
||||||
|| (Z2_CHAIN_POS && !PIN_EXISTS(Z2_CS)) \
|
|| (IN_CHAIN(Z3) && !PIN_EXISTS(Z3_CS)) || (IN_CHAIN(E0) && !PIN_EXISTS(E0_CS)) \
|
||||||
|| (Z3_CHAIN_POS && !PIN_EXISTS(Z3_CS)) \
|
|| (IN_CHAIN(E1) && !PIN_EXISTS(E1_CS)) || (IN_CHAIN(E2) && !PIN_EXISTS(E2_CS)) \
|
||||||
|| (E0_CHAIN_POS && !PIN_EXISTS(E0_CS)) \
|
|| (IN_CHAIN(E3) && !PIN_EXISTS(E3_CS)) || (IN_CHAIN(E4) && !PIN_EXISTS(E4_CS)) \
|
||||||
|| (E1_CHAIN_POS && !PIN_EXISTS(E1_CS)) \
|
|| (IN_CHAIN(E5) && !PIN_EXISTS(E5_CS))
|
||||||
|| (E2_CHAIN_POS && !PIN_EXISTS(E2_CS)) \
|
#error "All chained TMC drivers need a CS pin."
|
||||||
|| (E3_CHAIN_POS && !PIN_EXISTS(E3_CS)) \
|
|
||||||
|| (E4_CHAIN_POS && !PIN_EXISTS(E4_CS)) \
|
|
||||||
|| (E5_CHAIN_POS && !PIN_EXISTS(E5_CS))
|
|
||||||
#error "With TMC_USE_CHAIN all chained TMC drivers need a CS pin."
|
|
||||||
#else
|
#else
|
||||||
#if X_CHAIN_POS
|
#if IN_CHAIN(X)
|
||||||
#define CS_COMPARE X_CS_PIN
|
#define CS_COMPARE X_CS_PIN
|
||||||
#elif Y_CHAIN_POS
|
#elif IN_CHAIN(Y)
|
||||||
#define CS_COMPARE Y_CS_PIN
|
#define CS_COMPARE Y_CS_PIN
|
||||||
#elif Z_CHAIN_POS
|
#elif IN_CHAIN(Z)
|
||||||
#define CS_COMPARE Z_CS_PIN
|
#define CS_COMPARE Z_CS_PIN
|
||||||
#elif X2_CHAIN_POS
|
#elif IN_CHAIN(X2)
|
||||||
#define CS_COMPARE X2_CS_PIN
|
#define CS_COMPARE X2_CS_PIN
|
||||||
#elif Y2_CHAIN_POS
|
#elif IN_CHAIN(Y2)
|
||||||
#define CS_COMPARE Y2_CS_PIN
|
#define CS_COMPARE Y2_CS_PIN
|
||||||
#elif Z2_CHAIN_POS
|
#elif IN_CHAIN(Z2)
|
||||||
#define CS_COMPARE Z2_CS_PIN
|
#define CS_COMPARE Z2_CS_PIN
|
||||||
#elif Z3_CHAIN_POS
|
#elif IN_CHAIN(Z3)
|
||||||
#define CS_COMPARE Z3_CS_PIN
|
#define CS_COMPARE Z3_CS_PIN
|
||||||
#elif E0_CHAIN_POS
|
#elif IN_CHAIN(E0)
|
||||||
#define CS_COMPARE E0_CS_PIN
|
#define CS_COMPARE E0_CS_PIN
|
||||||
#elif E1_CHAIN_POS
|
#elif IN_CHAIN(E1)
|
||||||
#define CS_COMPARE E1_CS_PIN
|
#define CS_COMPARE E1_CS_PIN
|
||||||
#elif E2_CHAIN_POS
|
#elif IN_CHAIN(E2)
|
||||||
#define CS_COMPARE E2_CS_PIN
|
#define CS_COMPARE E2_CS_PIN
|
||||||
#elif E3_CHAIN_POS
|
#elif IN_CHAIN(E3)
|
||||||
#define CS_COMPARE E3_CS_PIN
|
#define CS_COMPARE E3_CS_PIN
|
||||||
#elif E4_CHAIN_POS
|
#elif IN_CHAIN(E4)
|
||||||
#define CS_COMPARE E4_CS_PIN
|
#define CS_COMPARE E4_CS_PIN
|
||||||
#elif E5_CHAIN_POS
|
#elif IN_CHAIN(E5)
|
||||||
#define CS_COMPARE E5_CS_PIN
|
#define CS_COMPARE E5_CS_PIN
|
||||||
#else
|
|
||||||
#error "With TMC_USE_CHAIN some TMC drivers should be chained."
|
|
||||||
#endif
|
#endif
|
||||||
#if (X_CHAIN_POS && X_CS_PIN != CS_COMPARE) \
|
#if (IN_CHAIN(X) && X_CS_PIN != CS_COMPARE) || (IN_CHAIN(Y) && Y_CS_PIN != CS_COMPARE) \
|
||||||
|| (Y_CHAIN_POS && Y_CS_PIN != CS_COMPARE) \
|
|| (IN_CHAIN(Z) && Z_CS_PIN != CS_COMPARE) || (IN_CHAIN(X2) && X2_CS_PIN != CS_COMPARE) \
|
||||||
|| (Z_CHAIN_POS && Z_CS_PIN != CS_COMPARE) \
|
|| (IN_CHAIN(Y2) && Y2_CS_PIN != CS_COMPARE) || (IN_CHAIN(Z2) && Z2_CS_PIN != CS_COMPARE) \
|
||||||
|| (X2_CHAIN_POS && X2_CS_PIN != CS_COMPARE) \
|
|| (IN_CHAIN(Z3) && Z3_CS_PIN != CS_COMPARE) || (IN_CHAIN(E0) && E0_CS_PIN != CS_COMPARE) \
|
||||||
|| (Y2_CHAIN_POS && Y2_CS_PIN != CS_COMPARE) \
|
|| (IN_CHAIN(E1) && E1_CS_PIN != CS_COMPARE) || (IN_CHAIN(E2) && E2_CS_PIN != CS_COMPARE) \
|
||||||
|| (Z2_CHAIN_POS && Z2_CS_PIN != CS_COMPARE) \
|
|| (IN_CHAIN(E3) && E3_CS_PIN != CS_COMPARE) || (IN_CHAIN(E4) && E4_CS_PIN != CS_COMPARE) \
|
||||||
|| (Z3_CHAIN_POS && Z3_CS_PIN != CS_COMPARE) \
|
|| (IN_CHAIN(E5) && E5_CS_PIN != CS_COMPARE)
|
||||||
|| (E0_CHAIN_POS && E0_CS_PIN != CS_COMPARE) \
|
#error "All chained TMC drivers must use the same CS pin."
|
||||||
|| (E1_CHAIN_POS && E1_CS_PIN != CS_COMPARE) \
|
|
||||||
|| (E2_CHAIN_POS && E2_CS_PIN != CS_COMPARE) \
|
|
||||||
|| (E3_CHAIN_POS && E3_CS_PIN != CS_COMPARE) \
|
|
||||||
|| (E4_CHAIN_POS && E4_CS_PIN != CS_COMPARE) \
|
|
||||||
|| (E5_CHAIN_POS && E5_CS_PIN != CS_COMPARE)
|
|
||||||
#error "With TMC_USE_CHAIN all TMC drivers must use the same CS pin."
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#undef CS_COMPARE
|
#undef CS_COMPARE
|
||||||
#endif // TMC_USE_CHAIN
|
#endif
|
||||||
|
#undef IN_CHAIN
|
||||||
|
|
||||||
#if ENABLED(DELTA) && (ENABLED(STEALTHCHOP_XY) != ENABLED(STEALTHCHOP_Z))
|
#if ENABLED(DELTA) && (ENABLED(STEALTHCHOP_XY) != ENABLED(STEALTHCHOP_Z))
|
||||||
#error "STEALTHCHOP_XY and STEALTHCHOP_Z must be the same on DELTA."
|
#error "STEALTHCHOP_XY and STEALTHCHOP_Z must be the same on DELTA."
|
||||||
|
|
|
@ -44,9 +44,9 @@ enum StealthIndex : uint8_t { STEALTH_AXIS_XY, STEALTH_AXIS_Z, STEALTH_AXIS_E };
|
||||||
// AI = Axis Enum Index
|
// AI = Axis Enum Index
|
||||||
// SWHW = SW/SH UART selection
|
// SWHW = SW/SH UART selection
|
||||||
#if ENABLED(TMC_USE_SW_SPI)
|
#if ENABLED(TMC_USE_SW_SPI)
|
||||||
#define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, ST##_RSENSE, TMC_SW_MOSI, TMC_SW_MISO, TMC_SW_SCK)
|
#define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, ST##_RSENSE, TMC_SW_MOSI, TMC_SW_MISO, TMC_SW_SCK, ST##_CHAIN_POS)
|
||||||
#else
|
#else
|
||||||
#define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, ST##_RSENSE)
|
#define __TMC_SPI_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(ST##_CS_PIN, ST##_RSENSE, ST##_CHAIN_POS)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TMC_UART_HW_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(&ST##_HARDWARE_SERIAL, ST##_RSENSE, ST##_SLAVE_ADDRESS)
|
#define TMC_UART_HW_DEFINE(IC, ST, L, AI) TMCMarlin<IC##Stepper, L, AI> stepper##ST(&ST##_HARDWARE_SERIAL, ST##_RSENSE, ST##_SLAVE_ADDRESS)
|
||||||
|
@ -653,93 +653,6 @@ void reset_trinamic_drivers() {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if TMC_USE_CHAIN
|
|
||||||
|
|
||||||
enum TMC_axis_enum : unsigned char { _, X, Y, Z, X2, Y2, Z2, Z3, E0, E1, E2, E3, E4, E5 };
|
|
||||||
#define __TMC_CHAIN(Q,V) do{ stepper##Q.set_chain_info(Q,V); }while(0)
|
|
||||||
#define _TMC_CHAIN(Q) __TMC_CHAIN(Q, Q##_CHAIN_POS)
|
|
||||||
|
|
||||||
#if AXIS_HAS_SPI(X) // First set chain array to uninitialized
|
|
||||||
__TMC_CHAIN(X, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(X2)
|
|
||||||
__TMC_CHAIN(X2, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Y)
|
|
||||||
__TMC_CHAIN(Y, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Y2)
|
|
||||||
__TMC_CHAIN(Y2, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Z)
|
|
||||||
__TMC_CHAIN(Z, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Z2)
|
|
||||||
__TMC_CHAIN(Z2, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Z3)
|
|
||||||
__TMC_CHAIN(Z3, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E0)
|
|
||||||
__TMC_CHAIN(E0, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E1)
|
|
||||||
__TMC_CHAIN(E1, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E2)
|
|
||||||
__TMC_CHAIN(E2, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E3)
|
|
||||||
__TMC_CHAIN(E3, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E4)
|
|
||||||
__TMC_CHAIN(E4, 0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E5)
|
|
||||||
__TMC_CHAIN(E5, 0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if AXIS_HAS_SPI(X) && X_CHAIN_POS // Now set up the SPI chain
|
|
||||||
_TMC_CHAIN(X);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(X2) && X2_CHAIN_POS
|
|
||||||
_TMC_CHAIN(X2);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Y) && Y_CHAIN_POS
|
|
||||||
_TMC_CHAIN(Y);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Y2) && Y2_CHAIN_POS
|
|
||||||
_TMC_CHAIN(Y2);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Z) && Z_CHAIN_POS
|
|
||||||
_TMC_CHAIN(Z);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Z2) && Z2_CHAIN_POS
|
|
||||||
_TMC_CHAIN(Z2);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(Z3) && Z3_CHAIN_POS
|
|
||||||
_TMC_CHAIN(Z3);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E0) && E0_CHAIN_POS
|
|
||||||
_TMC_CHAIN(E0);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E1) && E1_CHAIN_POS
|
|
||||||
_TMC_CHAIN(E1);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E2) && E2_CHAIN_POS
|
|
||||||
_TMC_CHAIN(E2);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E3) && E3_CHAIN_POS
|
|
||||||
_TMC_CHAIN(E3);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E4) && E4_CHAIN_POS
|
|
||||||
_TMC_CHAIN(E4);
|
|
||||||
#endif
|
|
||||||
#if AXIS_HAS_SPI(E5) && E5_CHAIN_POS
|
|
||||||
_TMC_CHAIN(E5);
|
|
||||||
#endif
|
|
||||||
#endif // TMC_USE_CHAIN
|
|
||||||
|
|
||||||
#if AXIS_IS_TMC(X)
|
#if AXIS_IS_TMC(X)
|
||||||
_TMC_INIT(X, STEALTH_AXIS_XY);
|
_TMC_INIT(X, STEALTH_AXIS_XY);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1802,91 +1802,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2112,7 +2112,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)
|
||||||
|
@ -2120,7 +2120,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)
|
||||||
|
@ -2128,7 +2128,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)
|
||||||
|
@ -2136,7 +2136,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)
|
||||||
|
@ -2144,7 +2144,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)
|
||||||
|
@ -2152,7 +2152,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)
|
||||||
|
@ -2160,7 +2160,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)
|
||||||
|
@ -2168,7 +2168,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)
|
||||||
|
@ -2176,7 +2176,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)
|
||||||
|
@ -2184,7 +2184,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)
|
||||||
|
@ -2192,7 +2192,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)
|
||||||
|
@ -2200,7 +2200,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)
|
||||||
|
@ -2208,7 +2208,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1801,91 +1801,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2111,7 +2111,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)
|
||||||
|
@ -2119,7 +2119,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)
|
||||||
|
@ -2127,7 +2127,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)
|
||||||
|
@ -2135,7 +2135,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)
|
||||||
|
@ -2143,7 +2143,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)
|
||||||
|
@ -2151,7 +2151,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)
|
||||||
|
@ -2159,7 +2159,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)
|
||||||
|
@ -2167,7 +2167,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)
|
||||||
|
@ -2175,7 +2175,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)
|
||||||
|
@ -2183,7 +2183,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)
|
||||||
|
@ -2191,7 +2191,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)
|
||||||
|
@ -2199,7 +2199,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)
|
||||||
|
@ -2207,7 +2207,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1801,91 +1801,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2111,7 +2111,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)
|
||||||
|
@ -2119,7 +2119,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)
|
||||||
|
@ -2127,7 +2127,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)
|
||||||
|
@ -2135,7 +2135,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)
|
||||||
|
@ -2143,7 +2143,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)
|
||||||
|
@ -2151,7 +2151,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)
|
||||||
|
@ -2159,7 +2159,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)
|
||||||
|
@ -2167,7 +2167,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)
|
||||||
|
@ -2175,7 +2175,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)
|
||||||
|
@ -2183,7 +2183,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)
|
||||||
|
@ -2191,7 +2191,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)
|
||||||
|
@ -2199,7 +2199,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)
|
||||||
|
@ -2207,7 +2207,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1805,91 +1805,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2115,7 +2115,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)
|
||||||
|
@ -2123,7 +2123,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)
|
||||||
|
@ -2131,7 +2131,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)
|
||||||
|
@ -2139,7 +2139,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)
|
||||||
|
@ -2147,7 +2147,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)
|
||||||
|
@ -2155,7 +2155,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)
|
||||||
|
@ -2163,7 +2163,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)
|
||||||
|
@ -2171,7 +2171,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)
|
||||||
|
@ -2179,7 +2179,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)
|
||||||
|
@ -2187,7 +2187,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)
|
||||||
|
@ -2195,7 +2195,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)
|
||||||
|
@ -2203,7 +2203,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)
|
||||||
|
@ -2211,7 +2211,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1797,91 +1797,91 @@
|
||||||
#define X_CURRENT 580 // (mA) RMS current. Multiply by 1.414 for peak current.
|
#define X_CURRENT 580 // (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 580
|
#define Y_CURRENT 580
|
||||||
#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 580
|
#define Z_CURRENT 580
|
||||||
#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 650
|
#define E0_CURRENT 650
|
||||||
#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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1797,91 +1797,91 @@
|
||||||
#define X_CURRENT 700 // (mA) RMS current. Multiply by 1.414 for peak current.
|
#define X_CURRENT 700 // (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 650
|
#define Y_CURRENT 650
|
||||||
#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 650
|
#define E0_CURRENT 650
|
||||||
#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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1797,91 +1797,91 @@
|
||||||
#define X_CURRENT 700 // (mA) RMS current. Multiply by 1.414 for peak current.
|
#define X_CURRENT 700 // (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 500
|
#define Y_CURRENT 500
|
||||||
#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 650
|
#define E0_CURRENT 650
|
||||||
#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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1797,91 +1797,91 @@
|
||||||
#define X_CURRENT 700 // (mA) RMS current. Multiply by 1.414 for peak current.
|
#define X_CURRENT 700 // (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 500
|
#define Y_CURRENT 500
|
||||||
#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 650
|
#define E0_CURRENT 650
|
||||||
#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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1797,91 +1797,91 @@
|
||||||
#define X_CURRENT 700 // (mA) RMS current. Multiply by 1.414 for peak current.
|
#define X_CURRENT 700 // (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 500
|
#define Y_CURRENT 500
|
||||||
#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 650
|
#define E0_CURRENT 650
|
||||||
#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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1797,91 +1797,91 @@
|
||||||
#define X_CURRENT 700 // (mA) RMS current. Multiply by 1.414 for peak current.
|
#define X_CURRENT 700 // (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 500
|
#define Y_CURRENT 500
|
||||||
#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 650
|
#define E0_CURRENT 650
|
||||||
#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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1796,91 +1796,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2106,7 +2106,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)
|
||||||
|
@ -2114,7 +2114,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)
|
||||||
|
@ -2122,7 +2122,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)
|
||||||
|
@ -2130,7 +2130,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)
|
||||||
|
@ -2138,7 +2138,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)
|
||||||
|
@ -2146,7 +2146,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)
|
||||||
|
@ -2154,7 +2154,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)
|
||||||
|
@ -2162,7 +2162,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)
|
||||||
|
@ -2170,7 +2170,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)
|
||||||
|
@ -2178,7 +2178,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)
|
||||||
|
@ -2186,7 +2186,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)
|
||||||
|
@ -2194,7 +2194,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)
|
||||||
|
@ -2202,7 +2202,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1801,91 +1801,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2111,7 +2111,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)
|
||||||
|
@ -2119,7 +2119,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)
|
||||||
|
@ -2127,7 +2127,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)
|
||||||
|
@ -2135,7 +2135,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)
|
||||||
|
@ -2143,7 +2143,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)
|
||||||
|
@ -2151,7 +2151,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)
|
||||||
|
@ -2159,7 +2159,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)
|
||||||
|
@ -2167,7 +2167,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)
|
||||||
|
@ -2175,7 +2175,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)
|
||||||
|
@ -2183,7 +2183,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)
|
||||||
|
@ -2191,7 +2191,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)
|
||||||
|
@ -2199,7 +2199,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)
|
||||||
|
@ -2207,7 +2207,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1801,91 +1801,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2111,7 +2111,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)
|
||||||
|
@ -2119,7 +2119,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)
|
||||||
|
@ -2127,7 +2127,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)
|
||||||
|
@ -2135,7 +2135,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)
|
||||||
|
@ -2143,7 +2143,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)
|
||||||
|
@ -2151,7 +2151,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)
|
||||||
|
@ -2159,7 +2159,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)
|
||||||
|
@ -2167,7 +2167,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)
|
||||||
|
@ -2175,7 +2175,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)
|
||||||
|
@ -2183,7 +2183,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)
|
||||||
|
@ -2191,7 +2191,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)
|
||||||
|
@ -2199,7 +2199,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)
|
||||||
|
@ -2207,7 +2207,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1796,91 +1796,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2106,7 +2106,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)
|
||||||
|
@ -2114,7 +2114,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)
|
||||||
|
@ -2122,7 +2122,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)
|
||||||
|
@ -2130,7 +2130,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)
|
||||||
|
@ -2138,7 +2138,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)
|
||||||
|
@ -2146,7 +2146,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)
|
||||||
|
@ -2154,7 +2154,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)
|
||||||
|
@ -2162,7 +2162,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)
|
||||||
|
@ -2170,7 +2170,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)
|
||||||
|
@ -2178,7 +2178,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)
|
||||||
|
@ -2186,7 +2186,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)
|
||||||
|
@ -2194,7 +2194,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)
|
||||||
|
@ -2202,7 +2202,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1776,91 +1776,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2086,7 +2086,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)
|
||||||
|
@ -2094,7 +2094,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)
|
||||||
|
@ -2102,7 +2102,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)
|
||||||
|
@ -2110,7 +2110,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)
|
||||||
|
@ -2118,7 +2118,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)
|
||||||
|
@ -2126,7 +2126,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)
|
||||||
|
@ -2134,7 +2134,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)
|
||||||
|
@ -2142,7 +2142,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)
|
||||||
|
@ -2150,7 +2150,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)
|
||||||
|
@ -2158,7 +2158,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)
|
||||||
|
@ -2166,7 +2166,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)
|
||||||
|
@ -2174,7 +2174,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)
|
||||||
|
@ -2182,7 +2182,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1802,91 +1802,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2112,7 +2112,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)
|
||||||
|
@ -2120,7 +2120,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)
|
||||||
|
@ -2128,7 +2128,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)
|
||||||
|
@ -2136,7 +2136,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)
|
||||||
|
@ -2144,7 +2144,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)
|
||||||
|
@ -2152,7 +2152,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)
|
||||||
|
@ -2160,7 +2160,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)
|
||||||
|
@ -2168,7 +2168,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)
|
||||||
|
@ -2176,7 +2176,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)
|
||||||
|
@ -2184,7 +2184,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)
|
||||||
|
@ -2192,7 +2192,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)
|
||||||
|
@ -2200,7 +2200,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)
|
||||||
|
@ -2208,7 +2208,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1802,91 +1802,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2112,7 +2112,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)
|
||||||
|
@ -2120,7 +2120,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)
|
||||||
|
@ -2128,7 +2128,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)
|
||||||
|
@ -2136,7 +2136,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)
|
||||||
|
@ -2144,7 +2144,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)
|
||||||
|
@ -2152,7 +2152,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)
|
||||||
|
@ -2160,7 +2160,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)
|
||||||
|
@ -2168,7 +2168,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)
|
||||||
|
@ -2176,7 +2176,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)
|
||||||
|
@ -2184,7 +2184,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)
|
||||||
|
@ -2192,7 +2192,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)
|
||||||
|
@ -2200,7 +2200,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)
|
||||||
|
@ -2208,7 +2208,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1798,91 +1798,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2108,7 +2108,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)
|
||||||
|
@ -2116,7 +2116,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)
|
||||||
|
@ -2124,7 +2124,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)
|
||||||
|
@ -2132,7 +2132,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)
|
||||||
|
@ -2140,7 +2140,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)
|
||||||
|
@ -2148,7 +2148,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)
|
||||||
|
@ -2156,7 +2156,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)
|
||||||
|
@ -2164,7 +2164,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)
|
||||||
|
@ -2172,7 +2172,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)
|
||||||
|
@ -2180,7 +2180,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)
|
||||||
|
@ -2188,7 +2188,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)
|
||||||
|
@ -2196,7 +2196,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)
|
||||||
|
@ -2204,7 +2204,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1793,91 +1793,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2103,7 +2103,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)
|
||||||
|
@ -2111,7 +2111,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)
|
||||||
|
@ -2119,7 +2119,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)
|
||||||
|
@ -2127,7 +2127,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)
|
||||||
|
@ -2135,7 +2135,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)
|
||||||
|
@ -2143,7 +2143,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)
|
||||||
|
@ -2151,7 +2151,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)
|
||||||
|
@ -2159,7 +2159,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)
|
||||||
|
@ -2167,7 +2167,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)
|
||||||
|
@ -2175,7 +2175,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)
|
||||||
|
@ -2183,7 +2183,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)
|
||||||
|
@ -2191,7 +2191,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)
|
||||||
|
@ -2199,7 +2199,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1810,91 +1810,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2120,7 +2120,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)
|
||||||
|
@ -2128,7 +2128,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)
|
||||||
|
@ -2136,7 +2136,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)
|
||||||
|
@ -2144,7 +2144,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)
|
||||||
|
@ -2152,7 +2152,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)
|
||||||
|
@ -2160,7 +2160,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)
|
||||||
|
@ -2168,7 +2168,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)
|
||||||
|
@ -2176,7 +2176,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)
|
||||||
|
@ -2184,7 +2184,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)
|
||||||
|
@ -2192,7 +2192,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)
|
||||||
|
@ -2200,7 +2200,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)
|
||||||
|
@ -2208,7 +2208,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)
|
||||||
|
@ -2216,7 +2216,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2097,7 +2097,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)
|
||||||
|
@ -2105,7 +2105,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)
|
||||||
|
@ -2113,7 +2113,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)
|
||||||
|
@ -2121,7 +2121,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)
|
||||||
|
@ -2129,7 +2129,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)
|
||||||
|
@ -2137,7 +2137,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)
|
||||||
|
@ -2145,7 +2145,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)
|
||||||
|
@ -2153,7 +2153,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)
|
||||||
|
@ -2161,7 +2161,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)
|
||||||
|
@ -2169,7 +2169,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)
|
||||||
|
@ -2177,7 +2177,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)
|
||||||
|
@ -2185,7 +2185,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)
|
||||||
|
@ -2193,7 +2193,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2097,7 +2097,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)
|
||||||
|
@ -2105,7 +2105,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)
|
||||||
|
@ -2113,7 +2113,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)
|
||||||
|
@ -2121,7 +2121,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)
|
||||||
|
@ -2129,7 +2129,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)
|
||||||
|
@ -2137,7 +2137,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)
|
||||||
|
@ -2145,7 +2145,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)
|
||||||
|
@ -2153,7 +2153,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)
|
||||||
|
@ -2161,7 +2161,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)
|
||||||
|
@ -2169,7 +2169,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)
|
||||||
|
@ -2177,7 +2177,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)
|
||||||
|
@ -2185,7 +2185,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)
|
||||||
|
@ -2193,7 +2193,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1799,91 +1799,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2109,7 +2109,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)
|
||||||
|
@ -2117,7 +2117,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)
|
||||||
|
@ -2125,7 +2125,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)
|
||||||
|
@ -2133,7 +2133,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)
|
||||||
|
@ -2141,7 +2141,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)
|
||||||
|
@ -2149,7 +2149,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)
|
||||||
|
@ -2157,7 +2157,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)
|
||||||
|
@ -2165,7 +2165,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)
|
||||||
|
@ -2173,7 +2173,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)
|
||||||
|
@ -2181,7 +2181,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)
|
||||||
|
@ -2189,7 +2189,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)
|
||||||
|
@ -2197,7 +2197,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)
|
||||||
|
@ -2205,7 +2205,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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue