Merge pull request #4453 from thinkyhead/rc_better_manual_home
Improved MANUAL_[XYZ]_HOME_POS
This commit is contained in:
		
						commit
						c677d2ac56
					
				| @ -94,22 +94,29 @@ | |||||||
|   #endif |   #endif | ||||||
| 
 | 
 | ||||||
|   /**
 |   /**
 | ||||||
|    * AUTOSET LOCATIONS OF LIMIT SWITCHES |    * Set the home position based on settings or manual overrides | ||||||
|    */ |    */ | ||||||
|   #if ENABLED(MANUAL_HOME_POSITIONS)  // Use manual limit switch locations
 |   #ifdef MANUAL_X_HOME_POS | ||||||
|     #define X_HOME_POS MANUAL_X_HOME_POS |     #define X_HOME_POS MANUAL_X_HOME_POS | ||||||
|  |   #elif ENABLED(BED_CENTER_AT_0_0) | ||||||
|  |     #define X_HOME_POS ((X_MAX_LENGTH) * (X_HOME_DIR) * 0.5) | ||||||
|  |   #else | ||||||
|  |     #define X_HOME_POS (X_HOME_DIR < 0 ? X_MIN_POS : X_MAX_POS) | ||||||
|  |   #endif | ||||||
|  | 
 | ||||||
|  |   #ifdef MANUAL_Y_HOME_POS | ||||||
|     #define Y_HOME_POS MANUAL_Y_HOME_POS |     #define Y_HOME_POS MANUAL_Y_HOME_POS | ||||||
|  |   #elif ENABLED(BED_CENTER_AT_0_0) | ||||||
|  |     #define Y_HOME_POS ((Y_MAX_LENGTH) * (Y_HOME_DIR) * 0.5) | ||||||
|  |   #else | ||||||
|  |     #define Y_HOME_POS (Y_HOME_DIR < 0 ? Y_MIN_POS : Y_MAX_POS) | ||||||
|  |   #endif | ||||||
|  | 
 | ||||||
|  |   #ifdef MANUAL_Z_HOME_POS | ||||||
|     #define Z_HOME_POS MANUAL_Z_HOME_POS |     #define Z_HOME_POS MANUAL_Z_HOME_POS | ||||||
|   #else //!MANUAL_HOME_POSITIONS – Use home switch positions based on homing direction and travel limits
 |   #else | ||||||
|     #if ENABLED(BED_CENTER_AT_0_0) |  | ||||||
|       #define X_HOME_POS (X_MAX_LENGTH) * (X_HOME_DIR) * 0.5 |  | ||||||
|       #define Y_HOME_POS (Y_MAX_LENGTH) * (Y_HOME_DIR) * 0.5 |  | ||||||
|     #else |  | ||||||
|       #define X_HOME_POS (X_HOME_DIR < 0 ? X_MIN_POS : X_MAX_POS) |  | ||||||
|       #define Y_HOME_POS (Y_HOME_DIR < 0 ? Y_MIN_POS : Y_MAX_POS) |  | ||||||
|     #endif |  | ||||||
|     #define Z_HOME_POS (Z_HOME_DIR < 0 ? Z_MIN_POS : Z_MAX_POS) |     #define Z_HOME_POS (Z_HOME_DIR < 0 ? Z_MIN_POS : Z_MAX_POS) | ||||||
|   #endif //!MANUAL_HOME_POSITIONS
 |   #endif | ||||||
| 
 | 
 | ||||||
|   /**
 |   /**
 | ||||||
|    * The BLTouch Probe emulates a servo probe |    * The BLTouch Probe emulates a servo probe | ||||||
|  | |||||||
| @ -716,18 +716,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -728,4 +728,6 @@ | |||||||
|   #error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead." |   #error "ENDSTOPS_ONLY_FOR_HOMING is deprecated. Use (disable) ENDSTOPS_ALWAYS_ON_DEFAULT instead." | ||||||
| #elif defined(HOMING_FEEDRATE) | #elif defined(HOMING_FEEDRATE) | ||||||
|   #error "HOMING_FEEDRATE is deprecated. Set individual rates with HOMING_FEEDRATE_(XY|Z|E) instead." |   #error "HOMING_FEEDRATE is deprecated. Set individual rates with HOMING_FEEDRATE_(XY|Z|E) instead." | ||||||
|  | #elif defined(MANUAL_HOME_POSITIONS) | ||||||
|  |   #error "MANUAL_HOME_POSITIONS is deprecated. Set MANUAL_[XYZ]_HOME_POS as-needed instead." | ||||||
| #endif | #endif | ||||||
|  | |||||||
| @ -717,18 +717,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -699,18 +699,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -697,18 +697,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -709,18 +709,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -710,18 +710,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -734,18 +734,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -717,18 +717,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -717,18 +717,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -717,18 +717,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -714,18 +714,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -725,18 +725,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | #define MANUAL_X_HOME_POS -22 | ||||||
|   // For SCARA: Offset between HomingPosition and Bed X=0 / Y=0
 | #define MANUAL_Y_HOME_POS -52 | ||||||
|   #define MANUAL_X_HOME_POS -22. | #define MANUAL_Z_HOME_POS 0.1 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Y_HOME_POS -52. |  | ||||||
|   #define MANUAL_Z_HOME_POS 0.1  // Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -738,18 +738,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -708,18 +708,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -717,18 +717,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -810,17 +810,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | #define BED_CENTER_AT_0_0 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | #define MANUAL_Z_HOME_POS 405 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 405 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -804,17 +804,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | #define BED_CENTER_AT_0_0 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | #define MANUAL_Z_HOME_POS 250 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 250 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -807,17 +807,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | #define BED_CENTER_AT_0_0 | ||||||
| #define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | #define MANUAL_Z_HOME_POS 250 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 250 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -801,17 +801,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | #define BED_CENTER_AT_0_0 | ||||||
| #define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | #define MANUAL_Z_HOME_POS 277 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 277 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -802,17 +802,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| #define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | #define BED_CENTER_AT_0_0 | ||||||
| #define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | #define MANUAL_Z_HOME_POS 381.4 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 381.4 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -720,18 +720,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
| @ -706,18 +706,14 @@ | |||||||
| 
 | 
 | ||||||
| // @section homing
 | // @section homing
 | ||||||
| 
 | 
 | ||||||
| // The position of the homing switches
 | // The center of the bed is at (X=0, Y=0)
 | ||||||
| //#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used
 | //#define BED_CENTER_AT_0_0
 | ||||||
| //#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)
 |  | ||||||
| 
 | 
 | ||||||
| // Manual homing switch locations:
 | // Manually set the home position. Leave these undefined for automatic settings.
 | ||||||
| // For deltabots this means top and center of the Cartesian print volume.
 | // For DELTA this is the top-center of the Cartesian print volume.
 | ||||||
| #if ENABLED(MANUAL_HOME_POSITIONS) | //#define MANUAL_X_HOME_POS 0
 | ||||||
|   #define MANUAL_X_HOME_POS 0 | //#define MANUAL_Y_HOME_POS 0
 | ||||||
|   #define MANUAL_Y_HOME_POS 0 | //#define MANUAL_Z_HOME_POS 0 // Distance between the nozzle to printbed after homing
 | ||||||
|   #define MANUAL_Z_HOME_POS 0 |  | ||||||
|   //#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.
 |  | ||||||
| #endif |  | ||||||
| 
 | 
 | ||||||
| // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | // Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 | ||||||
| //
 | //
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user