소스 검색

Software endstop options as simple switches

Scott Lahteine 7 년 전
부모
커밋
0e410c9dfd
26개의 변경된 파일162개의 추가작업 그리고 138개의 파일을 삭제
  1. 1
    1
      Marlin/Conditionals_LCD.h
  2. 7
    6
      Marlin/Configuration.h
  3. 4
    4
      Marlin/Marlin_main.cpp
  4. 2
    0
      Marlin/SanityCheck.h
  5. 7
    6
      Marlin/example_configurations/Cartesio/Configuration.h
  6. 6
    5
      Marlin/example_configurations/Felix/Configuration.h
  7. 7
    6
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  8. 7
    6
      Marlin/example_configurations/Hephestos/Configuration.h
  9. 7
    6
      Marlin/example_configurations/Hephestos_2/Configuration.h
  10. 7
    6
      Marlin/example_configurations/K8200/Configuration.h
  11. 7
    6
      Marlin/example_configurations/K8400/Configuration.h
  12. 7
    6
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  13. 7
    6
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  14. 7
    6
      Marlin/example_configurations/RigidBot/Configuration.h
  15. 7
    6
      Marlin/example_configurations/SCARA/Configuration.h
  16. 7
    6
      Marlin/example_configurations/TAZ4/Configuration.h
  17. 7
    6
      Marlin/example_configurations/WITBOX/Configuration.h
  18. 7
    6
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  19. 7
    6
      Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h
  20. 7
    6
      Marlin/example_configurations/delta/generic/Configuration.h
  21. 7
    6
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  22. 7
    6
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  23. 7
    6
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  24. 7
    6
      Marlin/example_configurations/makibox/Configuration.h
  25. 7
    6
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  26. 2
    2
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/Conditionals_LCD.h 파일 보기

@@ -369,6 +369,6 @@
369 369
     #undef Z_MIN_PROBE_ENDSTOP
370 370
   #endif
371 371
 
372
-  #define HAS_SOFTWARE_ENDSTOPS (ENABLED(min_software_endstops) || ENABLED(max_software_endstops))
372
+  #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
373 373
 
374 374
 #endif //CONDITIONALS_LCD_H

+ 7
- 6
Marlin/Configuration.h 파일 보기

@@ -705,16 +705,12 @@
705 705
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
706 706
                              // Be sure you have this distance over your Z_MAX_POS in case.
707 707
 
708
-// ENDSTOP SETTINGS:
709
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
710
-// :[-1, 1]
708
+// Direction of endstops when homing; 1=MAX, -1=MIN
709
+// :[-1,1]
711 710
 #define X_HOME_DIR -1
712 711
 #define Y_HOME_DIR -1
713 712
 #define Z_HOME_DIR -1
714 713
 
715
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
716
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
717
-
718 714
 // @section machine
719 715
 
720 716
 // Travel limits after homing (units are in mm)
@@ -725,6 +721,11 @@
725 721
 #define Y_MAX_POS 200
726 722
 #define Z_MAX_POS 200
727 723
 
724
+// If enabled, axes won't move below MIN_POS in response to movement commands.
725
+#define MIN_SOFTWARE_ENDSTOPS
726
+// If enabled, axes won't move above MAX_POS in response to movement commands.
727
+#define MAX_SOFTWARE_ENDSTOPS
728
+
728 729
 /**
729 730
  * Filament Runout Sensor
730 731
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 4
- 4
Marlin/Marlin_main.cpp 파일 보기

@@ -7889,7 +7889,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
7889 7889
               && (delayed_move_time || current_position[X_AXIS] != xhome)
7890 7890
           ) {
7891 7891
             float raised_z = current_position[Z_AXIS] + TOOLCHANGE_PARK_ZLIFT;
7892
-            #if ENABLED(max_software_endstops)
7892
+            #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
7893 7893
               NOMORE(raised_z, soft_endstop_max[Z_AXIS]);
7894 7894
             #endif
7895 7895
             #if ENABLED(DEBUG_LEVELING_FEATURE)
@@ -7940,7 +7940,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
7940 7940
               // record raised toolhead position for use by unpark
7941 7941
               COPY(raised_parked_position, current_position);
7942 7942
               raised_parked_position[Z_AXIS] += TOOLCHANGE_UNPARK_ZLIFT;
7943
-              #if ENABLED(max_software_endstops)
7943
+              #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
7944 7944
                 NOMORE(raised_parked_position[Z_AXIS], soft_endstop_max[Z_AXIS]);
7945 7945
               #endif
7946 7946
               active_extruder_parked = true;
@@ -8983,12 +8983,12 @@ void ok_to_send() {
8983 8983
    */
