MarlinFirmware/Configurations

[BUG] Solved/Software endstop error after setting UBL

flywork39 opened this issue · 0 comments

Solved by modifying the value of 2.1.x > ubl_G29.cpp > G29J_MESH_TILT_MARGIN.

===============

I turn off the power by attaching a limit switch to the end of the Y-axis.
Interference occurs because the G29 J code of UBL has the maximum value of the movement limit [Y_MAX_POS].
So I mounted the power disconnect switch slightly back and commented out MAX_SOFTWARE_ENDSTOP_Y for it to work.
Commenting out works fine at first.
But after setting UBL it doesn't work.
(It can be done with the printer's dial, but it doesn't work with gcode.)
Initializing the EEPROM works fine again.
Is there any way to solve this?

// The size of the printable area
#define X_BED_SIZE 220
#define Y_BED_SIZE 220

// Travel limits (linear=mm, rotational=°) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 240
#define Y_MAX_POS 230 
#define Z_MAX_POS 250
//#define I_MIN_POS 0
//#define I_MAX_POS 50
//#define J_MIN_POS 0
//#define J_MAX_POS 50

// Max software endstops constrain movement within maximum coordinate bounds
#define MAX_SOFTWARE_ENDSTOPS
#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
  #define MAX_SOFTWARE_ENDSTOP_X
  //#define MAX_SOFTWARE_ENDSTOP_Y   <<======================
  #define MAX_SOFTWARE_ENDSTOP_Z
  #define MAX_SOFTWARE_ENDSTOP_I
  #define MAX_SOFTWARE_ENDSTOP_J

TEST GCODE

G28
G1 X0 Y235 F1000
M84