Browse Source

Code formatting for TMC and L6470 config options

Scott Lahteine 8 years ago
parent
commit
4e4f37b6c2

+ 97
- 89
Marlin/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,70 +964,77 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
969
+/**
970
+ * Enable this section if you have L6470 motor drivers.
971
+ * You need to import the L6470 library into the Arduino IDE for this.
972
+ * (https://github.com/ameyer/Arduino-L6470)
973
+ */
967 974
 
968 975
 //#define HAVE_L6470DRIVER
969 976
 #if ENABLED(HAVE_L6470DRIVER)
970 977
 
971 978
   //#define X_IS_L6470
972
-  #define X_MICROSTEPS 16     //number of microsteps
973
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
974
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
975
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
976
-
977 979
   //#define X2_IS_L6470
978
-  #define X2_MICROSTEPS 16     //number of microsteps
979
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define Y_IS_L6470
984
-  #define Y_MICROSTEPS 16     //number of microsteps
985
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y2_IS_L6470
990
-  #define Y2_MICROSTEPS 16     //number of microsteps
991
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Z_IS_L6470
996
-  #define Z_MICROSTEPS 16     //number of microsteps
997
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z2_IS_L6470
1002
-  #define Z2_MICROSTEPS 16     //number of microsteps
1003
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define E0_IS_L6470
1008
-  #define E0_MICROSTEPS 16     //number of microsteps
1009
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E1_IS_L6470
1014
-  #define E1_MICROSTEPS 16     //number of microsteps
1015
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E2_IS_L6470
1020
-  #define E2_MICROSTEPS 16     //number of microsteps
1021
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E3_IS_L6470
1026
-  #define E3_MICROSTEPS 16     //number of microsteps
1027
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
+
989
+  #define X_MICROSTEPS      16 // number of microsteps
990
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
991
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
992
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
993
+
994
+  #define X2_MICROSTEPS     16
995
+  #define X2_K_VAL          50
996
+  #define X2_OVERCURRENT  2000
997
+  #define X2_STALLCURRENT 1500
998
+
999
+  #define Y_MICROSTEPS      16
1000
+  #define Y_K_VAL           50
1001
+  #define Y_OVERCURRENT   2000
1002
+  #define Y_STALLCURRENT  1500
1003
+
1004
+  #define Y2_MICROSTEPS     16
1005
+  #define Y2_K_VAL          50
1006
+  #define Y2_OVERCURRENT  2000
1007
+  #define Y2_STALLCURRENT 1500
1008
+
1009
+  #define Z_MICROSTEPS      16
1010
+  #define Z_K_VAL           50
1011
+  #define Z_OVERCURRENT   2000
1012
+  #define Z_STALLCURRENT  1500
1013
+
1014
+  #define Z2_MICROSTEPS     16
1015
+  #define Z2_K_VAL          50
1016
+  #define Z2_OVERCURRENT  2000
1017
+  #define Z2_STALLCURRENT 1500
1018
+
1019
+  #define E0_MICROSTEPS     16
1020
+  #define E0_K_VAL          50
1021
+  #define E0_OVERCURRENT  2000
1022
+  #define E0_STALLCURRENT 1500
1023
+
1024
+  #define E1_MICROSTEPS     16
1025
+  #define E1_K_VAL          50
1026
+  #define E1_OVERCURRENT  2000
1027
+  #define E1_STALLCURRENT 1500
1028
+
1029
+  #define E2_MICROSTEPS     16
1030
+  #define E2_K_VAL          50
1031
+  #define E2_OVERCURRENT  2000
1032
+  #define E2_STALLCURRENT 1500
1033
+
1034
+  #define E3_MICROSTEPS     16
1035
+  #define E3_K_VAL          50
1036
+  #define E3_OVERCURRENT  2000
1037
+  #define E3_STALLCURRENT 1500
1030 1038
 
1031 1039
 #endif
1032 1040
 

+ 92
- 89
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -718,54 +718,55 @@
718 718
 #if ENABLED(HAVE_TMCDRIVER)
719 719
 
720 720
   //#define X_IS_TMC
721
-  #define X_MAX_CURRENT 1000  //in mA
722
-  #define X_SENSE_RESISTOR 91 //in mOhms
723
-  #define X_MICROSTEPS 16     //number of microsteps
724
-
725 721
   //#define X2_IS_TMC
726
-  #define X2_MAX_CURRENT 1000  //in mA
727
-  #define X2_SENSE_RESISTOR 91 //in mOhms
728
-  #define X2_MICROSTEPS 16     //number of microsteps
729
-
730 722
   //#define Y_IS_TMC
731
-  #define Y_MAX_CURRENT 1000  //in mA
732
-  #define Y_SENSE_RESISTOR 91 //in mOhms
733
-  #define Y_MICROSTEPS 16     //number of microsteps
734
-
735 723
   //#define Y2_IS_TMC
736
-  #define Y2_MAX_CURRENT 1000  //in mA
737
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
738
-  #define Y2_MICROSTEPS 16     //number of microsteps
739
-
740 724
   //#define Z_IS_TMC
741
-  #define Z_MAX_CURRENT 1000  //in mA
742
-  #define Z_SENSE_RESISTOR 91 //in mOhms
743
-  #define Z_MICROSTEPS 16     //number of microsteps
744
-
745 725
   //#define Z2_IS_TMC
746
-  #define Z2_MAX_CURRENT 1000  //in mA
747
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
748
-  #define Z2_MICROSTEPS 16     //number of microsteps
749
-
750 726
   //#define E0_IS_TMC
751
-  #define E0_MAX_CURRENT 1000  //in mA
752
-  #define E0_SENSE_RESISTOR 91 //in mOhms
753
-  #define E0_MICROSTEPS 16     //number of microsteps
754
-
755 727
   //#define E1_IS_TMC
756
-  #define E1_MAX_CURRENT 1000  //in mA
757
-  #define E1_SENSE_RESISTOR 91 //in mOhms
758
-  #define E1_MICROSTEPS 16     //number of microsteps
759
-
760 728
   //#define E2_IS_TMC
761
-  #define E2_MAX_CURRENT 1000  //in mA
762
-  #define E2_SENSE_RESISTOR 91 //in mOhms
763
-  #define E2_MICROSTEPS 16     //number of microsteps
764
-
765 729
   //#define E3_IS_TMC
766
-  #define E3_MAX_CURRENT 1000  //in mA
767
-  #define E3_SENSE_RESISTOR 91 //in mOhms
768
-  #define E3_MICROSTEPS 16     //number of microsteps
730
+
731
+  #define X_MAX_CURRENT     1000 // in mA
732
+  #define X_SENSE_RESISTOR    91 // in mOhms
733
+  #define X_MICROSTEPS        16 // number of microsteps
734
+
735
+  #define X2_MAX_CURRENT    1000
736
+  #define X2_SENSE_RESISTOR   91
737
+  #define X2_MICROSTEPS       16
738
+
739
+  #define Y_MAX_CURRENT     1000
740
+  #define Y_SENSE_RESISTOR    91
741
+  #define Y_MICROSTEPS        16
742
+
743
+  #define Y2_MAX_CURRENT    1000
744
+  #define Y2_SENSE_RESISTOR   91
745
+  #define Y2_MICROSTEPS       16
746
+
747
+  #define Z_MAX_CURRENT     1000
748
+  #define Z_SENSE_RESISTOR    91
749
+  #define Z_MICROSTEPS        16
750
+
751
+  #define Z2_MAX_CURRENT    1000
752
+  #define Z2_SENSE_RESISTOR   91
753
+  #define Z2_MICROSTEPS       16
754
+
755
+  #define E0_MAX_CURRENT    1000
756
+  #define E0_SENSE_RESISTOR   91
757
+  #define E0_MICROSTEPS       16
758
+
759
+  #define E1_MAX_CURRENT    1000
760
+  #define E1_SENSE_RESISTOR   91
761
+  #define E1_MICROSTEPS       16
762
+
763
+  #define E2_MAX_CURRENT    1000
764
+  #define E2_SENSE_RESISTOR   91
765
+  #define E2_MICROSTEPS       16
766
+
767
+  #define E3_MAX_CURRENT    1000
768
+  #define E3_SENSE_RESISTOR   91
769
+  #define E3_MICROSTEPS       16
769 770
 
770 771
 #endif
771 772
 
@@ -976,7 +977,8 @@
976 977
 
977 978
 #endif // HAVE_TMC2130DRIVER
978 979
 
979
-// @section l6470
980
+// @section L6470
981
+
980 982
 
