Code formatting for TMC and L6470 config options
This commit is contained in:
parent
127e21ae00
commit
4e4f37b6c2
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,70 +964,77 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
* You need to import the L6470 library into the Arduino IDE for this.
|
||||||
|
* (https://github.com/ameyer/Arduino-L6470)
|
||||||
|
*/
|
||||||
|
|
||||||
//#define HAVE_L6470DRIVER
|
//#define HAVE_L6470DRIVER
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -718,54 +718,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -976,7 +977,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -988,64 +990,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -713,54 +713,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -971,7 +972,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -983,64 +985,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -962,7 +963,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -974,64 +976,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -707,54 +707,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -965,7 +966,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -977,64 +979,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -707,54 +707,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -965,7 +966,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -977,64 +979,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -707,54 +707,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -965,7 +966,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -977,64 +979,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -712,54 +712,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -970,7 +971,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -982,64 +984,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -707,54 +707,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -965,7 +966,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -977,64 +979,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -705,54 +705,55 @@
|
||||||
#if ENABLED(HAVE_TMCDRIVER)
|
#if ENABLED(HAVE_TMCDRIVER)
|
||||||
|
|
||||||
//#define X_IS_TMC
|
//#define X_IS_TMC
|
||||||
#define X_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define X2_IS_TMC
|
//#define X2_IS_TMC
|
||||||
#define X2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define X2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y_IS_TMC
|
//#define Y_IS_TMC
|
||||||
#define Y_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Y2_IS_TMC
|
//#define Y2_IS_TMC
|
||||||
#define Y2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Y2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z_IS_TMC
|
//#define Z_IS_TMC
|
||||||
#define Z_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define Z2_IS_TMC
|
//#define Z2_IS_TMC
|
||||||
#define Z2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define Z2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E0_IS_TMC
|
//#define E0_IS_TMC
|
||||||
#define E0_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E0_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E1_IS_TMC
|
//#define E1_IS_TMC
|
||||||
#define E1_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E1_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E2_IS_TMC
|
//#define E2_IS_TMC
|
||||||
#define E2_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E2_SENSE_RESISTOR 91 //in mOhms
|
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
|
|
||||||
//#define E3_IS_TMC
|
//#define E3_IS_TMC
|
||||||
#define E3_MAX_CURRENT 1000 //in mA
|
|
||||||
#define E3_SENSE_RESISTOR 91 //in mOhms
|
#define X_MAX_CURRENT 1000 // in mA
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
#define X_SENSE_RESISTOR 91 // in mOhms
|
||||||
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
|
|
||||||
|
#define X2_MAX_CURRENT 1000
|
||||||
|
#define X2_SENSE_RESISTOR 91
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y_MAX_CURRENT 1000
|
||||||
|
#define Y_SENSE_RESISTOR 91
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Y2_MAX_CURRENT 1000
|
||||||
|
#define Y2_SENSE_RESISTOR 91
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z_MAX_CURRENT 1000
|
||||||
|
#define Z_SENSE_RESISTOR 91
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define Z2_MAX_CURRENT 1000
|
||||||
|
#define Z2_SENSE_RESISTOR 91
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E0_MAX_CURRENT 1000
|
||||||
|
#define E0_SENSE_RESISTOR 91
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E1_MAX_CURRENT 1000
|
||||||
|
#define E1_SENSE_RESISTOR 91
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E2_MAX_CURRENT 1000
|
||||||
|
#define E2_SENSE_RESISTOR 91
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
|
||||||
|
#define E3_MAX_CURRENT 1000
|
||||||
|
#define E3_SENSE_RESISTOR 91
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -963,7 +964,8 @@
|
||||||
|
|
||||||
#endif // HAVE_TMC2130DRIVER
|
#endif // HAVE_TMC2130DRIVER
|
||||||
|
|
||||||
// @section l6470
|
// @section L6470
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable this section if you have L6470 motor drivers.
|
* Enable this section if you have L6470 motor drivers.
|
||||||
|
@ -975,64 +977,65 @@
|
||||||
#if ENABLED(HAVE_L6470DRIVER)
|
#if ENABLED(HAVE_L6470DRIVER)
|
||||||
|
|
||||||
//#define X_IS_L6470
|
//#define X_IS_L6470
|
||||||
#define X_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define X2_IS_L6470
|
//#define X2_IS_L6470
|
||||||
#define X2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define X2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define X2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y_IS_L6470
|
//#define Y_IS_L6470
|
||||||
#define Y_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Y2_IS_L6470
|
//#define Y2_IS_L6470
|
||||||
#define Y2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Y2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Y2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z_IS_L6470
|
//#define Z_IS_L6470
|
||||||
#define Z_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define Z2_IS_L6470
|
//#define Z2_IS_L6470
|
||||||
#define Z2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define Z2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define Z2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E0_IS_L6470
|
//#define E0_IS_L6470
|
||||||
#define E0_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E0_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E0_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E1_IS_L6470
|
//#define E1_IS_L6470
|
||||||
#define E1_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E1_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E1_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E2_IS_L6470
|
//#define E2_IS_L6470
|
||||||
#define E2_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E2_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
|
||||||
#define E2_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
|
||||||
#define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
|
||||||
|
|
||||||
//#define E3_IS_L6470
|
//#define E3_IS_L6470
|
||||||
#define E3_MICROSTEPS 16 //number of microsteps
|
|
||||||
#define E3_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
#define X_MICROSTEPS 16 // number of microsteps
|
||||||
#define E3_OVERCURRENT 2000 //maxc current in mA. If the current goes over this value, the driver will switch off
|
#define X_K_VAL 50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
|
||||||
#define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
|
#define X_OVERCURRENT 2000 // maxc current in mA. If the current goes over this value, the driver will switch off
|
||||||
|
#define X_STALLCURRENT 1500 // current in mA where the driver will detect a stall
|
||||||
|
|
||||||
|
#define X2_MICROSTEPS 16
|
||||||
|
#define X2_K_VAL 50
|
||||||
|
#define X2_OVERCURRENT 2000
|
||||||
|
#define X2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y_MICROSTEPS 16
|
||||||
|
#define Y_K_VAL 50
|
||||||
|
#define Y_OVERCURRENT 2000
|
||||||
|
#define Y_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Y2_MICROSTEPS 16
|
||||||
|
#define Y2_K_VAL 50
|
||||||
|
#define Y2_OVERCURRENT 2000
|
||||||
|
#define Y2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z_MICROSTEPS 16
|
||||||
|
#define Z_K_VAL 50
|
||||||
|
#define Z_OVERCURRENT 2000
|
||||||
|
#define Z_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define Z2_MICROSTEPS 16
|
||||||
|
#define Z2_K_VAL 50
|
||||||
|
#define Z2_OVERCURRENT 2000
|
||||||
|
#define Z2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E0_MICROSTEPS 16
|
||||||
|
#define E0_K_VAL 50
|
||||||
|
#define E0_OVERCURRENT 2000
|
||||||
|
#define E0_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E1_MICROSTEPS 16
|
||||||
|
#define E1_K_VAL 50
|
||||||
|
#define E1_OVERCURRENT 2000
|
||||||
|
#define E1_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E2_MICROSTEPS 16
|
||||||
|
#define E2_K_VAL 50
|
||||||
|
#define E2_OVERCURRENT 2000
|
||||||
|
#define E2_STALLCURRENT 1500
|
||||||
|
|
||||||
|
#define E3_MICROSTEPS 16
|
||||||
|
#define E3_K_VAL 50
|
||||||
|
#define E3_OVERCURRENT 2000
|
||||||
|
#define E3_STALLCURRENT 1500
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue