@GT1Za said in Y bed and Endstop offset?:
X0 Y0 should be the front left of my bed. I have made a mark 10mm in from each side given that the bed is actually 510 by 510.
If the bed is 510 x 510 shouldn't the marks be made at 5mm in from each edge? 510 - (10 + 10) is 490.
My X endstop on the X actually hits at X5 so it recording a position of X5 would make it 10 which is correct mathematically, but will mean that everything actually prints 5mm to the left.
You can adjust your axis min/max values to account for actual endstop position but there is another way.
For this example assume X min is set to 0, X max is set to 500 and the endstop sensor triggers at X = 5.
G91 ; relative moves G1 H1 X-520 Faaa ; move toward the endstop at a "fast" speed (sets X position to X min) G1 X20 ; back off enough so endstop is not triggered G1 H1 X-30 Fbbb ; move again toward the endstop at a "slow" speed to improve accuracy G90 ; absolute moves G92 X5 ; set the X position to the actual position where the endstop triggeredFrederick