Meaning of move.axes[n].homed
-
The documentation simply states that the value of "move.axes[n].homed" reflects the "homed state" of that axis. Does this mean:
(a) At some time BEFORE inspecting this value, there was a gcode "G28 X" for n = 0 resp G28 Y or G28 Z done which caused a homing to be executed somwhow.
or
(b) the respectiv axis is "homed"
i.e. its current position == move.axes[n].min
I am a bit unsure what "homed" really means ... and how long it is valid. The only experience I have is that M999 or a gcde that stops axis motors, will set homed = false.
I have several macros where I assumed that homed = true implies that the current axis position = at the min axis position AND that the endstop switch would be triggered /when defined) for the min pos).
Is it perhaps better to check for the endstop state also? -
@hlwerschner it means that the firmware knows the position of that axis, because that axis has previously had a homing procedure run and the motor has not been turned off since then.
-
@dc42 Ah yes, that clarifies. So the position of that axis may be any value.
-
The location of an axis is found with this
move.axes[n].machinePositionReturns null if the position is unknown (machine not homed).