8984 8984
   void clamp_to_software_endstops(float target[XYZ]) {
8985 8985
     if (!soft_endstops_enabled) return;
8986
-    #if ENABLED(min_software_endstops)
8986
+    #if ENABLED(MIN_SOFTWARE_ENDSTOPS)
8987 8987
       NOLESS(target[X_AXIS], soft_endstop_min[X_AXIS]);
8988 8988
       NOLESS(target[Y_AXIS], soft_endstop_min[Y_AXIS]);
8989 8989
       NOLESS(target[Z_AXIS], soft_endstop_min[Z_AXIS]);
8990 8990
     #endif
8991
-    #if ENABLED(max_software_endstops)
8991
+    #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
8992 8992
       NOMORE(target[X_AXIS], soft_endstop_max[X_AXIS]);
8993 8993
       NOMORE(target[Y_AXIS], soft_endstop_max[Y_AXIS]);
8994 8994
       NOMORE(target[Z_AXIS], soft_endstop_max[Z_AXIS]);

+ 2
- 0
Marlin/SanityCheck.h 파일 보기

@@ -158,6 +158,8 @@
158 158
   #error "LCD_PIN_RESET is now LCD_RESET_PIN. Please update your pins definitions."
159 159
 #elif defined(EXTRUDER_0_AUTO_FAN_PIN) || defined(EXTRUDER_1_AUTO_FAN_PIN) || defined(EXTRUDER_2_AUTO_FAN_PIN) || defined(EXTRUDER_3_AUTO_FAN_PIN)
160 160
   #error "EXTRUDER_[0123]_AUTO_FAN_PIN is now E[0123]_AUTO_FAN_PIN. Please update your Configuration_adv.h."
161
+#elif defined(min_software_endstops) || defined(max_software_endstops)
162
+  #error "(min|max)_software_endstops are now (MIN|MAX)_SOFTWARE_ENDSTOPS. Please update your configuration."
161 163
 #endif
162 164
 
163 165
 /**

+ 7
- 6
Marlin/example_configurations/Cartesio/Configuration.h 파일 보기

@@ -705,16 +705,12 @@
705 705
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
706 706
                              // Be sure you have this distance over your Z_MAX_POS in case.
707 707
 
708
-// ENDSTOP SETTINGS:
709
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
710
-// :[-1, 1]
708
+// Direction of endstops when homing; 1=MAX, -1=MIN
709
+// :[-1,1]
711 710
 #define X_HOME_DIR -1
712 711
 #define Y_HOME_DIR -1
713 712
 #define Z_HOME_DIR -1
714 713
 
715
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
716
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
717
-
718 714
 // @section machine
719 715
 
720 716
 // Travel limits after homing (units are in mm)
@@ -725,6 +721,11 @@
725 721
 #define Y_MAX_POS 270
726 722
 #define Z_MAX_POS 400
727 723
 
724
+// If enabled, axes won't move below MIN_POS in response to movement commands.
725
+#define MIN_SOFTWARE_ENDSTOPS
726
+// If enabled, axes won't move above MAX_POS in response to movement commands.
727
+#define MAX_SOFTWARE_ENDSTOPS
728
+
728 729
 /**
729 730
  * Filament Runout Sensor
730 731
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 6
- 5
Marlin/example_configurations/Felix/Configuration.h 파일 보기

@@ -688,16 +688,12 @@
688 688
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
689 689
                              // Be sure you have this distance over your Z_MAX_POS in case.
690 690
 
691
-// ENDSTOP SETTINGS:
692
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
691
+// Direction of endstops when homing; 1=MAX, -1=MIN
693 692
 // :[-1, 1]
694 693
 #define X_HOME_DIR -1
695 694
 #define Y_HOME_DIR -1
696 695
 #define Z_HOME_DIR -1
697 696
 
698
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
699
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
700
-
701 697
 // @section machine
702 698
 
703 699
 // Travel limits after homing (units are in mm)
@@ -708,6 +704,11 @@
708 704
 #define Y_MAX_POS 205
709 705
 #define Z_MAX_POS 235
710 706
 
707
+// If enabled, axes won't move below MIN_POS in response to movement commands.
708
+#define MIN_SOFTWARE_ENDSTOPS
709
+// If enabled, axes won't move above MAX_POS in response to movement commands.
710
+#define MAX_SOFTWARE_ENDSTOPS
711
+
711 712
 /**
712 713
  * Filament Runout Sensor
713 714
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/Felix/DUAL/Configuration.h 파일 보기

@@ -688,16 +688,12 @@
688 688
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
689 689
                              // Be sure you have this distance over your Z_MAX_POS in case.
690 690
 
691
-// ENDSTOP SETTINGS:
692
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
693
-// :[-1, 1]
691
+// Direction of endstops when homing; 1=MAX, -1=MIN
692
+// :[-1,1]
694 693
 #define X_HOME_DIR -1
695 694
 #define Y_HOME_DIR -1
696 695
 #define Z_HOME_DIR -1
697 696
 
698
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
699
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
700
-
701 697
 // @section machine
702 698
 
703 699
 // Travel limits after homing (units are in mm)
@@ -708,6 +704,11 @@
708 704
 #define Y_MAX_POS 205
709 705
 #define Z_MAX_POS 235
710 706
 
707
+// If enabled, axes won't move below MIN_POS in response to movement commands.
708
+#define MIN_SOFTWARE_ENDSTOPS
709
+// If enabled, axes won't move above MAX_POS in response to movement commands.
710
+#define MAX_SOFTWARE_ENDSTOPS
711
+
711 712
 /**
712 713
  * Filament Runout Sensor
713 714
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/Hephestos/Configuration.h 파일 보기

@@ -697,16 +697,12 @@
697 697
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
698 698
                              // Be sure you have this distance over your Z_MAX_POS in case.
699 699
 
700
-// ENDSTOP SETTINGS:
701
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
702
-// :[-1, 1]
700
+// Direction of endstops when homing; 1=MAX, -1=MIN
701
+// :[-1,1]
703 702
 #define X_HOME_DIR -1
704 703
 #define Y_HOME_DIR -1
705 704
 #define Z_HOME_DIR -1
706 705
 
707
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
708
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
709
-
710 706
 // @section machine
711 707
 
712 708
 // Travel limits after homing (units are in mm)
@@ -717,6 +713,11 @@
717 713
 #define Y_MAX_POS 210
718 714
 #define Z_MAX_POS 180
719 715
 
716
+// If enabled, axes won't move below MIN_POS in response to movement commands.
717
+#define MIN_SOFTWARE_ENDSTOPS
718
+// If enabled, axes won't move above MAX_POS in response to movement commands.
719
+#define MAX_SOFTWARE_ENDSTOPS
720
+
720 721
 /**
721 722
  * Filament Runout Sensor
722 723
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/Hephestos_2/Configuration.h 파일 보기

@@ -699,16 +699,12 @@
699 699
 #define Z_HOMING_HEIGHT 5    // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
700 700
                              // Be sure you have this distance over your Z_MAX_POS in case.
701 701
 
702
-// ENDSTOP SETTINGS:
703
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
704
-// :[-1, 1]
702
+// Direction of endstops when homing; 1=MAX, -1=MIN
703
+// :[-1,1]
705 704
 #define X_HOME_DIR -1
706 705
 #define Y_HOME_DIR -1
707 706
 #define Z_HOME_DIR -1
708 707
 
709
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
710
-#define max_software_endstops true // If true, axis won't move to coordinates greater than the defined lengths below.
711
-
712 708
 // @section machine
713 709
 
714 710
 // Travel limits after homing (units are in mm)
@@ -719,6 +715,11 @@
719 715
 #define Y_MAX_POS 297
720 716
 #define Z_MAX_POS 210
721 717
 
718
+// If enabled, axes won't move below MIN_POS in response to movement commands.
719
+#define MIN_SOFTWARE_ENDSTOPS
720
+// If enabled, axes won't move above MAX_POS in response to movement commands.
721
+#define MAX_SOFTWARE_ENDSTOPS
722
+
722 723
 /**
723 724
  * Filament Runout Sensor
724 725
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/K8200/Configuration.h 파일 보기

@@ -734,16 +734,12 @@
734 734
 #define Z_HOMING_HEIGHT 4   // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
735 735
                             // Be sure you have this distance over your Z_MAX_POS in case.
736 736
 
737
-// ENDSTOP SETTINGS:
738
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
739
-// :[-1, 1]
737
+// Direction of endstops when homing; 1=MAX, -1=MIN
738
+// :[-1,1]
740 739
 #define X_HOME_DIR -1
741 740
 #define Y_HOME_DIR -1
742 741
 #define Z_HOME_DIR -1
743 742
 
744
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
745
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
746
-
747 743
 // @section machine
748 744
 
749 745
 // Travel limits after homing (units are in mm)
@@ -754,6 +750,11 @@
754 750
 #define Y_MAX_POS 200
755 751
 #define Z_MAX_POS 200
756 752
 
753
+// If enabled, axes won't move below MIN_POS in response to movement commands.
754
+#define MIN_SOFTWARE_ENDSTOPS
755
+// If enabled, axes won't move above MAX_POS in response to movement commands.
756
+#define MAX_SOFTWARE_ENDSTOPS
757
+
757 758
 /**
758 759
  * Filament Runout Sensor
759 760
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/K8400/Configuration.h 파일 보기

@@ -705,16 +705,12 @@
705 705
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
706 706
                              // Be sure you have this distance over your Z_MAX_POS in case.
707 707
 
708
-// ENDSTOP SETTINGS:
709
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
710
-// :[-1, 1]
708
+// Direction of endstops when homing; 1=MAX, -1=MIN
709
+// :[-1,1]
711 710
 #define X_HOME_DIR -1
712 711
 #define Y_HOME_DIR -1
713 712
 #define Z_HOME_DIR -1
714 713
 
715
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
716
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
717
-
718 714
 // @section machine
719 715
 
720 716
 // Travel limits after homing (units are in mm)
@@ -725,6 +721,11 @@
725 721
 #define Y_MAX_POS 200
726 722
 #define Z_MAX_POS 190
727 723
 
724
+// If enabled, axes won't move below MIN_POS in response to movement commands.
725
+#define MIN_SOFTWARE_ENDSTOPS
726
+// If enabled, axes won't move above MAX_POS in response to movement commands.
727
+#define MAX_SOFTWARE_ENDSTOPS
728
+
728 729
 /**
729 730
  * Filament Runout Sensor
730 731
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/K8400/Dual-head/Configuration.h 파일 보기

@@ -705,16 +705,12 @@
705 705
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
706 706
                              // Be sure you have this distance over your Z_MAX_POS in case.
707 707
 
708
-// ENDSTOP SETTINGS:
709
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
710
-// :[-1, 1]
708
+// Direction of endstops when homing; 1=MAX, -1=MIN
709
+// :[-1,1]
711 710
 #define X_HOME_DIR -1
712 711
 #define Y_HOME_DIR -1
713 712
 #define Z_HOME_DIR -1
714 713
 
715
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
716
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
717
-
718 714
 // @section machine
719 715
 
720 716
 // Travel limits after homing (units are in mm)
@@ -725,6 +721,11 @@
725 721
 #define Y_MAX_POS 200
726 722
 #define Z_MAX_POS 190
727 723
 
724
+// If enabled, axes won't move below MIN_POS in response to movement commands.
725
+#define MIN_SOFTWARE_ENDSTOPS
726
+// If enabled, axes won't move above MAX_POS in response to movement commands.
727
+#define MAX_SOFTWARE_ENDSTOPS
728
+
728 729
 /**
729 730
  * Filament Runout Sensor
730 731
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h 파일 보기

@@ -705,16 +705,12 @@
705 705
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
706 706
                              // Be sure you have this distance over your Z_MAX_POS in case.
707 707
 
708
-// ENDSTOP SETTINGS:
709
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
710
-// :[-1, 1]
708
+// Direction of endstops when homing; 1=MAX, -1=MIN
709
+// :[-1,1]
711 710
 #define X_HOME_DIR -1
712 711
 #define Y_HOME_DIR -1
713 712
 #define Z_HOME_DIR -1
714 713
 
715
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
716
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
717
-
718 714
 // @section machine
719 715
 
720 716
 // Travel limits after homing (units are in mm)
@@ -725,6 +721,11 @@
725 721
 #define Y_MAX_POS 200
726 722
 #define Z_MAX_POS 200
727 723
 
724
+// If enabled, axes won't move below MIN_POS in response to movement commands.
725
+#define MIN_SOFTWARE_ENDSTOPS
726
+// If enabled, axes won't move above MAX_POS in response to movement commands.
727
+#define MAX_SOFTWARE_ENDSTOPS
728
+
728 729
 /**
729 730
  * Filament Runout Sensor
730 731
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/RigidBot/Configuration.h 파일 보기

@@ -704,16 +704,12 @@
704 704
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
705 705
                              // Be sure you have this distance over your Z_MAX_POS in case.
706 706
 
707
-// ENDSTOP SETTINGS:
708
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
709
-// :[-1, 1]
707
+// Direction of endstops when homing; 1=MAX, -1=MIN
708
+// :[-1,1]
710 709
 #define X_HOME_DIR -1
711 710
 #define Y_HOME_DIR -1
712 711
 #define Z_HOME_DIR -1
713 712
 
714
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
715
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
716
-
717 713
 // @section machine
718 714
 
719 715
 // Travel limits after homing (units are in mm)
@@ -724,6 +720,11 @@
724 720
 #define Y_MAX_POS 248  // RigidBot regular is 248mm, RigitBot Big is 304mm
725 721
 #define Z_MAX_POS 254  // RigidBot regular and Big are 254mm
726 722
 
723
+// If enabled, axes won't move below MIN_POS in response to movement commands.
724
+#define MIN_SOFTWARE_ENDSTOPS
725
+// If enabled, axes won't move above MAX_POS in response to movement commands.
726
+#define MAX_SOFTWARE_ENDSTOPS
727
+
727 728
 /**
728 729
  * Filament Runout Sensor
729 730
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/SCARA/Configuration.h 파일 보기

@@ -720,16 +720,12 @@
720 720
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
721 721
                              // Be sure you have this distance over your Z_MAX_POS in case.
722 722
 
723
-// ENDSTOP SETTINGS:
724
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
725
-// :[-1, 1]
723
+// Direction of endstops when homing; 1=MAX, -1=MIN
724
+// :[-1,1]
726 725
 #define X_HOME_DIR 1
727 726
 #define Y_HOME_DIR 1
728 727
 #define Z_HOME_DIR -1
729 728
 
730
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
731
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
732
-
733 729
 // @section machine
734 730
 
735 731
 // Travel limits after homing (units are in mm)
@@ -740,6 +736,11 @@
740 736
 #define Y_MAX_POS 200
741 737
 #define Z_MAX_POS 225
742 738
 
739
+// If enabled, axes won't move below MIN_POS in response to movement commands.
740
+#define MIN_SOFTWARE_ENDSTOPS
741
+// If enabled, axes won't move above MAX_POS in response to movement commands.
742
+#define MAX_SOFTWARE_ENDSTOPS
743
+
743 744
 /**
744 745
  * Filament Runout Sensor
745 746
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/TAZ4/Configuration.h 파일 보기

@@ -726,16 +726,12 @@
726 726
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
727 727
                              // Be sure you have this distance over your Z_MAX_POS in case.
728 728
 
729
-// ENDSTOP SETTINGS:
730
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
731
-// :[-1, 1]
729
+// Direction of endstops when homing; 1=MAX, -1=MIN
730
+// :[-1,1]
732 731
 #define X_HOME_DIR -1
733 732
 #define Y_HOME_DIR -1
734 733
 #define Z_HOME_DIR -1
735 734
 
736
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
737
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
738
-
739 735
 // @section machine
740 736
 
741 737
 // Travel limits after homing (units are in mm)
@@ -746,6 +742,11 @@
746 742
 #define Y_MAX_POS 275
747 743
 #define Z_MAX_POS 250
748 744
 
745
+// If enabled, axes won't move below MIN_POS in response to movement commands.
746
+#define MIN_SOFTWARE_ENDSTOPS
747
+// If enabled, axes won't move above MAX_POS in response to movement commands.
748
+#define MAX_SOFTWARE_ENDSTOPS
749
+
749 750
 /**
750 751
  * Filament Runout Sensor
751 752
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/WITBOX/Configuration.h 파일 보기

@@ -697,16 +697,12 @@
697 697
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
698 698
                              // Be sure you have this distance over your Z_MAX_POS in case.
699 699
 
700
-// ENDSTOP SETTINGS:
701
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
702
-// :[-1, 1]
700
+// Direction of endstops when homing; 1=MAX, -1=MIN
701
+// :[-1,1]
703 702
 #define X_HOME_DIR 1
704 703
 #define Y_HOME_DIR 1
705 704
 #define Z_HOME_DIR -1
706 705
 
707
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
708
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
709
-
710 706
 // @section machine
711 707
 
712 708
 // Travel limits after homing (units are in mm)
@@ -717,6 +713,11 @@
717 713
 #define Y_MAX_POS 210
718 714
 #define Z_MAX_POS 200
719 715
 
716
+// If enabled, axes won't move below MIN_POS in response to movement commands.
717
+#define MIN_SOFTWARE_ENDSTOPS
718
+// If enabled, axes won't move above MAX_POS in response to movement commands.
719
+#define MAX_SOFTWARE_ENDSTOPS
720
+
720 721
 /**
721 722
  * Filament Runout Sensor
722 723
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/adafruit/ST7565/Configuration.h 파일 보기

@@ -705,16 +705,12 @@
705 705
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
706 706
                              // Be sure you have this distance over your Z_MAX_POS in case.
707 707
 
708
-// ENDSTOP SETTINGS:
709
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
710
-// :[-1, 1]
708
+// Direction of endstops when homing; 1=MAX, -1=MIN
709
+// :[-1,1]
711 710
 #define X_HOME_DIR -1
712 711
 #define Y_HOME_DIR -1
713 712
 #define Z_HOME_DIR -1
714 713
 
715
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
716
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
717
-
718 714
 // @section machine
719 715
 
720 716
 // Travel limits after homing (units are in mm)
@@ -725,6 +721,11 @@
725 721
 #define Y_MAX_POS 200
726 722
 #define Z_MAX_POS 200
727 723
 
724
+// If enabled, axes won't move below MIN_POS in response to movement commands.
725
+#define MIN_SOFTWARE_ENDSTOPS
726
+// If enabled, axes won't move above MAX_POS in response to movement commands.
727
+#define MAX_SOFTWARE_ENDSTOPS
728
+
728 729
 /**
729 730
  * Filament Runout Sensor
730 731
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/delta/flsun_kossel_mini/Configuration.h 파일 보기

@@ -807,16 +807,12 @@
807 807
 #define Z_HOMING_HEIGHT 15   // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
808 808
                              // Be sure you have this distance over your Z_MAX_POS in case.
809 809
 
810
-// ENDSTOP SETTINGS:
811
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
812
-// :[-1, 1]
810
+// Direction of endstops when homing; 1=MAX, -1=MIN
811
+// :[-1,1]
813 812
 #define X_HOME_DIR 1  // deltas always home to max
814 813
 #define Y_HOME_DIR 1
815 814
 #define Z_HOME_DIR 1
816 815
 
817
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
818
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
819
-
820 816
 // @section machine
821 817
 
822 818
 // Travel limits after homing (units are in mm)
@@ -827,6 +823,11 @@
827 823
 #define Y_MAX_POS DELTA_PRINTABLE_RADIUS
828 824
 #define Z_MAX_POS MANUAL_Z_HOME_POS
829 825
 
826
+// If enabled, axes won't move below MIN_POS in response to movement commands.
827
+#define MIN_SOFTWARE_ENDSTOPS
828
+// If enabled, axes won't move above MAX_POS in response to movement commands.
829
+#define MAX_SOFTWARE_ENDSTOPS
830
+
830 831
 /**
831 832
  * Filament Runout Sensor
832 833
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/delta/generic/Configuration.h 파일 보기

@@ -791,16 +791,12 @@
791 791
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
792 792
                              // Be sure you have this distance over your Z_MAX_POS in case.
793 793
 
794
-// ENDSTOP SETTINGS:
795
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
796
-// :[-1, 1]
794
+// Direction of endstops when homing; 1=MAX, -1=MIN
795
+// :[-1,1]
797 796
 #define X_HOME_DIR 1  // deltas always home to max
798 797
 #define Y_HOME_DIR 1
799 798
 #define Z_HOME_DIR 1
800 799
 
801
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
802
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
803
-
804 800
 // @section machine
805 801
 
806 802
 // Travel limits after homing (units are in mm)
@@ -811,6 +807,11 @@
811 807
 #define Y_MAX_POS DELTA_PRINTABLE_RADIUS
812 808
 #define Z_MAX_POS MANUAL_Z_HOME_POS
813 809
 
810
+// If enabled, axes won't move below MIN_POS in response to movement commands.
811
+#define MIN_SOFTWARE_ENDSTOPS
812
+// If enabled, axes won't move above MAX_POS in response to movement commands.
813
+#define MAX_SOFTWARE_ENDSTOPS
814
+
814 815
 /**
815 816
  * Filament Runout Sensor
816 817
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/delta/kossel_mini/Configuration.h 파일 보기

@@ -794,16 +794,12 @@
794 794
 //#define Z_HOMING_HEIGHT 15 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
795 795
                              // Be sure you have this distance over your Z_MAX_POS in case.
796 796
 
797
-// ENDSTOP SETTINGS:
798
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
799
-// :[-1, 1]
797
+// Direction of endstops when homing; 1=MAX, -1=MIN
798
+// :[-1,1]
800 799
 #define X_HOME_DIR 1  // deltas always home to max
801 800
 #define Y_HOME_DIR 1
802 801
 #define Z_HOME_DIR 1
803 802
 
804
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
805
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
806
-
807 803
 // @section machine
808 804
 
809 805
 // Travel limits after homing (units are in mm)
@@ -814,6 +810,11 @@
814 810
 #define Y_MAX_POS DELTA_PRINTABLE_RADIUS
815 811
 #define Z_MAX_POS MANUAL_Z_HOME_POS
816 812
 
813
+// If enabled, axes won't move below MIN_POS in response to movement commands.
814
+#define MIN_SOFTWARE_ENDSTOPS
815
+// If enabled, axes won't move above MAX_POS in response to movement commands.
816
+#define MAX_SOFTWARE_ENDSTOPS
817
+
817 818
 /**
818 819
  * Filament Runout Sensor
819 820
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/delta/kossel_pro/Configuration.h 파일 보기

@@ -793,16 +793,12 @@
793 793
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
794 794
                              // Be sure you have this distance over your Z_MAX_POS in case.
795 795
 
796
-// ENDSTOP SETTINGS:
797
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
798
-// :[-1, 1]
796
+// Direction of endstops when homing; 1=MAX, -1=MIN
797
+// :[-1,1]
799 798
 #define X_HOME_DIR 1  // deltas always home to max
800 799
 #define Y_HOME_DIR 1
801 800
 #define Z_HOME_DIR 1
802 801
 
803
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
804
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
805
-
806 802
 // @section machine
807 803
 
808 804
 // Travel limits after homing (units are in mm)
@@ -813,6 +809,11 @@
813 809
 #define Y_MAX_POS DELTA_PRINTABLE_RADIUS
814 810
 #define Z_MAX_POS MANUAL_Z_HOME_POS
815 811
 
812
+// If enabled, axes won't move below MIN_POS in response to movement commands.
813
+#define MIN_SOFTWARE_ENDSTOPS
814
+// If enabled, axes won't move above MAX_POS in response to movement commands.
815
+#define MAX_SOFTWARE_ENDSTOPS
816
+
816 817
 /**
817 818
  * Filament Runout Sensor
818 819
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/delta/kossel_xl/Configuration.h 파일 보기

@@ -797,16 +797,12 @@
797 797
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
798 798
                              // Be sure you have this distance over your Z_MAX_POS in case.
799 799
 
800
-// ENDSTOP SETTINGS:
801
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
802
-// :[-1, 1]
800
+// Direction of endstops when homing; 1=MAX, -1=MIN
801
+// :[-1,1]
803 802
 #define X_HOME_DIR 1  // deltas always home to max
804 803
 #define Y_HOME_DIR 1
805 804
 #define Z_HOME_DIR 1
806 805
 
807
-#define min_software_endstops false // If true, axis won't move to coordinates less than HOME_POS.
808
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
809
-
810 806
 // @section machine
811 807
 
812 808
 // Travel limits after homing (units are in mm)
@@ -817,6 +813,11 @@
817 813
 #define Y_MAX_POS DELTA_PRINTABLE_RADIUS
818 814
 #define Z_MAX_POS MANUAL_Z_HOME_POS
819 815
 
816
+// If enabled, axes won't move below MIN_POS in response to movement commands.
817
+//#define MIN_SOFTWARE_ENDSTOPS
818
+// If enabled, axes won't move above MAX_POS in response to movement commands.
819
+#define MAX_SOFTWARE_ENDSTOPS
820
+
820 821
 /**
821 822
  * Filament Runout Sensor
822 823
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/makibox/Configuration.h 파일 보기

@@ -708,16 +708,12 @@
708 708
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
709 709
                              // Be sure you have this distance over your Z_MAX_POS in case.
710 710
 
711
-// ENDSTOP SETTINGS:
712
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
713
-// :[-1, 1]
711
+// Direction of endstops when homing; 1=MAX, -1=MIN
712
+// :[-1,1]
714 713
 #define X_HOME_DIR -1
715 714
 #define Y_HOME_DIR -1
716 715
 #define Z_HOME_DIR -1
717 716
 
718
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
719
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
720
-
721 717
 // @section machine
722 718
 
723 719
 // Travel limits after homing (units are in mm)
@@ -728,6 +724,11 @@
728 724
 #define Y_MAX_POS 150
729 725
 #define Z_MAX_POS 86
730 726
 
727
+// If enabled, axes won't move below MIN_POS in response to movement commands.
728
+#define MIN_SOFTWARE_ENDSTOPS
729
+// If enabled, axes won't move above MAX_POS in response to movement commands.
730
+#define MAX_SOFTWARE_ENDSTOPS
731
+
731 732
 /**
732 733
  * Filament Runout Sensor
733 734
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 7
- 6
Marlin/example_configurations/tvrrug/Round2/Configuration.h 파일 보기

@@ -701,16 +701,12 @@
701 701
 //#define Z_HOMING_HEIGHT 4  // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
702 702
                              // Be sure you have this distance over your Z_MAX_POS in case.
703 703
 
704
-// ENDSTOP SETTINGS:
705
-// Sets direction of endstops when homing; 1=MAX, -1=MIN
706
-// :[-1, 1]
704
+// Direction of endstops when homing; 1=MAX, -1=MIN
705
+// :[-1,1]
707 706
 #define X_HOME_DIR -1
708 707
 #define Y_HOME_DIR -1
709 708
 #define Z_HOME_DIR -1
710 709
 
711
-#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
712
-#define max_software_endstops true  // If true, axis won't move to coordinates greater than the defined lengths below.
713
-
714 710
 // @section machine
715 711
 
716 712
 // Travel limits after homing (units are in mm)
@@ -721,6 +717,11 @@
721 717
 #define Y_MAX_POS 205
722 718
 #define Z_MAX_POS 120
723 719
 
720
+// If enabled, axes won't move below MIN_POS in response to movement commands.
721
+#define MIN_SOFTWARE_ENDSTOPS
722
+// If enabled, axes won't move above MAX_POS in response to movement commands.
723
+#define MAX_SOFTWARE_ENDSTOPS
724
+
724 725
 /**
725 726
  * Filament Runout Sensor
726 727
  * A mechanical or opto endstop is used to check for the presence of filament.

+ 2
- 2
Marlin/ultralcd.cpp 파일 보기

@@ -1602,10 +1602,10 @@ KeepDrawing:
1602 1602
       #if HAS_SOFTWARE_ENDSTOPS
1603 1603
         // Limit to software endstops, if enabled
1604 1604
         if (soft_endstops_enabled) {
1605
-          #if ENABLED(min_software_endstops)
1605
+          #if ENABLED(MIN_SOFTWARE_ENDSTOPS)
1606 1606
             min = soft_endstop_min[axis];
1607 1607
           #endif
1608
-          #if ENABLED(max_software_endstops)
1608
+          #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
1609 1609
             max = soft_endstop_max[axis];
1610 1610
           #endif
1611 1611
         }

Loading…
취소
저장