Add bed size as a configuration option

This commit is contained in:
Scott Lahteine
2017-07-21 22:54:39 -05:00
parent dc7c95e07b
commit 51864fd365
37 changed files with 378 additions and 210 deletions

View File

@ -839,47 +839,52 @@
// @section machine
// Travel limits after homing (units are in mm)
// The size of the print bed
//#define X_BED_SIZE 200
//#define Y_BED_SIZE 200
// Travel limits (mm) after homing, corresponding to endstop positions.
//#define X_MIN_POS 0
//#define Y_MIN_POS 0
//#define X_MAX_POS X_BED_SIZE
//#define Y_MAX_POS Y_BED_SIZE
//#define Z_MIN_POS 0
//#define X_MAX_POS 200
//#define Y_MAX_POS 200
//#define Z_MAX_POS 200
// ANET A6 Firmware V2.0 defaults:
//#define X_MIN_POS 0
//#define Y_MIN_POS 0
//#define Z_MIN_POS 0
//#define X_MAX_POS 220
//#define Y_MAX_POS 220
//#define Z_MAX_POS 250
//#define X_BED_SIZE 220
//#define Y_BED_SIZE 220
//#define X_MIN_POS 0
//#define Y_MIN_POS 0
//#define Z_MIN_POS 0
//#define Z_MAX_POS 250
// ANET A6, X0/Y0 0 front left bed edge :
#define X_MIN_POS -3
#define Y_MIN_POS -5
#define Z_MIN_POS 0
#define X_MAX_POS 222
#define Y_MAX_POS 222
#define Z_MAX_POS 230
#define X_BED_SIZE 222
#define Y_BED_SIZE 222
#define X_MIN_POS -3
#define Y_MIN_POS -5
#define Z_MIN_POS 0
#define Z_MAX_POS 230
// ANET A6 with new X-Axis / modded Y-Axis:
//#define X_MIN_POS 0
//#define Y_MIN_POS 0
//#define Z_MIN_POS 0
//#define X_MAX_POS 235
//#define Y_MAX_POS 230
//#define Z_MAX_POS 230
//#define X_BED_SIZE 235
//#define Y_BED_SIZE 230
//#define X_MIN_POS 0
//#define Y_MIN_POS 0
//#define Z_MIN_POS 0
//#define Z_MAX_POS 230
// ANET A6 with new X-Axis / modded Y-Axis, X0/Y0 0 front left bed edge :
//#define X_MIN_POS -8
//#define Y_MIN_POS -6
//#define Z_MIN_POS 0
//#define X_MAX_POS 227
//#define Y_MAX_POS 224
//#define Z_MAX_POS 230
//#define X_BED_SIZE 227
//#define Y_BED_SIZE 224
//#define X_MIN_POS -8
//#define Y_MIN_POS -6
//#define Z_MIN_POS 0
//#define Z_MAX_POS 230
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
// If enabled, axes won't move below MIN_POS in response to movement commands.
#define MIN_SOFTWARE_ENDSTOPS
@ -1115,8 +1120,8 @@
#define Z_SAFE_HOMING
#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_X_POINT ((X_BED_SIZE) / 2) // X point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_Y_POINT ((Y_BED_SIZE) / 2) // Y point for Z homing when homing all axis (G28).
//Anet A6 with new X-Axis
//#define Z_SAFE_HOMING_X_POINT 113 // X point for Z homing when homing all axis (G28).