<p>I am just trying to get to understand how to solve an X-axis off-plate problem. I am on Marlin 2.1.2.4 paired with Repetier.</p>
<p>What is currently happening to me is that when homing the axes, the nozzle is 1.6 cm off the plate on the X-axis.</p>
<p>When setting the home I have got to understand that basically either Repetier or Marlin intends the home position ( = 0) when and where the endstop is activated.</p>
<p>What would be ideal for me is to have a setting like define Z_AFTER_HOMING but for the X-axis. But I could not find anything like that.</p>
<p>I tried to edit <code>X_MIN</code> and <code>X_MAX</code> positions to obtain a result... but what apparently seems logical to me was not to the firmware and Repetier. Basically, by changing those settings I was telling Repetier that when the endstop is activated rather than read the coordinate there as 0, if <code>X_MAX</code> is 160 mm, it would read it as 160. When, instead, I need the X to physically move forward of 160 mm.</p>

CC BY-SA 4.0
2024-06-29T13:55:31.773Z
I think you need to read: "[How to center my prints on the build platform? (Re-calibrate homing offset)](https://3dprinting.stackexchange.com/questions/6375/how-to-center-my-prints-on-the-build-platform-re-calibrate-homing-offset)", this should give you the information you need to set the offset. You  need to define the offsets from the endstops.
0scar
CC BY-SA 4.0
2024-06-30T18:45:15.987Z
Thanks for the reading Oscar, I managed to calibrate the homing offset.
Flavio Recchia
CC BY-SA 4.0
2024-06-30T20:17:03.023Z
No problem, you are welcome, we will mark this as a duplicate if that question helped you. If you have a different solution, you could post it here.
0scar
<marlin><diy-3d-printer><homing><x-axis>
Define X_AFTER_HOMING for X axis?
Flavio Recchia
# Define X_AFTER_HOMING for X axis?

(Asked by: username_0 on 2024-06-29)

I am just trying to get to understand how to solve an X-axis off-plate problem. I am on Marlin 2.1.2.4 paired with Repetier.

What is currently happening to me is that when homing the axes, the nozzle is 1.6 cm off the plate on the X-axis.

When setting the home I have got to understand that basically either Repetier or Marlin intends the home position ( = 0) when and where the endstop is activated.

What would be ideal for me is to have a setting like define Z\_AFTER\_HOMING but for the X-axis. But I could not find anything like that.

I tried to edit `X_MIN` and `X_MAX` positions to obtain a result... but what apparently seems logical to me was not to the firmware and Repetier. Basically, by changing those settings I was telling Repetier that when the endstop is activated rather than read the coordinate there as 0, if `X_MAX` is 160 mm, it would read it as 160. When, instead, I need the X to physically move forward of 160 mm.

**Tags:** marlin, diy-3d-printer, homing, x-axis
> **Comments:**
> **username_1**: I think you need to read: "[How to center my prints on the build platform? (Re-calibrate homing offset)](https://3dprinting.stackexchange.com/questions/6375/how-to-center-my-prints-on-the-build-platform-re-calibrate-homing-offset)", this should give you the information you need to set the offset. You  need to define the offsets from the endstops.  
> **username_0**: Thanks for the reading Oscar, I managed to calibrate the homing offset.  
> **username_1**: No problem, you are welcome, we will mark this as a duplicate if that question helped you. If you have a different solution, you could post it here.  

---

## 0 answers

