From 352e41bad7bc6bd04772b0d46a2b197eb63ba282 Mon Sep 17 00:00:00 2001 From: InsanityAutomation Date: Sun, 13 Oct 2019 14:53:55 -0400 Subject: [PATCH] Add SX2 --- Marlin/Configuration.h | 34 +++++++++++++++++++++++++--------- Marlin/Configuration_adv.h | 21 +++++++++++++-------- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 0ebf30e809..0ea7198b3b 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -2,14 +2,19 @@ //#define BondtechBMG //#define CR10SPro_GearedExtruder //#define E3DV6 + //#define FilamentSensorStd //#define FilamentSensorLerdge -//#define STOCK_2208 // V2 Stock Board with TMC2208 Drivers + +#define STOCK_2208 // V2 Stock Board with TMC2208 Drivers //#define SKR13 // 32 bit board - assumes 2208 drivers //#define SKR13_2209 //#define E_8825 //#define SKR13_UART // Configure SKR board with drivers in UART mode -//#define DUAL_Z + +#define SX2 // Small formfactor 200mm machine + +#define DUAL_Z //#define GRAPHICSLCD //#define UBL @@ -1025,7 +1030,7 @@ * A total of 3 or more adds more slow probes, taking the average. */ #define MULTIPLE_PROBING 2 -#define EXTRA_PROBING 1 +//#define EXTRA_PROBING 1 /** * Z probes require clearance when deploying, stowing, and moving between @@ -1142,9 +1147,13 @@ // @section machine // The size of the print bed -#define X_BED_SIZE 398 -#define Y_BED_SIZE 390 - +#if ENABLED(SX2) + #define X_BED_SIZE 248 + #define Y_BED_SIZE 230 +#else + #define X_BED_SIZE 398 + #define Y_BED_SIZE 390 +#endif // Travel limits (mm) after homing, corresponding to endstop positions. #define X_MIN_POS 0 @@ -1152,8 +1161,11 @@ #define Z_MIN_POS 0 #define X_MAX_POS X_BED_SIZE #define Y_MAX_POS Y_BED_SIZE -#define Z_MAX_POS 500 - +#if ENABLED(SX2) + #define Z_MAX_POS 500 +#else + #define Z_MAX_POS 250 +#endif /** * Software Endstops * @@ -1312,7 +1324,11 @@ #if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR) // Set the number of grid points per dimension. - #define GRID_MAX_POINTS_X 10 + #if ENABLED(SX2) + #define GRID_MAX_POINTS_X 5 + #else + #define GRID_MAX_POINTS_X 10 + #endif #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X // Probe along the Y axis, advancing X after each column diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 13f38b8451..b347d15614 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -590,7 +590,7 @@ * This feature was designed for Delta's with very fast Z moves however higher speed cartesians may function * If the machine cannot raise the probe fast enough after a trigger, it may enter a fault state. */ - //#define BLTOUCH_HS_MODE + #define BLTOUCH_HS_MODE // Safety: Enable voltage mode settings in the LCD menu. //#define BLTOUCH_LCD_VOLTAGE_MENU @@ -606,10 +606,15 @@ #endif #if ENABLED(Z_STEPPER_AUTO_ALIGN) // Define probe X and Y positions for Z1, Z2 [, Z3] - #define Z_STEPPER_ALIGN_X { 50, 350 } - #define Z_STEPPER_ALIGN_Y { 200, 200 } + #if ENABLED(SX2) + #define Z_STEPPER_ALIGN_X { 50, 225 } + #define Z_STEPPER_ALIGN_Y { 100, 100 } + #else + #define Z_STEPPER_ALIGN_X { 50, 350 } + #define Z_STEPPER_ALIGN_Y { 200, 200 } + #endif // Set number of iterations to align - #define Z_STEPPER_ALIGN_ITERATIONS 3 + #define Z_STEPPER_ALIGN_ITERATIONS 6 // Enable to restore leveling setup after operation #define RESTORE_LEVELING_AFTER_G34 @@ -1365,12 +1370,12 @@ * Useful to get probe points to exact positions on targets or * to allow leveling to avoid plate clamps on only specific * sides of the bed. - * + * * If you are replacing the prior *_PROBE_BED_POSITION options, * LEFT and FRONT values in most cases will map directly over - * RIGHT and REAR would be the inverse such as + * RIGHT and REAR would be the inverse such as * (X/Y_BED_SIZE - RIGHT/BACK_PROBE_BED_POSITION) - * + * * This will allow all positions to match at compilation, however * should the probe position be modified with M851XY then the * probe points will follow. This prevents any change from causing @@ -2514,7 +2519,7 @@ #define CommBedTmp "65" #if ENABLED(DUAL_Z) - #define ALIGN_CMD "G34I3\n" + #define ALIGN_CMD "G34I20\n" #else #define ALIGN_CMD "" #endif