981 983
 /**
982 984
  * Enable this section if you have L6470 motor drivers.
@@ -988,64 +990,65 @@
988 990
 #if ENABLED(HAVE_L6470DRIVER)
989 991
 
990 992
   //#define X_IS_L6470
991
-  #define X_MICROSTEPS 16     //number of microsteps
992
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
993
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
994
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
995
-
996 993
   //#define X2_IS_L6470
997
-  #define X2_MICROSTEPS 16     //number of microsteps
998
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
999
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1000
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1001
-
1002 994
   //#define Y_IS_L6470
1003
-  #define Y_MICROSTEPS 16     //number of microsteps
1004
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1005
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1006
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1007
-
1008 995
   //#define Y2_IS_L6470
1009
-  #define Y2_MICROSTEPS 16     //number of microsteps
1010
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1011
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1012
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1013
-
1014 996
   //#define Z_IS_L6470
1015
-  #define Z_MICROSTEPS 16     //number of microsteps
1016
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1017
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1018
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1019
-
1020 997
   //#define Z2_IS_L6470
1021
-  #define Z2_MICROSTEPS 16     //number of microsteps
1022
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1023
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1024
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1025
-
1026 998
   //#define E0_IS_L6470
1027
-  #define E0_MICROSTEPS 16     //number of microsteps
1028
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1029
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1030
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1031
-
1032 999
   //#define E1_IS_L6470
1033
-  #define E1_MICROSTEPS 16     //number of microsteps
1034
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1035
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1036
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1037
-
1038 1000
   //#define E2_IS_L6470
1039
-  #define E2_MICROSTEPS 16     //number of microsteps
1040
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1041
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1042
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1043
-
1044 1001
   //#define E3_IS_L6470
1045
-  #define E3_MICROSTEPS 16     //number of microsteps
1046
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1047
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1048
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1002
+
1003
+  #define X_MICROSTEPS      16 // number of microsteps
1004
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
1005
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
1006
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
1007
+
1008
+  #define X2_MICROSTEPS     16
1009
+  #define X2_K_VAL          50
1010
+  #define X2_OVERCURRENT  2000
1011
+  #define X2_STALLCURRENT 1500
1012
+
1013
+  #define Y_MICROSTEPS      16
1014
+  #define Y_K_VAL           50
1015
+  #define Y_OVERCURRENT   2000
1016
+  #define Y_STALLCURRENT  1500
1017
+
1018
+  #define Y2_MICROSTEPS     16
1019
+  #define Y2_K_VAL          50
1020
+  #define Y2_OVERCURRENT  2000
1021
+  #define Y2_STALLCURRENT 1500
1022
+
1023
+  #define Z_MICROSTEPS      16
1024
+  #define Z_K_VAL           50
1025
+  #define Z_OVERCURRENT   2000
1026
+  #define Z_STALLCURRENT  1500
1027
+
1028
+  #define Z2_MICROSTEPS     16
1029
+  #define Z2_K_VAL          50
1030
+  #define Z2_OVERCURRENT  2000
1031
+  #define Z2_STALLCURRENT 1500
1032
+
1033
+  #define E0_MICROSTEPS     16
1034
+  #define E0_K_VAL          50
1035
+  #define E0_OVERCURRENT  2000
1036
+  #define E0_STALLCURRENT 1500
1037
+
1038
+  #define E1_MICROSTEPS     16
1039
+  #define E1_K_VAL          50
1040
+  #define E1_OVERCURRENT  2000
1041
+  #define E1_STALLCURRENT 1500
1042
+
1043
+  #define E2_MICROSTEPS     16
1044
+  #define E2_K_VAL          50
1045
+  #define E2_OVERCURRENT  2000
1046
+  #define E2_STALLCURRENT 1500
1047
+
1048
+  #define E3_MICROSTEPS     16
1049
+  #define E3_K_VAL          50
1050
+  #define E3_OVERCURRENT  2000
1051
+  #define E3_STALLCURRENT 1500
1049 1052
 
1050 1053
 #endif
1051 1054
 

+ 92
- 89
Marlin/example_configurations/K8400/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

@@ -713,54 +713,55 @@
713 713
 #if ENABLED(HAVE_TMCDRIVER)
714 714
 
715 715
   //#define X_IS_TMC
716
-  #define X_MAX_CURRENT 1000  //in mA
717
-  #define X_SENSE_RESISTOR 91 //in mOhms
718
-  #define X_MICROSTEPS 16     //number of microsteps
719
-
720 716
   //#define X2_IS_TMC
721
-  #define X2_MAX_CURRENT 1000  //in mA
722
-  #define X2_SENSE_RESISTOR 91 //in mOhms
723
-  #define X2_MICROSTEPS 16     //number of microsteps
724
-
725 717
   //#define Y_IS_TMC
726
-  #define Y_MAX_CURRENT 1000  //in mA
727
-  #define Y_SENSE_RESISTOR 91 //in mOhms
728
-  #define Y_MICROSTEPS 16     //number of microsteps
729
-
730 718
   //#define Y2_IS_TMC
731
-  #define Y2_MAX_CURRENT 1000  //in mA
732
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
733
-  #define Y2_MICROSTEPS 16     //number of microsteps
734
-
735 719
   //#define Z_IS_TMC
736
-  #define Z_MAX_CURRENT 1000  //in mA
737
-  #define Z_SENSE_RESISTOR 91 //in mOhms
738
-  #define Z_MICROSTEPS 16     //number of microsteps
739
-
740 720
   //#define Z2_IS_TMC
741
-  #define Z2_MAX_CURRENT 1000  //in mA
742
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
743
-  #define Z2_MICROSTEPS 16     //number of microsteps
744
-
745 721
   //#define E0_IS_TMC
746
-  #define E0_MAX_CURRENT 1000  //in mA
747
-  #define E0_SENSE_RESISTOR 91 //in mOhms
748
-  #define E0_MICROSTEPS 16     //number of microsteps
749
-
750 722
   //#define E1_IS_TMC
751
-  #define E1_MAX_CURRENT 1000  //in mA
752
-  #define E1_SENSE_RESISTOR 91 //in mOhms
753
-  #define E1_MICROSTEPS 16     //number of microsteps
754
-
755 723
   //#define E2_IS_TMC
756
-  #define E2_MAX_CURRENT 1000  //in mA
757
-  #define E2_SENSE_RESISTOR 91 //in mOhms
758
-  #define E2_MICROSTEPS 16     //number of microsteps
759
-
760 724
   //#define E3_IS_TMC
761
-  #define E3_MAX_CURRENT 1000  //in mA
762
-  #define E3_SENSE_RESISTOR 91 //in mOhms
763
-  #define E3_MICROSTEPS 16     //number of microsteps
725
+
726
+  #define X_MAX_CURRENT     1000 // in mA
727
+  #define X_SENSE_RESISTOR    91 // in mOhms
728
+  #define X_MICROSTEPS        16 // number of microsteps
729
+
730
+  #define X2_MAX_CURRENT    1000
731
+  #define X2_SENSE_RESISTOR   91
732
+  #define X2_MICROSTEPS       16
733
+
734
+  #define Y_MAX_CURRENT     1000
735
+  #define Y_SENSE_RESISTOR    91
736
+  #define Y_MICROSTEPS        16
737
+
738
+  #define Y2_MAX_CURRENT    1000
739
+  #define Y2_SENSE_RESISTOR   91
740
+  #define Y2_MICROSTEPS       16
741
+
742
+  #define Z_MAX_CURRENT     1000
743
+  #define Z_SENSE_RESISTOR    91
744
+  #define Z_MICROSTEPS        16
745
+
746
+  #define Z2_MAX_CURRENT    1000
747
+  #define Z2_SENSE_RESISTOR   91
748
+  #define Z2_MICROSTEPS       16
749
+
750
+  #define E0_MAX_CURRENT    1000
751
+  #define E0_SENSE_RESISTOR   91
752
+  #define E0_MICROSTEPS       16
753
+
754
+  #define E1_MAX_CURRENT    1000
755
+  #define E1_SENSE_RESISTOR   91
756
+  #define E1_MICROSTEPS       16
757
+
758
+  #define E2_MAX_CURRENT    1000
759
+  #define E2_SENSE_RESISTOR   91
760
+  #define E2_MICROSTEPS       16
761
+
762
+  #define E3_MAX_CURRENT    1000
763
+  #define E3_SENSE_RESISTOR   91
764
+  #define E3_MICROSTEPS       16
764 765
 
765 766
 #endif
766 767
 
@@ -971,7 +972,8 @@
971 972
 
972 973
 #endif // HAVE_TMC2130DRIVER
973 974
 
974
-// @section l6470
975
+// @section L6470
976
+
975 977
 
976 978
 /**
977 979
  * Enable this section if you have L6470 motor drivers.
@@ -983,64 +985,65 @@
983 985
 #if ENABLED(HAVE_L6470DRIVER)
984 986
 
985 987
   //#define X_IS_L6470
986
-  #define X_MICROSTEPS 16     //number of microsteps
987
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
988
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
989
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
990
-
991 988
   //#define X2_IS_L6470
992
-  #define X2_MICROSTEPS 16     //number of microsteps
993
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
995
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
996
-
997 989
   //#define Y_IS_L6470
998
-  #define Y_MICROSTEPS 16     //number of microsteps
999
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1000
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1001
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1002
-
1003 990
   //#define Y2_IS_L6470
1004
-  #define Y2_MICROSTEPS 16     //number of microsteps
1005
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1006
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1007
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1008
-
1009 991
   //#define Z_IS_L6470
1010
-  #define Z_MICROSTEPS 16     //number of microsteps
1011
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1012
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1013
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1014
-
1015 992
   //#define Z2_IS_L6470
1016
-  #define Z2_MICROSTEPS 16     //number of microsteps
1017
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1018
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1019
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1020
-
1021 993
   //#define E0_IS_L6470
1022
-  #define E0_MICROSTEPS 16     //number of microsteps
1023
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1024
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1025
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1026
-
1027 994
   //#define E1_IS_L6470
1028
-  #define E1_MICROSTEPS 16     //number of microsteps
1029
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1030
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1031
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1032
-
1033 995
   //#define E2_IS_L6470
1034
-  #define E2_MICROSTEPS 16     //number of microsteps
1035
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1036
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1037
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1038
-
1039 996
   //#define E3_IS_L6470
1040
-  #define E3_MICROSTEPS 16     //number of microsteps
1041
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1042
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1043
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
997
+
998
+  #define X_MICROSTEPS      16 // number of microsteps
999
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
1000
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
1001
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
1002
+
1003
+  #define X2_MICROSTEPS     16
1004
+  #define X2_K_VAL          50
1005
+  #define X2_OVERCURRENT  2000
1006
+  #define X2_STALLCURRENT 1500
1007
+
1008
+  #define Y_MICROSTEPS      16
1009
+  #define Y_K_VAL           50
1010
+  #define Y_OVERCURRENT   2000
1011
+  #define Y_STALLCURRENT  1500
1012
+
1013
+  #define Y2_MICROSTEPS     16
1014
+  #define Y2_K_VAL          50
1015
+  #define Y2_OVERCURRENT  2000
1016
+  #define Y2_STALLCURRENT 1500
1017
+
1018
+  #define Z_MICROSTEPS      16
1019
+  #define Z_K_VAL           50
1020
+  #define Z_OVERCURRENT   2000
1021
+  #define Z_STALLCURRENT  1500
1022
+
1023
+  #define Z2_MICROSTEPS     16
1024
+  #define Z2_K_VAL          50
1025
+  #define Z2_OVERCURRENT  2000
1026
+  #define Z2_STALLCURRENT 1500
1027
+
1028
+  #define E0_MICROSTEPS     16
1029
+  #define E0_K_VAL          50
1030
+  #define E0_OVERCURRENT  2000
1031
+  #define E0_STALLCURRENT 1500
1032
+
1033
+  #define E1_MICROSTEPS     16
1034
+  #define E1_K_VAL          50
1035
+  #define E1_OVERCURRENT  2000
1036
+  #define E1_STALLCURRENT 1500
1037
+
1038
+  #define E2_MICROSTEPS     16
1039
+  #define E2_K_VAL          50
1040
+  #define E2_OVERCURRENT  2000
1041
+  #define E2_STALLCURRENT 1500
1042
+
1043
+  #define E3_MICROSTEPS     16
1044
+  #define E3_K_VAL          50
1045
+  #define E3_OVERCURRENT  2000
1046
+  #define E3_STALLCURRENT 1500
1044 1047
 
1045 1048
 #endif
1046 1049
 

+ 92
- 89
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -962,7 +963,8 @@
962 963
 
963 964
 #endif // HAVE_TMC2130DRIVER
964 965
 
965
-// @section l6470
966
+// @section L6470
967
+
966 968
 
967 969
 /**
968 970
  * Enable this section if you have L6470 motor drivers.
@@ -974,64 +976,65 @@
974 976
 #if ENABLED(HAVE_L6470DRIVER)
975 977
 
976 978
   //#define X_IS_L6470
977
-  #define X_MICROSTEPS 16     //number of microsteps
978
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
979
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
980
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
981
-
982 979
   //#define X2_IS_L6470
983
-  #define X2_MICROSTEPS 16     //number of microsteps
984
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
985
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
986
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
987
-
988 980
   //#define Y_IS_L6470
989
-  #define Y_MICROSTEPS 16     //number of microsteps
990
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
991
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
992
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
993
-
994 981
   //#define Y2_IS_L6470
995
-  #define Y2_MICROSTEPS 16     //number of microsteps
996
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
997
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
998
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
999
-
1000 982
   //#define Z_IS_L6470
1001
-  #define Z_MICROSTEPS 16     //number of microsteps
1002
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1003
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1004
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1005
-
1006 983
   //#define Z2_IS_L6470
1007
-  #define Z2_MICROSTEPS 16     //number of microsteps
1008
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1009
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1010
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1011
-
1012 984
   //#define E0_IS_L6470
1013
-  #define E0_MICROSTEPS 16     //number of microsteps
1014
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1015
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1016
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1017
-
1018 985
   //#define E1_IS_L6470
1019
-  #define E1_MICROSTEPS 16     //number of microsteps
1020
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1021
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1022
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1023
-
1024 986
   //#define E2_IS_L6470
1025
-  #define E2_MICROSTEPS 16     //number of microsteps
1026
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1027
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1028
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1029
-
1030 987
   //#define E3_IS_L6470
1031
-  #define E3_MICROSTEPS 16     //number of microsteps
1032
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1033
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1034
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
+
989
+  #define X_MICROSTEPS      16 // number of microsteps
990
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
991
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
992
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
993
+
994
+  #define X2_MICROSTEPS     16
995
+  #define X2_K_VAL          50
996
+  #define X2_OVERCURRENT  2000
997
+  #define X2_STALLCURRENT 1500
998
+
999
+  #define Y_MICROSTEPS      16
1000
+  #define Y_K_VAL           50
1001
+  #define Y_OVERCURRENT   2000
1002
+  #define Y_STALLCURRENT  1500
1003
+
1004
+  #define Y2_MICROSTEPS     16
1005
+  #define Y2_K_VAL          50
1006
+  #define Y2_OVERCURRENT  2000
1007
+  #define Y2_STALLCURRENT 1500
1008
+
1009
+  #define Z_MICROSTEPS      16
1010
+  #define Z_K_VAL           50
1011
+  #define Z_OVERCURRENT   2000
1012
+  #define Z_STALLCURRENT  1500
1013
+
1014
+  #define Z2_MICROSTEPS     16
1015
+  #define Z2_K_VAL          50
1016
+  #define Z2_OVERCURRENT  2000
1017
+  #define Z2_STALLCURRENT 1500
1018
+
1019
+  #define E0_MICROSTEPS     16
1020
+  #define E0_K_VAL          50
1021
+  #define E0_OVERCURRENT  2000
1022
+  #define E0_STALLCURRENT 1500
1023
+
1024
+  #define E1_MICROSTEPS     16
1025
+  #define E1_K_VAL          50
1026
+  #define E1_OVERCURRENT  2000
1027
+  #define E1_STALLCURRENT 1500
1028
+
1029
+  #define E2_MICROSTEPS     16
1030
+  #define E2_K_VAL          50
1031
+  #define E2_OVERCURRENT  2000
1032
+  #define E2_STALLCURRENT 1500
1033
+
1034
+  #define E3_MICROSTEPS     16
1035
+  #define E3_K_VAL          50
1036
+  #define E3_OVERCURRENT  2000
1037
+  #define E3_STALLCURRENT 1500
1035 1038
 
1036 1039
 #endif
1037 1040
 

+ 92
- 89
Marlin/example_configurations/delta/biv2.5/Configuration_adv.h View File

@@ -707,54 +707,55 @@
707 707
 #if ENABLED(HAVE_TMCDRIVER)
708 708
 
709 709
   //#define X_IS_TMC
710
-  #define X_MAX_CURRENT 1000  //in mA
711
-  #define X_SENSE_RESISTOR 91 //in mOhms
712
-  #define X_MICROSTEPS 16     //number of microsteps
713
-
714 710
   //#define X2_IS_TMC
715
-  #define X2_MAX_CURRENT 1000  //in mA
716
-  #define X2_SENSE_RESISTOR 91 //in mOhms
717
-  #define X2_MICROSTEPS 16     //number of microsteps
718
-
719 711
   //#define Y_IS_TMC
720
-  #define Y_MAX_CURRENT 1000  //in mA
721
-  #define Y_SENSE_RESISTOR 91 //in mOhms
722
-  #define Y_MICROSTEPS 16     //number of microsteps
723
-
724 712
   //#define Y2_IS_TMC
725
-  #define Y2_MAX_CURRENT 1000  //in mA
726
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
727
-  #define Y2_MICROSTEPS 16     //number of microsteps
728
-
729 713
   //#define Z_IS_TMC
730
-  #define Z_MAX_CURRENT 1000  //in mA
731
-  #define Z_SENSE_RESISTOR 91 //in mOhms
732
-  #define Z_MICROSTEPS 16     //number of microsteps
733
-
734 714
   //#define Z2_IS_TMC
735
-  #define Z2_MAX_CURRENT 1000  //in mA
736
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
737
-  #define Z2_MICROSTEPS 16     //number of microsteps
738
-
739 715
   //#define E0_IS_TMC
740
-  #define E0_MAX_CURRENT 1000  //in mA
741
-  #define E0_SENSE_RESISTOR 91 //in mOhms
742
-  #define E0_MICROSTEPS 16     //number of microsteps
743
-
744 716
   //#define E1_IS_TMC
745
-  #define E1_MAX_CURRENT 1000  //in mA
746
-  #define E1_SENSE_RESISTOR 91 //in mOhms
747
-  #define E1_MICROSTEPS 16     //number of microsteps
748
-
749 717
   //#define E2_IS_TMC
750
-  #define E2_MAX_CURRENT 1000  //in mA
751
-  #define E2_SENSE_RESISTOR 91 //in mOhms
752
-  #define E2_MICROSTEPS 16     //number of microsteps
753
-
754 718
   //#define E3_IS_TMC
755
-  #define E3_MAX_CURRENT 1000  //in mA
756
-  #define E3_SENSE_RESISTOR 91 //in mOhms
757
-  #define E3_MICROSTEPS 16     //number of microsteps
719
+
720
+  #define X_MAX_CURRENT     1000 // in mA
721
+  #define X_SENSE_RESISTOR    91 // in mOhms
722
+  #define X_MICROSTEPS        16 // number of microsteps
723
+
724
+  #define X2_MAX_CURRENT    1000
725
+  #define X2_SENSE_RESISTOR   91
726
+  #define X2_MICROSTEPS       16
727
+
728
+  #define Y_MAX_CURRENT     1000
729
+  #define Y_SENSE_RESISTOR    91
730
+  #define Y_MICROSTEPS        16
731
+
732
+  #define Y2_MAX_CURRENT    1000
733
+  #define Y2_SENSE_RESISTOR   91
734
+  #define Y2_MICROSTEPS       16
735
+
736
+  #define Z_MAX_CURRENT     1000
737
+  #define Z_SENSE_RESISTOR    91
738
+  #define Z_MICROSTEPS        16
739
+
740
+  #define Z2_MAX_CURRENT    1000
741
+  #define Z2_SENSE_RESISTOR   91
742
+  #define Z2_MICROSTEPS       16
743
+
744
+  #define E0_MAX_CURRENT    1000
745
+  #define E0_SENSE_RESISTOR   91
746
+  #define E0_MICROSTEPS       16
747
+
748
+  #define E1_MAX_CURRENT    1000
749
+  #define E1_SENSE_RESISTOR   91
750
+  #define E1_MICROSTEPS       16
751
+
752
+  #define E2_MAX_CURRENT    1000
753
+  #define E2_SENSE_RESISTOR   91
754
+  #define E2_MICROSTEPS       16
755
+
756
+  #define E3_MAX_CURRENT    1000
757
+  #define E3_SENSE_RESISTOR   91
758
+  #define E3_MICROSTEPS       16
758 759
 
759 760
 #endif
760 761
 
@@ -965,7 +966,8 @@
965 966
 
966 967
 #endif // HAVE_TMC2130DRIVER
967 968
 
968
-// @section l6470
969
+// @section L6470
970
+
969 971
 
970 972
 /**
971 973
  * Enable this section if you have L6470 motor drivers.
@@ -977,64 +979,65 @@
977 979
 #if ENABLED(HAVE_L6470DRIVER)
978 980
 
979 981
   //#define X_IS_L6470
980
-  #define X_MICROSTEPS 16     //number of microsteps
981
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
982
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
983
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
984
-
985 982
   //#define X2_IS_L6470
986
-  #define X2_MICROSTEPS 16     //number of microsteps
987
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
988
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
989
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
990
-
991 983
   //#define Y_IS_L6470
992
-  #define Y_MICROSTEPS 16     //number of microsteps
993
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
995
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
996
-
997 984
   //#define Y2_IS_L6470
998
-  #define Y2_MICROSTEPS 16     //number of microsteps
999
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1000
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1001
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1002
-
1003 985
   //#define Z_IS_L6470
1004
-  #define Z_MICROSTEPS 16     //number of microsteps
1005
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1006
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1007
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1008
-
1009 986
   //#define Z2_IS_L6470
1010
-  #define Z2_MICROSTEPS 16     //number of microsteps
1011
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1012
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1013
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1014
-
1015 987
   //#define E0_IS_L6470
1016
-  #define E0_MICROSTEPS 16     //number of microsteps
1017
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1018
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1019
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1020
-
1021 988
   //#define E1_IS_L6470
1022
-  #define E1_MICROSTEPS 16     //number of microsteps
1023
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1024
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1025
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1026
-
1027 989
   //#define E2_IS_L6470
1028
-  #define E2_MICROSTEPS 16     //number of microsteps
1029
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1030
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1031
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1032
-
1033 990
   //#define E3_IS_L6470
1034
-  #define E3_MICROSTEPS 16     //number of microsteps
1035
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1036
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1037
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
991
+
992
+  #define X_MICROSTEPS      16 // number of microsteps
993
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
995
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
996
+
997
+  #define X2_MICROSTEPS     16
998
+  #define X2_K_VAL          50
999
+  #define X2_OVERCURRENT  2000
1000
+  #define X2_STALLCURRENT 1500
1001
+
1002
+  #define Y_MICROSTEPS      16
1003
+  #define Y_K_VAL           50
1004
+  #define Y_OVERCURRENT   2000
1005
+  #define Y_STALLCURRENT  1500
1006
+
1007
+  #define Y2_MICROSTEPS     16
1008
+  #define Y2_K_VAL          50
1009
+  #define Y2_OVERCURRENT  2000
1010
+  #define Y2_STALLCURRENT 1500
1011
+
1012
+  #define Z_MICROSTEPS      16
1013
+  #define Z_K_VAL           50
1014
+  #define Z_OVERCURRENT   2000
1015
+  #define Z_STALLCURRENT  1500
1016
+
1017
+  #define Z2_MICROSTEPS     16
1018
+  #define Z2_K_VAL          50
1019
+  #define Z2_OVERCURRENT  2000
1020
+  #define Z2_STALLCURRENT 1500
1021
+
1022
+  #define E0_MICROSTEPS     16
1023
+  #define E0_K_VAL          50
1024
+  #define E0_OVERCURRENT  2000
1025
+  #define E0_STALLCURRENT 1500
1026
+
1027
+  #define E1_MICROSTEPS     16
1028
+  #define E1_K_VAL          50
1029
+  #define E1_OVERCURRENT  2000
1030
+  #define E1_STALLCURRENT 1500
1031
+
1032
+  #define E2_MICROSTEPS     16
1033
+  #define E2_K_VAL          50
1034
+  #define E2_OVERCURRENT  2000
1035
+  #define E2_STALLCURRENT 1500
1036
+
1037
+  #define E3_MICROSTEPS     16
1038
+  #define E3_K_VAL          50
1039
+  #define E3_OVERCURRENT  2000
1040
+  #define E3_STALLCURRENT 1500
1038 1041
 
1039 1042
 #endif
1040 1043
 

+ 92
- 89
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -707,54 +707,55 @@
707 707
 #if ENABLED(HAVE_TMCDRIVER)
708 708
 
709 709
   //#define X_IS_TMC
710
-  #define X_MAX_CURRENT 1000  //in mA
711
-  #define X_SENSE_RESISTOR 91 //in mOhms
712
-  #define X_MICROSTEPS 16     //number of microsteps
713
-
714 710
   //#define X2_IS_TMC
715
-  #define X2_MAX_CURRENT 1000  //in mA
716
-  #define X2_SENSE_RESISTOR 91 //in mOhms
717
-  #define X2_MICROSTEPS 16     //number of microsteps
718
-
719 711
   //#define Y_IS_TMC
720
-  #define Y_MAX_CURRENT 1000  //in mA
721
-  #define Y_SENSE_RESISTOR 91 //in mOhms
722
-  #define Y_MICROSTEPS 16     //number of microsteps
723
-
724 712
   //#define Y2_IS_TMC
725
-  #define Y2_MAX_CURRENT 1000  //in mA
726
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
727
-  #define Y2_MICROSTEPS 16     //number of microsteps
728
-
729 713
   //#define Z_IS_TMC
730
-  #define Z_MAX_CURRENT 1000  //in mA
731
-  #define Z_SENSE_RESISTOR 91 //in mOhms
732
-  #define Z_MICROSTEPS 16     //number of microsteps
733
-
734 714
   //#define Z2_IS_TMC
735
-  #define Z2_MAX_CURRENT 1000  //in mA
736
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
737
-  #define Z2_MICROSTEPS 16     //number of microsteps
738
-
739 715
   //#define E0_IS_TMC
740
-  #define E0_MAX_CURRENT 1000  //in mA
741
-  #define E0_SENSE_RESISTOR 91 //in mOhms
742
-  #define E0_MICROSTEPS 16     //number of microsteps
743
-
744 716
   //#define E1_IS_TMC
745
-  #define E1_MAX_CURRENT 1000  //in mA
746
-  #define E1_SENSE_RESISTOR 91 //in mOhms
747
-  #define E1_MICROSTEPS 16     //number of microsteps
748
-
749 717
   //#define E2_IS_TMC
750
-  #define E2_MAX_CURRENT 1000  //in mA
751
-  #define E2_SENSE_RESISTOR 91 //in mOhms
752
-  #define E2_MICROSTEPS 16     //number of microsteps
753
-
754 718
   //#define E3_IS_TMC
755
-  #define E3_MAX_CURRENT 1000  //in mA
756
-  #define E3_SENSE_RESISTOR 91 //in mOhms
757
-  #define E3_MICROSTEPS 16     //number of microsteps
719
+
720
+  #define X_MAX_CURRENT     1000 // in mA
721
+  #define X_SENSE_RESISTOR    91 // in mOhms
722
+  #define X_MICROSTEPS        16 // number of microsteps
723
+
724
+  #define X2_MAX_CURRENT    1000
725
+  #define X2_SENSE_RESISTOR   91
726
+  #define X2_MICROSTEPS       16
727
+
728
+  #define Y_MAX_CURRENT     1000
729
+  #define Y_SENSE_RESISTOR    91
730
+  #define Y_MICROSTEPS        16
731
+
732
+  #define Y2_MAX_CURRENT    1000
733
+  #define Y2_SENSE_RESISTOR   91
734
+  #define Y2_MICROSTEPS       16
735
+
736
+  #define Z_MAX_CURRENT     1000
737
+  #define Z_SENSE_RESISTOR    91
738
+  #define Z_MICROSTEPS        16
739
+
740
+  #define Z2_MAX_CURRENT    1000
741
+  #define Z2_SENSE_RESISTOR   91
742
+  #define Z2_MICROSTEPS       16
743
+
744
+  #define E0_MAX_CURRENT    1000
745
+  #define E0_SENSE_RESISTOR   91
746
+  #define E0_MICROSTEPS       16
747
+
748
+  #define E1_MAX_CURRENT    1000
749
+  #define E1_SENSE_RESISTOR   91
750
+  #define E1_MICROSTEPS       16
751
+
752
+  #define E2_MAX_CURRENT    1000
753
+  #define E2_SENSE_RESISTOR   91
754
+  #define E2_MICROSTEPS       16
755
+
756
+  #define E3_MAX_CURRENT    1000
757
+  #define E3_SENSE_RESISTOR   91
758
+  #define E3_MICROSTEPS       16
758 759
 
759 760
 #endif
760 761
 
@@ -965,7 +966,8 @@
965 966
 
966 967
 #endif // HAVE_TMC2130DRIVER
967 968
 
968
-// @section l6470
969
+// @section L6470
970
+
969 971
 
970 972
 /**
971 973
  * Enable this section if you have L6470 motor drivers.
@@ -977,64 +979,65 @@
977 979
 #if ENABLED(HAVE_L6470DRIVER)
978 980
 
979 981
   //#define X_IS_L6470
980
-  #define X_MICROSTEPS 16     //number of microsteps
981
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
982
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
983
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
984
-
985 982
   //#define X2_IS_L6470
986
-  #define X2_MICROSTEPS 16     //number of microsteps
987
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
988
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
989
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
990
-
991 983
   //#define Y_IS_L6470
992
-  #define Y_MICROSTEPS 16     //number of microsteps
993
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
995
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
996
-
997 984
   //#define Y2_IS_L6470
998
-  #define Y2_MICROSTEPS 16     //number of microsteps
999
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1000
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1001
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1002
-
1003 985
   //#define Z_IS_L6470
1004
-  #define Z_MICROSTEPS 16     //number of microsteps
1005
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1006
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1007
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1008
-
1009 986
   //#define Z2_IS_L6470
1010
-  #define Z2_MICROSTEPS 16     //number of microsteps
1011
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1012
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1013
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1014
-
1015 987
   //#define E0_IS_L6470
1016
-  #define E0_MICROSTEPS 16     //number of microsteps
1017
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1018
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1019
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1020
-
1021 988
   //#define E1_IS_L6470
1022
-  #define E1_MICROSTEPS 16     //number of microsteps
1023
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1024
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1025
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1026
-
1027 989
   //#define E2_IS_L6470
1028
-  #define E2_MICROSTEPS 16     //number of microsteps
1029
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1030
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1031
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1032
-
1033 990
   //#define E3_IS_L6470
1034
-  #define E3_MICROSTEPS 16     //number of microsteps
1035
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1036
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1037
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
991
+
992
+  #define X_MICROSTEPS      16 // number of microsteps
993
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
995
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
996
+
997
+  #define X2_MICROSTEPS     16
998
+  #define X2_K_VAL          50
999
+  #define X2_OVERCURRENT  2000
1000
+  #define X2_STALLCURRENT 1500
1001
+
1002
+  #define Y_MICROSTEPS      16
1003
+  #define Y_K_VAL           50
1004
+  #define Y_OVERCURRENT   2000
1005
+  #define Y_STALLCURRENT  1500
1006
+
1007
+  #define Y2_MICROSTEPS     16
1008
+  #define Y2_K_VAL          50
1009
+  #define Y2_OVERCURRENT  2000
1010
+  #define Y2_STALLCURRENT 1500
1011
+
1012
+  #define Z_MICROSTEPS      16
1013
+  #define Z_K_VAL           50
1014
+  #define Z_OVERCURRENT   2000
1015
+  #define Z_STALLCURRENT  1500
1016
+
1017
+  #define Z2_MICROSTEPS     16
1018
+  #define Z2_K_VAL          50
1019
+  #define Z2_OVERCURRENT  2000
1020
+  #define Z2_STALLCURRENT 1500
1021
+
1022
+  #define E0_MICROSTEPS     16
1023
+  #define E0_K_VAL          50
1024
+  #define E0_OVERCURRENT  2000
1025
+  #define E0_STALLCURRENT 1500
1026
+
1027
+  #define E1_MICROSTEPS     16
1028
+  #define E1_K_VAL          50
1029
+  #define E1_OVERCURRENT  2000
1030
+  #define E1_STALLCURRENT 1500
1031
+
1032
+  #define E2_MICROSTEPS     16
1033
+  #define E2_K_VAL          50
1034
+  #define E2_OVERCURRENT  2000
1035
+  #define E2_STALLCURRENT 1500
1036
+
1037
+  #define E3_MICROSTEPS     16
1038
+  #define E3_K_VAL          50
1039
+  #define E3_OVERCURRENT  2000
1040
+  #define E3_STALLCURRENT 1500
1038 1041
 
1039 1042
 #endif
1040 1043
 

+ 92
- 89
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -707,54 +707,55 @@
707 707
 #if ENABLED(HAVE_TMCDRIVER)
708 708
 
709 709
   //#define X_IS_TMC
710
-  #define X_MAX_CURRENT 1000  //in mA
711
-  #define X_SENSE_RESISTOR 91 //in mOhms
712
-  #define X_MICROSTEPS 16     //number of microsteps
713
-
714 710
   //#define X2_IS_TMC
715
-  #define X2_MAX_CURRENT 1000  //in mA
716
-  #define X2_SENSE_RESISTOR 91 //in mOhms
717
-  #define X2_MICROSTEPS 16     //number of microsteps
718
-
719 711
   //#define Y_IS_TMC
720
-  #define Y_MAX_CURRENT 1000  //in mA
721
-  #define Y_SENSE_RESISTOR 91 //in mOhms
722
-  #define Y_MICROSTEPS 16     //number of microsteps
723
-
724 712
   //#define Y2_IS_TMC
725
-  #define Y2_MAX_CURRENT 1000  //in mA
726
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
727
-  #define Y2_MICROSTEPS 16     //number of microsteps
728
-
729 713
   //#define Z_IS_TMC
730
-  #define Z_MAX_CURRENT 1000  //in mA
731
-  #define Z_SENSE_RESISTOR 91 //in mOhms
732
-  #define Z_MICROSTEPS 16     //number of microsteps
733
-
734 714
   //#define Z2_IS_TMC
735
-  #define Z2_MAX_CURRENT 1000  //in mA
736
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
737
-  #define Z2_MICROSTEPS 16     //number of microsteps
738
-
739 715
   //#define E0_IS_TMC
740
-  #define E0_MAX_CURRENT 1000  //in mA
741
-  #define E0_SENSE_RESISTOR 91 //in mOhms
742
-  #define E0_MICROSTEPS 16     //number of microsteps
743
-
744 716
   //#define E1_IS_TMC
745
-  #define E1_MAX_CURRENT 1000  //in mA
746
-  #define E1_SENSE_RESISTOR 91 //in mOhms
747
-  #define E1_MICROSTEPS 16     //number of microsteps
748
-
749 717
   //#define E2_IS_TMC
750
-  #define E2_MAX_CURRENT 1000  //in mA
751
-  #define E2_SENSE_RESISTOR 91 //in mOhms
752
-  #define E2_MICROSTEPS 16     //number of microsteps
753
-
754 718
   //#define E3_IS_TMC
755
-  #define E3_MAX_CURRENT 1000  //in mA
756
-  #define E3_SENSE_RESISTOR 91 //in mOhms
757
-  #define E3_MICROSTEPS 16     //number of microsteps
719
+
720
+  #define X_MAX_CURRENT     1000 // in mA
721
+  #define X_SENSE_RESISTOR    91 // in mOhms
722
+  #define X_MICROSTEPS        16 // number of microsteps
723
+
724
+  #define X2_MAX_CURRENT    1000
725
+  #define X2_SENSE_RESISTOR   91
726
+  #define X2_MICROSTEPS       16
727
+
728
+  #define Y_MAX_CURRENT     1000
729
+  #define Y_SENSE_RESISTOR    91
730
+  #define Y_MICROSTEPS        16
731
+
732
+  #define Y2_MAX_CURRENT    1000
733
+  #define Y2_SENSE_RESISTOR   91
734
+  #define Y2_MICROSTEPS       16
735
+
736
+  #define Z_MAX_CURRENT     1000
737
+  #define Z_SENSE_RESISTOR    91
738
+  #define Z_MICROSTEPS        16
739
+
740
+  #define Z2_MAX_CURRENT    1000
741
+  #define Z2_SENSE_RESISTOR   91
742
+  #define Z2_MICROSTEPS       16
743
+
744
+  #define E0_MAX_CURRENT    1000
745
+  #define E0_SENSE_RESISTOR   91
746
+  #define E0_MICROSTEPS       16
747
+
748
+  #define E1_MAX_CURRENT    1000
749
+  #define E1_SENSE_RESISTOR   91
750
+  #define E1_MICROSTEPS       16
751
+
752
+  #define E2_MAX_CURRENT    1000
753
+  #define E2_SENSE_RESISTOR   91
754
+  #define E2_MICROSTEPS       16
755
+
756
+  #define E3_MAX_CURRENT    1000
757
+  #define E3_SENSE_RESISTOR   91
758
+  #define E3_MICROSTEPS       16
758 759
 
759 760
 #endif
760 761
 
@@ -965,7 +966,8 @@
965 966
 
966 967
 #endif // HAVE_TMC2130DRIVER
967 968
 
968
-// @section l6470
969
+// @section L6470
970
+
969 971
 
970 972
 /**
971 973
  * Enable this section if you have L6470 motor drivers.
@@ -977,64 +979,65 @@
977 979
 #if ENABLED(HAVE_L6470DRIVER)
978 980
 
979 981
   //#define X_IS_L6470
980
-  #define X_MICROSTEPS 16     //number of microsteps
981
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
982
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
983
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
984
-
985 982
   //#define X2_IS_L6470
986
-  #define X2_MICROSTEPS 16     //number of microsteps
987
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
988
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
989
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
990
-
991 983
   //#define Y_IS_L6470
992
-  #define Y_MICROSTEPS 16     //number of microsteps
993
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
995
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
996
-
997 984
   //#define Y2_IS_L6470
998
-  #define Y2_MICROSTEPS 16     //number of microsteps
999
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1000
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1001
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1002
-
1003 985
   //#define Z_IS_L6470
1004
-  #define Z_MICROSTEPS 16     //number of microsteps
1005
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1006
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1007
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1008
-
1009 986
   //#define Z2_IS_L6470
1010
-  #define Z2_MICROSTEPS 16     //number of microsteps
1011
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1012
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1013
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1014
-
1015 987
   //#define E0_IS_L6470
1016
-  #define E0_MICROSTEPS 16     //number of microsteps
1017
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1018
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1019
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1020
-
1021 988
   //#define E1_IS_L6470
1022
-  #define E1_MICROSTEPS 16     //number of microsteps
1023
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1024
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1025
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1026
-
1027 989
   //#define E2_IS_L6470
1028
-  #define E2_MICROSTEPS 16     //number of microsteps
1029
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1030
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1031
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1032
-
1033 990
   //#define E3_IS_L6470
1034
-  #define E3_MICROSTEPS 16     //number of microsteps
1035
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1036
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1037
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
991
+
992
+  #define X_MICROSTEPS      16 // number of microsteps
993
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
995
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
996
+
997
+  #define X2_MICROSTEPS     16
998
+  #define X2_K_VAL          50
999
+  #define X2_OVERCURRENT  2000
1000
+  #define X2_STALLCURRENT 1500
1001
+
1002
+  #define Y_MICROSTEPS      16
1003
+  #define Y_K_VAL           50
1004
+  #define Y_OVERCURRENT   2000
1005
+  #define Y_STALLCURRENT  1500
1006
+
1007
+  #define Y2_MICROSTEPS     16
1008
+  #define Y2_K_VAL          50
1009
+  #define Y2_OVERCURRENT  2000
1010
+  #define Y2_STALLCURRENT 1500
1011
+
1012
+  #define Z_MICROSTEPS      16
1013
+  #define Z_K_VAL           50
1014
+  #define Z_OVERCURRENT   2000
1015
+  #define Z_STALLCURRENT  1500
1016
+
1017
+  #define Z2_MICROSTEPS     16
1018
+  #define Z2_K_VAL          50
1019
+  #define Z2_OVERCURRENT  2000
1020
+  #define Z2_STALLCURRENT 1500
1021
+
1022
+  #define E0_MICROSTEPS     16
1023
+  #define E0_K_VAL          50
1024
+  #define E0_OVERCURRENT  2000
1025
+  #define E0_STALLCURRENT 1500
1026
+
1027
+  #define E1_MICROSTEPS     16
1028
+  #define E1_K_VAL          50
1029
+  #define E1_OVERCURRENT  2000
1030
+  #define E1_STALLCURRENT 1500
1031
+
1032
+  #define E2_MICROSTEPS     16
1033
+  #define E2_K_VAL          50
1034
+  #define E2_OVERCURRENT  2000
1035
+  #define E2_STALLCURRENT 1500
1036
+
1037
+  #define E3_MICROSTEPS     16
1038
+  #define E3_K_VAL          50
1039
+  #define E3_OVERCURRENT  2000
1040
+  #define E3_STALLCURRENT 1500
1038 1041
 
1039 1042
 #endif
1040 1043
 

+ 92
- 89
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -712,54 +712,55 @@
712 712
 #if ENABLED(HAVE_TMCDRIVER)
713 713
 
714 714
   //#define X_IS_TMC
715
-  #define X_MAX_CURRENT 1000  //in mA
716
-  #define X_SENSE_RESISTOR 91 //in mOhms
717
-  #define X_MICROSTEPS 16     //number of microsteps
718
-
719 715
   //#define X2_IS_TMC
720
-  #define X2_MAX_CURRENT 1000  //in mA
721
-  #define X2_SENSE_RESISTOR 91 //in mOhms
722
-  #define X2_MICROSTEPS 16     //number of microsteps
723
-
724 716
   //#define Y_IS_TMC
725
-  #define Y_MAX_CURRENT 1000  //in mA
726
-  #define Y_SENSE_RESISTOR 91 //in mOhms
727
-  #define Y_MICROSTEPS 16     //number of microsteps
728
-
729 717
   //#define Y2_IS_TMC
730
-  #define Y2_MAX_CURRENT 1000  //in mA
731
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
732
-  #define Y2_MICROSTEPS 16     //number of microsteps
733
-
734 718
   //#define Z_IS_TMC
735
-  #define Z_MAX_CURRENT 1000  //in mA
736
-  #define Z_SENSE_RESISTOR 91 //in mOhms
737
-  #define Z_MICROSTEPS 16     //number of microsteps
738
-
739 719
   //#define Z2_IS_TMC
740
-  #define Z2_MAX_CURRENT 1000  //in mA
741
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
742
-  #define Z2_MICROSTEPS 16     //number of microsteps
743
-
744 720
   //#define E0_IS_TMC
745
-  #define E0_MAX_CURRENT 1000  //in mA
746
-  #define E0_SENSE_RESISTOR 91 //in mOhms
747
-  #define E0_MICROSTEPS 16     //number of microsteps
748
-
749 721
   //#define E1_IS_TMC
750
-  #define E1_MAX_CURRENT 1000  //in mA
751
-  #define E1_SENSE_RESISTOR 91 //in mOhms
752
-  #define E1_MICROSTEPS 16     //number of microsteps
753
-
754 722
   //#define E2_IS_TMC
755
-  #define E2_MAX_CURRENT 1000  //in mA
756
-  #define E2_SENSE_RESISTOR 91 //in mOhms
757
-  #define E2_MICROSTEPS 16     //number of microsteps
758
-
759 723
   //#define E3_IS_TMC
760
-  #define E3_MAX_CURRENT 1000  //in mA
761
-  #define E3_SENSE_RESISTOR 91 //in mOhms
762
-  #define E3_MICROSTEPS 16     //number of microsteps
724
+
725
+  #define X_MAX_CURRENT     1000 // in mA
726
+  #define X_SENSE_RESISTOR    91 // in mOhms
727
+  #define X_MICROSTEPS        16 // number of microsteps
728
+
729
+  #define X2_MAX_CURRENT    1000
730
+  #define X2_SENSE_RESISTOR   91
731
+  #define X2_MICROSTEPS       16
732
+
733
+  #define Y_MAX_CURRENT     1000
734
+  #define Y_SENSE_RESISTOR    91
735
+  #define Y_MICROSTEPS        16
736
+
737
+  #define Y2_MAX_CURRENT    1000
738
+  #define Y2_SENSE_RESISTOR   91
739
+  #define Y2_MICROSTEPS       16
740
+
741
+  #define Z_MAX_CURRENT     1000
742
+  #define Z_SENSE_RESISTOR    91
743
+  #define Z_MICROSTEPS        16
744
+
745
+  #define Z2_MAX_CURRENT    1000
746
+  #define Z2_SENSE_RESISTOR   91
747
+  #define Z2_MICROSTEPS       16
748
+
749
+  #define E0_MAX_CURRENT    1000
750
+  #define E0_SENSE_RESISTOR   91
751
+  #define E0_MICROSTEPS       16
752
+
753
+  #define E1_MAX_CURRENT    1000
754
+  #define E1_SENSE_RESISTOR   91
755
+  #define E1_MICROSTEPS       16
756
+
757
+  #define E2_MAX_CURRENT    1000
758
+  #define E2_SENSE_RESISTOR   91
759
+  #define E2_MICROSTEPS       16
760
+
761
+  #define E3_MAX_CURRENT    1000
762
+  #define E3_SENSE_RESISTOR   91
763
+  #define E3_MICROSTEPS       16
763 764
 
764 765
 #endif
765 766
 
@@ -970,7 +971,8 @@
970 971
 
971 972
 #endif // HAVE_TMC2130DRIVER
972 973
 
973
-// @section l6470
974
+// @section L6470
975
+
974 976
 
975 977
 /**
976 978
  * Enable this section if you have L6470 motor drivers.
@@ -982,64 +984,65 @@
982 984
 #if ENABLED(HAVE_L6470DRIVER)
983 985
 
984 986
   //#define X_IS_L6470
985
-  #define X_MICROSTEPS 16     //number of microsteps
986
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
987
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
988
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
-
990 987
   //#define X2_IS_L6470
991
-  #define X2_MICROSTEPS 16     //number of microsteps
992
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
993
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
994
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
995
-
996 988
   //#define Y_IS_L6470
997
-  #define Y_MICROSTEPS 16     //number of microsteps
998
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
999
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1000
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1001
-
1002 989
   //#define Y2_IS_L6470
1003
-  #define Y2_MICROSTEPS 16     //number of microsteps
1004
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1005
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1006
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1007
-
1008 990
   //#define Z_IS_L6470
1009
-  #define Z_MICROSTEPS 16     //number of microsteps
1010
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1011
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1012
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1013
-
1014 991
   //#define Z2_IS_L6470
1015
-  #define Z2_MICROSTEPS 16     //number of microsteps
1016
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1017
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1018
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1019
-
1020 992
   //#define E0_IS_L6470
1021
-  #define E0_MICROSTEPS 16     //number of microsteps
1022
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1023
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1024
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1025
-
1026 993
   //#define E1_IS_L6470
1027
-  #define E1_MICROSTEPS 16     //number of microsteps
1028
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1029
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1030
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1031
-
1032 994
   //#define E2_IS_L6470
1033
-  #define E2_MICROSTEPS 16     //number of microsteps
1034
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1035
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1036
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1037
-
1038 995
   //#define E3_IS_L6470
1039
-  #define E3_MICROSTEPS 16     //number of microsteps
1040
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1041
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1042
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
996
+
997
+  #define X_MICROSTEPS      16 // number of microsteps
998
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
999
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
1000
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
1001
+
1002
+  #define X2_MICROSTEPS     16
1003
+  #define X2_K_VAL          50
1004
+  #define X2_OVERCURRENT  2000
1005
+  #define X2_STALLCURRENT 1500
1006
+
1007
+  #define Y_MICROSTEPS      16
1008
+  #define Y_K_VAL           50
1009
+  #define Y_OVERCURRENT   2000
1010
+  #define Y_STALLCURRENT  1500
1011
+
1012
+  #define Y2_MICROSTEPS     16
1013
+  #define Y2_K_VAL          50
1014
+  #define Y2_OVERCURRENT  2000
1015
+  #define Y2_STALLCURRENT 1500
1016
+
1017
+  #define Z_MICROSTEPS      16
1018
+  #define Z_K_VAL           50
1019
+  #define Z_OVERCURRENT   2000
1020
+  #define Z_STALLCURRENT  1500
1021
+
1022
+  #define Z2_MICROSTEPS     16
1023
+  #define Z2_K_VAL          50
1024
+  #define Z2_OVERCURRENT  2000
1025
+  #define Z2_STALLCURRENT 1500
1026
+
1027
+  #define E0_MICROSTEPS     16
1028
+  #define E0_K_VAL          50
1029
+  #define E0_OVERCURRENT  2000
1030
+  #define E0_STALLCURRENT 1500
1031
+
1032
+  #define E1_MICROSTEPS     16
1033
+  #define E1_K_VAL          50
1034
+  #define E1_OVERCURRENT  2000
1035
+  #define E1_STALLCURRENT 1500
1036
+
1037
+  #define E2_MICROSTEPS     16
1038
+  #define E2_K_VAL          50
1039
+  #define E2_OVERCURRENT  2000
1040
+  #define E2_STALLCURRENT 1500
1041
+
1042
+  #define E3_MICROSTEPS     16
1043
+  #define E3_K_VAL          50
1044
+  #define E3_OVERCURRENT  2000
1045
+  #define E3_STALLCURRENT 1500
1043 1046
 
1044 1047
 #endif
1045 1048
 

+ 92
- 89
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -707,54 +707,55 @@
707 707
 #if ENABLED(HAVE_TMCDRIVER)
708 708
 
709 709
   //#define X_IS_TMC
710
-  #define X_MAX_CURRENT 1000  //in mA
711
-  #define X_SENSE_RESISTOR 91 //in mOhms
712
-  #define X_MICROSTEPS 16     //number of microsteps
713
-
714 710
   //#define X2_IS_TMC
715
-  #define X2_MAX_CURRENT 1000  //in mA
716
-  #define X2_SENSE_RESISTOR 91 //in mOhms
717
-  #define X2_MICROSTEPS 16     //number of microsteps
718
-
719 711
   //#define Y_IS_TMC
720
-  #define Y_MAX_CURRENT 1000  //in mA
721
-  #define Y_SENSE_RESISTOR 91 //in mOhms
722
-  #define Y_MICROSTEPS 16     //number of microsteps
723
-
724 712
   //#define Y2_IS_TMC
725
-  #define Y2_MAX_CURRENT 1000  //in mA
726
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
727
-  #define Y2_MICROSTEPS 16     //number of microsteps
728
-
729 713
   //#define Z_IS_TMC
730
-  #define Z_MAX_CURRENT 1000  //in mA
731
-  #define Z_SENSE_RESISTOR 91 //in mOhms
732
-  #define Z_MICROSTEPS 16     //number of microsteps
733
-
734 714
   //#define Z2_IS_TMC
735
-  #define Z2_MAX_CURRENT 1000  //in mA
736
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
737
-  #define Z2_MICROSTEPS 16     //number of microsteps
738
-
739 715
   //#define E0_IS_TMC
740
-  #define E0_MAX_CURRENT 1000  //in mA
741
-  #define E0_SENSE_RESISTOR 91 //in mOhms
742
-  #define E0_MICROSTEPS 16     //number of microsteps
743
-
744 716
   //#define E1_IS_TMC
745
-  #define E1_MAX_CURRENT 1000  //in mA
746
-  #define E1_SENSE_RESISTOR 91 //in mOhms
747
-  #define E1_MICROSTEPS 16     //number of microsteps
748
-
749 717
   //#define E2_IS_TMC
750
-  #define E2_MAX_CURRENT 1000  //in mA
751
-  #define E2_SENSE_RESISTOR 91 //in mOhms
752
-  #define E2_MICROSTEPS 16     //number of microsteps
753
-
754 718
   //#define E3_IS_TMC
755
-  #define E3_MAX_CURRENT 1000  //in mA
756
-  #define E3_SENSE_RESISTOR 91 //in mOhms
757
-  #define E3_MICROSTEPS 16     //number of microsteps
719
+
720
+  #define X_MAX_CURRENT     1000 // in mA
721
+  #define X_SENSE_RESISTOR    91 // in mOhms
722
+  #define X_MICROSTEPS        16 // number of microsteps
723
+
724
+  #define X2_MAX_CURRENT    1000
725
+  #define X2_SENSE_RESISTOR   91
726
+  #define X2_MICROSTEPS       16
727
+
728
+  #define Y_MAX_CURRENT     1000
729
+  #define Y_SENSE_RESISTOR    91
730
+  #define Y_MICROSTEPS        16
731
+
732
+  #define Y2_MAX_CURRENT    1000
733
+  #define Y2_SENSE_RESISTOR   91
734
+  #define Y2_MICROSTEPS       16
735
+
736
+  #define Z_MAX_CURRENT     1000
737
+  #define Z_SENSE_RESISTOR    91
738
+  #define Z_MICROSTEPS        16
739
+
740
+  #define Z2_MAX_CURRENT    1000
741
+  #define Z2_SENSE_RESISTOR   91
742
+  #define Z2_MICROSTEPS       16
743
+
744
+  #define E0_MAX_CURRENT    1000
745
+  #define E0_SENSE_RESISTOR   91
746
+  #define E0_MICROSTEPS       16
747
+
748
+  #define E1_MAX_CURRENT    1000
749
+  #define E1_SENSE_RESISTOR   91
750
+  #define E1_MICROSTEPS       16
751
+
752
+  #define E2_MAX_CURRENT    1000
753
+  #define E2_SENSE_RESISTOR   91
754
+  #define E2_MICROSTEPS       16
755
+
756
+  #define E3_MAX_CURRENT    1000
757
+  #define E3_SENSE_RESISTOR   91
758
+  #define E3_MICROSTEPS       16
758 759
 
759 760
 #endif
760 761
 
@@ -965,7 +966,8 @@
965 966
 
966 967
 #endif // HAVE_TMC2130DRIVER
967 968
 
968
-// @section l6470
969
+// @section L6470
970
+
969 971
 
970 972
 /**
971 973
  * Enable this section if you have L6470 motor drivers.
@@ -977,64 +979,65 @@
977 979
 #if ENABLED(HAVE_L6470DRIVER)
978 980
 
979 981
   //#define X_IS_L6470
980
-  #define X_MICROSTEPS 16     //number of microsteps
981
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
982
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
983
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
984
-
985 982
   //#define X2_IS_L6470
986
-  #define X2_MICROSTEPS 16     //number of microsteps
987
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
988
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
989
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
990
-
991 983
   //#define Y_IS_L6470
992
-  #define Y_MICROSTEPS 16     //number of microsteps
993
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
995
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
996
-
997 984
   //#define Y2_IS_L6470
998
-  #define Y2_MICROSTEPS 16     //number of microsteps
999
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1000
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1001
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1002
-
1003 985
   //#define Z_IS_L6470
1004
-  #define Z_MICROSTEPS 16     //number of microsteps
1005
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1006
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1007
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1008
-
1009 986
   //#define Z2_IS_L6470
1010
-  #define Z2_MICROSTEPS 16     //number of microsteps
1011
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1012
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1013
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1014
-
1015 987
   //#define E0_IS_L6470
1016
-  #define E0_MICROSTEPS 16     //number of microsteps
1017
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1018
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1019
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1020
-
1021 988
   //#define E1_IS_L6470
1022
-  #define E1_MICROSTEPS 16     //number of microsteps
1023
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1024
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1025
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1026
-
1027 989
   //#define E2_IS_L6470
1028
-  #define E2_MICROSTEPS 16     //number of microsteps
1029
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1030
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1031
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1032
-
1033 990
   //#define E3_IS_L6470
1034
-  #define E3_MICROSTEPS 16     //number of microsteps
1035
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1036
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1037
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
991
+
992
+  #define X_MICROSTEPS      16 // number of microsteps
993
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
994
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
995
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
996
+
997
+  #define X2_MICROSTEPS     16
998
+  #define X2_K_VAL          50
999
+  #define X2_OVERCURRENT  2000
1000
+  #define X2_STALLCURRENT 1500
1001
+
1002
+  #define Y_MICROSTEPS      16
1003
+  #define Y_K_VAL           50
1004
+  #define Y_OVERCURRENT   2000
1005
+  #define Y_STALLCURRENT  1500
1006
+
1007
+  #define Y2_MICROSTEPS     16
1008
+  #define Y2_K_VAL          50
1009
+  #define Y2_OVERCURRENT  2000
1010
+  #define Y2_STALLCURRENT 1500
1011
+
1012
+  #define Z_MICROSTEPS      16
1013
+  #define Z_K_VAL           50
1014
+  #define Z_OVERCURRENT   2000
1015
+  #define Z_STALLCURRENT  1500
1016
+
1017
+  #define Z2_MICROSTEPS     16
1018
+  #define Z2_K_VAL          50
1019
+  #define Z2_OVERCURRENT  2000
1020
+  #define Z2_STALLCURRENT 1500
1021
+
1022
+  #define E0_MICROSTEPS     16
1023
+  #define E0_K_VAL          50
1024
+  #define E0_OVERCURRENT  2000
1025
+  #define E0_STALLCURRENT 1500
1026
+
1027
+  #define E1_MICROSTEPS     16
1028
+  #define E1_K_VAL          50
1029
+  #define E1_OVERCURRENT  2000
1030
+  #define E1_STALLCURRENT 1500
1031
+
1032
+  #define E2_MICROSTEPS     16
1033
+  #define E2_K_VAL          50
1034
+  #define E2_OVERCURRENT  2000
1035
+  #define E2_STALLCURRENT 1500
1036
+
1037
+  #define E3_MICROSTEPS     16
1038
+  #define E3_K_VAL          50
1039
+  #define E3_OVERCURRENT  2000
1040
+  #define E3_STALLCURRENT 1500
1038 1041
 
1039 1042
 #endif
1040 1043
 

+ 92
- 89
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

+ 92
- 89
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -705,54 +705,55 @@
705 705
 #if ENABLED(HAVE_TMCDRIVER)
706 706
 
707 707
   //#define X_IS_TMC
708
-  #define X_MAX_CURRENT 1000  //in mA
709
-  #define X_SENSE_RESISTOR 91 //in mOhms
710
-  #define X_MICROSTEPS 16     //number of microsteps
711
-
712 708
   //#define X2_IS_TMC
713
-  #define X2_MAX_CURRENT 1000  //in mA
714
-  #define X2_SENSE_RESISTOR 91 //in mOhms
715
-  #define X2_MICROSTEPS 16     //number of microsteps
716
-
717 709
   //#define Y_IS_TMC
718
-  #define Y_MAX_CURRENT 1000  //in mA
719
-  #define Y_SENSE_RESISTOR 91 //in mOhms
720
-  #define Y_MICROSTEPS 16     //number of microsteps
721
-
722 710
   //#define Y2_IS_TMC
723
-  #define Y2_MAX_CURRENT 1000  //in mA
724
-  #define Y2_SENSE_RESISTOR 91 //in mOhms
725
-  #define Y2_MICROSTEPS 16     //number of microsteps
726
-
727 711
   //#define Z_IS_TMC
728
-  #define Z_MAX_CURRENT 1000  //in mA
729
-  #define Z_SENSE_RESISTOR 91 //in mOhms
730
-  #define Z_MICROSTEPS 16     //number of microsteps
731
-
732 712
   //#define Z2_IS_TMC
733
-  #define Z2_MAX_CURRENT 1000  //in mA
734
-  #define Z2_SENSE_RESISTOR 91 //in mOhms
735
-  #define Z2_MICROSTEPS 16     //number of microsteps
736
-
737 713
   //#define E0_IS_TMC
738
-  #define E0_MAX_CURRENT 1000  //in mA
739
-  #define E0_SENSE_RESISTOR 91 //in mOhms
740
-  #define E0_MICROSTEPS 16     //number of microsteps
741
-
742 714
   //#define E1_IS_TMC
743
-  #define E1_MAX_CURRENT 1000  //in mA
744
-  #define E1_SENSE_RESISTOR 91 //in mOhms
745
-  #define E1_MICROSTEPS 16     //number of microsteps
746
-
747 715
   //#define E2_IS_TMC
748
-  #define E2_MAX_CURRENT 1000  //in mA
749
-  #define E2_SENSE_RESISTOR 91 //in mOhms
750
-  #define E2_MICROSTEPS 16     //number of microsteps
751
-
752 716
   //#define E3_IS_TMC
753
-  #define E3_MAX_CURRENT 1000  //in mA
754
-  #define E3_SENSE_RESISTOR 91 //in mOhms
755
-  #define E3_MICROSTEPS 16     //number of microsteps
717
+
718
+  #define X_MAX_CURRENT     1000 // in mA
719
+  #define X_SENSE_RESISTOR    91 // in mOhms
720
+  #define X_MICROSTEPS        16 // number of microsteps
721
+
722
+  #define X2_MAX_CURRENT    1000
723
+  #define X2_SENSE_RESISTOR   91
724
+  #define X2_MICROSTEPS       16
725
+
726
+  #define Y_MAX_CURRENT     1000
727
+  #define Y_SENSE_RESISTOR    91
728
+  #define Y_MICROSTEPS        16
729
+
730
+  #define Y2_MAX_CURRENT    1000
731
+  #define Y2_SENSE_RESISTOR   91
732
+  #define Y2_MICROSTEPS       16
733
+
734
+  #define Z_MAX_CURRENT     1000
735
+  #define Z_SENSE_RESISTOR    91
736
+  #define Z_MICROSTEPS        16
737
+
738
+  #define Z2_MAX_CURRENT    1000
739
+  #define Z2_SENSE_RESISTOR   91
740
+  #define Z2_MICROSTEPS       16
741
+
742
+  #define E0_MAX_CURRENT    1000
743
+  #define E0_SENSE_RESISTOR   91
744
+  #define E0_MICROSTEPS       16
745
+
746
+  #define E1_MAX_CURRENT    1000
747
+  #define E1_SENSE_RESISTOR   91
748
+  #define E1_MICROSTEPS       16
749
+
750
+  #define E2_MAX_CURRENT    1000
751
+  #define E2_SENSE_RESISTOR   91
752
+  #define E2_MICROSTEPS       16
753
+
754
+  #define E3_MAX_CURRENT    1000
755
+  #define E3_SENSE_RESISTOR   91
756
+  #define E3_MICROSTEPS       16
756 757
 
757 758
 #endif
758 759
 
@@ -963,7 +964,8 @@
963 964
 
964 965
 #endif // HAVE_TMC2130DRIVER
965 966
 
966
-// @section l6470
967
+// @section L6470
968
+
967 969
 
968 970
 /**
969 971
  * Enable this section if you have L6470 motor drivers.
@@ -975,64 +977,65 @@
975 977
 #if ENABLED(HAVE_L6470DRIVER)
976 978
 
977 979
   //#define X_IS_L6470
978
-  #define X_MICROSTEPS 16     //number of microsteps
979
-  #define X_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
980
-  #define X_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
981
-  #define X_STALLCURRENT 1500 //current in mA where the driver will detect a stall
982
-
983 980
   //#define X2_IS_L6470
984
-  #define X2_MICROSTEPS 16     //number of microsteps
985
-  #define X2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
986
-  #define X2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
987
-  #define X2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
988
-
989 981
   //#define Y_IS_L6470
990
-  #define Y_MICROSTEPS 16     //number of microsteps
991
-  #define Y_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
-  #define Y_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
993
-  #define Y_STALLCURRENT 1500 //current in mA where the driver will detect a stall
994
-
995 982
   //#define Y2_IS_L6470
996
-  #define Y2_MICROSTEPS 16     //number of microsteps
997
-  #define Y2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
998
-  #define Y2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
999
-  #define Y2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1000
-
1001 983
   //#define Z_IS_L6470
1002
-  #define Z_MICROSTEPS 16     //number of microsteps
1003
-  #define Z_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1004
-  #define Z_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1005
-  #define Z_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1006
-
1007 984
   //#define Z2_IS_L6470
1008
-  #define Z2_MICROSTEPS 16     //number of microsteps
1009
-  #define Z2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1010
-  #define Z2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1011
-  #define Z2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1012
-
1013 985
   //#define E0_IS_L6470
1014
-  #define E0_MICROSTEPS 16     //number of microsteps
1015
-  #define E0_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1016
-  #define E0_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1017
-  #define E0_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1018
-
1019 986
   //#define E1_IS_L6470
1020
-  #define E1_MICROSTEPS 16     //number of microsteps
1021
-  #define E1_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1022
-  #define E1_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1023
-  #define E1_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1024
-
1025 987
   //#define E2_IS_L6470
1026
-  #define E2_MICROSTEPS 16     //number of microsteps
1027
-  #define E2_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1028
-  #define E2_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1029
-  #define E2_STALLCURRENT 1500 //current in mA where the driver will detect a stall
1030
-
1031 988
   //#define E3_IS_L6470
1032
-  #define E3_MICROSTEPS 16     //number of microsteps
1033
-  #define E3_K_VAL 50          // 0 - 255, Higher values, are higher power. Be careful not to go too high
1034
-  #define E3_OVERCURRENT 2000  //maxc current in mA. If the current goes over this value, the driver will switch off
1035
-  #define E3_STALLCURRENT 1500 //current in mA where the driver will detect a stall
989
+
990
+  #define X_MICROSTEPS      16 // number of microsteps
991
+  #define X_K_VAL           50 // 0 - 255, Higher values, are higher power. Be careful not to go too high
992
+  #define X_OVERCURRENT   2000 // maxc current in mA. If the current goes over this value, the driver will switch off
993
+  #define X_STALLCURRENT  1500 // current in mA where the driver will detect a stall
994
+
995
+  #define X2_MICROSTEPS     16
996
+  #define X2_K_VAL          50
997
+  #define X2_OVERCURRENT  2000
998
+  #define X2_STALLCURRENT 1500
999
+
1000
+  #define Y_MICROSTEPS      16
1001
+  #define Y_K_VAL           50
1002
+  #define Y_OVERCURRENT   2000
1003
+  #define Y_STALLCURRENT  1500
1004
+
1005
+  #define Y2_MICROSTEPS     16
1006
+  #define Y2_K_VAL          50
1007
+  #define Y2_OVERCURRENT  2000
1008
+  #define Y2_STALLCURRENT 1500
1009
+
1010
+  #define Z_MICROSTEPS      16
1011
+  #define Z_K_VAL           50
1012
+  #define Z_OVERCURRENT   2000
1013
+  #define Z_STALLCURRENT  1500
1014
+
1015
+  #define Z2_MICROSTEPS     16
1016
+  #define Z2_K_VAL          50
1017
+  #define Z2_OVERCURRENT  2000
1018
+  #define Z2_STALLCURRENT 1500
1019
+
1020
+  #define E0_MICROSTEPS     16
1021
+  #define E0_K_VAL          50
1022
+  #define E0_OVERCURRENT  2000
1023
+  #define E0_STALLCURRENT 1500
1024
+
1025
+  #define E1_MICROSTEPS     16
1026
+  #define E1_K_VAL          50
1027
+  #define E1_OVERCURRENT  2000
1028
+  #define E1_STALLCURRENT 1500
1029
+
1030
+  #define E2_MICROSTEPS     16
1031
+  #define E2_K_VAL          50
1032
+  #define E2_OVERCURRENT  2000
1033
+  #define E2_STALLCURRENT 1500
1034
+
1035
+  #define E3_MICROSTEPS     16
1036
+  #define E3_K_VAL          50
1037
+  #define E3_OVERCURRENT  2000
1038
+  #define E3_STALLCURRENT 1500
1036 1039
 
1037 1040
 #endif
1038 1041
 

Loading…
Cancel
Save