|
@@ -76,6 +76,54 @@
|
76
|
76
|
|
77
|
77
|
#define ENDSTOPS_ONLY_FOR_HOMING // If defined the endstops will only be used for homing
|
78
|
78
|
|
|
79
|
+
|
|
80
|
+//// AUTOSET LOCATIONS OF LIMIT SWITCHES
|
|
81
|
+//// Added by ZetaPhoenix 09-15-2012
|
|
82
|
+#ifdef MANUAL_HOME_POSITION //Use manual limit switch locations
|
|
83
|
+ #define X_HOME_POS MANUAL_X_HOME_POS
|
|
84
|
+ #define Y_HOME_POS MANUAL_Y_HOME_POS
|
|
85
|
+ #define Z_HOME_POS MANUAL_Z_HOME_POS
|
|
86
|
+#else //Set min/max homing switch positions based upon homing direction and min/max travel limits
|
|
87
|
+ //X axis
|
|
88
|
+ #if X_HOME_DIR == -1
|
|
89
|
+ #ifdef BED_CENTER_AT_0_0
|
|
90
|
+ #define X_HOME_POS X_MAX_LENGTH * -0.5
|
|
91
|
+ #else
|
|
92
|
+ #define X_HOME_POS X_MIN_POS
|
|
93
|
+ #endif //BED_CENTER_AT_0_0
|
|
94
|
+ #else
|
|
95
|
+ #ifdef BED_CENTER_AT_0_0
|
|
96
|
+ #define X_HOME_POS X_MAX_LENGTH * 0.5
|
|
97
|
+ #else
|
|
98
|
+ #define X_HOME_POS X_MAX_POS
|
|
99
|
+ #endif //BED_CENTER_AT_0_0
|
|
100
|
+ #endif //X_HOME_DIR == -1
|
|
101
|
+
|
|
102
|
+ //Y axis
|
|
103
|
+ #if Y_HOME_DIR == -1
|
|
104
|
+ #ifdef BED_CENTER_AT_0_0
|
|
105
|
+ #define Y_HOME_POS Y_MAX_LENGTH * -0.5
|
|
106
|
+ #else
|
|
107
|
+ #define Y_HOME_POS Y_MIN_POS
|
|
108
|
+ #endif //BED_CENTER_AT_0_0
|
|
109
|
+ #else
|
|
110
|
+ #ifdef BED_CENTER_AT_0_0
|
|
111
|
+ #define Y_HOME_POS Y_MAX_LENGTH * 0.5
|
|
112
|
+ #else
|
|
113
|
+ #define Y_HOME_POS Y_MAX_POS
|
|
114
|
+ #endif //BED_CENTER_AT_0_0
|
|
115
|
+ #endif //Y_HOME_DIR == -1
|
|
116
|
+
|
|
117
|
+ // Z axis
|
|
118
|
+ #if Z_HOME_DIR == -1 //BED_CENTER_AT_0_0 not used
|
|
119
|
+ #define Z_HOME_POS Z_MIN_POS
|
|
120
|
+ #else
|
|
121
|
+ #define Z_HOME_POS Z_MAX_POS
|
|
122
|
+ #endif //Z_HOME_DIR == -1
|
|
123
|
+#endif //End auto min/max positions
|
|
124
|
+//END AUTOSET LOCATIONS OF LIMIT SWITCHES -ZP
|
|
125
|
+
|
|
126
|
+
|
79
|
127
|
//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
|
80
|
128
|
|
81
|
129
|
// A single Z stepper driver is usually used to drive 2 stepper motors.
|