Home Z axis where I want (BLTouch)

What is the problem?

Hello Guys,
I want to know if homing the Z axis with BLTouch is hardcoded or if I can move it wherever I want?

What did you already try to solve it?

I tried to play with G28 code, but it doesn't work with Z axis..
Even if G28 Z10 or Z100 or Z200, the homing is always in the center...

I don't know if Z_SAFE_HOMING can resolve the problem, but I'm pretty sure, it will not help.
I don't want to use G90 (absolute positioning) or G92 (set Z to current) because I want to home, not to place the current position at "Z" coordinates.

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

Printer:
Ender-3 v1

  • Raspberry, LCD, etc..
  • Dragon hot end.
  • BL Touch

Thanks for the help.

This sounds like Klipper.

You should consult:

Any parameter after G28, such as X, Y, or Z, tells the firmware which axis to home, not where on that axis. If you have a BLTouch (or CR Touch or ...) it will always home in the centre of the bed, that being assumed to be an "average" position. You can't change that in Marlin, at least not without re-compiling it. However, if you do compile your own version, you can either set #define MANUAL_X_HOME_POS, #define MANUAL_Y_HOME_POS, etc in Configuration.h. You'd also have to comment out two lines just a little further down, where it has:

#if ENABLED(Z_SAFE_HOMING)
      #define Z_SAFE_HOMING_X_POINT X_CENTER  // (mm) X point for Z homing
      #define Z_SAFE_HOMING_Y_POINT Y_CENTER  // (mm) Y point for Z homing
#endif

or simply edit those two lines. Don't disable Z_SAFE_HOMING because it does other things as well, such as ensuring a safe Z height when travelling.

Well, thanks guys. I'll try that.
I which we could have the options directly from softwares (gcode), not hardware. I don't like that I need to recompile, every time I want to move the Z Axis homing somewhere else.

I thought there was a better way to do it.

Thanks.

Again: With Klipper issues please consult the Klipper forum. It is getting off topic here.