Homed state and physical endstops triggering
-
I am adding a small TOF sensor to get a "rough" (good estimate) of the current print bed in the given Z axis range to to add to my Z endstops in the max position. With it I will be able to to "see" if my print bed is near the hotend and I can directly use Z-Probing to get to the Z = 0.0 position with G30 (+bed.g) without first doing a round down of the print bed to reach the Z = max endstops and then move up again. But I guess that a direct G30 after board reset/power-on will not be allowed as the Z axis is not yet homed at this point in time?
Currently my homeZ.g macro will move the print bed down until the Z endstops trigger which seems (?) to set the object model variables move.axes[2].homed to TRUE and activate further movements accordingly.
My question: Can this "homed" state by set in software without using Z endstops or are the physical switches needed? I do know that there is a stall detection mode for axes movement but I do not want to use it (tested and it did sound terrible and btw I do not believe that it can be calibrated precisely for always the same Z coordinate reference when bumping into a mechanical end stop).
-
@hlwerschner said in Homed state and physical endstops triggering:
But I guess that a direct G30 after board reset/power-on will not be allowed as the Z axis is not yet homed at this point in time?
G30 doesn't care if the z axis is homed yet or not. It will be doing it's own homing anyway.
If you want to force an axis to being homed you can can use G92 Z## and manually set the position.