Browse Source

Merge pull request #1957 from Voxel8/sjk/home_y_before_x

Allow Y to home before X with option in Configuration_adv.h.
Scott Lahteine 9 years ago
parent
commit
28aef684b4

+ 3
- 0
Marlin/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 9
- 2
Marlin/Marlin_main.cpp View File

@@ -1933,6 +1933,11 @@ inline void gcode_G28() {
1933 1933
 
1934 1934
     #endif // QUICK_HOME
1935 1935
 
1936
+    #ifdef HOME_Y_BEFORE_X
1937
+      // Home Y
1938
+      if (home_all_axis || homeY) HOMEAXIS(Y);
1939
+    #endif
1940
+
1936 1941
     // Home X
1937 1942
     if (home_all_axis || homeX) {
1938 1943
       #ifdef DUAL_X_CARRIAGE
@@ -1952,8 +1957,10 @@ inline void gcode_G28() {
1952 1957
       #endif
1953 1958
     }
1954 1959
 
1955
-    // Home Y
1956
-    if (home_all_axis || homeY) HOMEAXIS(Y);
1960
+    #ifndef HOME_Y_BEFORE_X
1961
+      // Home Y
1962
+      if (home_all_axis || homeY) HOMEAXIS(Y);
1963
+    #endif
1957 1964
 
1958 1965
     // Home Z last if homing towards the bed
1959 1966
     #if Z_HOME_DIR < 0

+ 3
- 0
Marlin/configurator/config/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {10, 10, 20}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {10, 10, 20}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

+ 3
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -195,6 +195,9 @@
195 195
 #define HOMING_BUMP_DIVISOR {2, 2, 4}  // Re-Bump Speed Divisor (Divides the Homing Feedrate)
196 196
 //#define QUICK_HOME  //if this is defined, if both x and y are to be homed, a diagonal move will be performed initially.
197 197
 
198
+// When G28 is called, this option will make Y home before X
199
+// #define HOME_Y_BEFORE_X
200
+
198 201
 // @section machine
199 202
 
200 203
 #define AXIS_RELATIVE_MODES {false, false, false, false}

Loading…
Cancel
Save