Welcome! Log In Create A New Profile

Advanced

Autolevel change

Posted by Paride 
Autolevel change
June 06, 2023 01:22PM
Hello everyone, thanks to the staff for including me in this wonderful group and world of 3d.
I wanted to ask you how to intervene on the firmware to change the self-leveling point of the G28. My printer giving the G28 command having the BLTOUCH does the self-leveling in the center of the plate, I wanted to ask where can I modify the parameters and do the self-leveling in another point of X and y?
Thanks to all who will answer me.
Paride
Re: Autolevel change
June 06, 2023 07:29PM
This is Z_SAFE_HOMING

/**
 * Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
 *
 * - Moves the Z probe (or nozzle) to a defined XY point before Z homing.
 * - Allows Z homing only when XY positions are known and trusted.
 * - If stepper drivers sleep, XY homing may be required again before Z homing.
 */
//#define Z_SAFE_HOMING

#if ENABLED(Z_SAFE_HOMING)
  #define Z_SAFE_HOMING_X_POINT X_CENTER  // X point for Z homing
  #define Z_SAFE_HOMING_Y_POINT Y_CENTER  // Y point for Z homing
  //#define Z_SAFE_HOMING_POINT_ABSOLUTE  // Ignore home offsets (M206) for Z homing position
#endif

X_CENTER and Y_CENTER are macros to take your bed size and divide it by 2.

Replace these with the point you want.
Re: Autolevel change
June 07, 2023 09:28AM
well....
#define Z_SAFE_HOMING_X_POINT X_CENTER // X point for Z homing
#define Z_SAFE_HOMING_Y_POINT Y_CENTER

esemple:
#define Z_SAFE_HOMING_X_POINT 100 // X point for Z homing
#define Z_SAFE_HOMING_Y_POINT 150

that's ok?
Re: Autolevel change
June 07, 2023 03:39PM
If that is what you want, yes.
Sorry, only registered users may post in this forum.

Click here to login