M.axis
M.axis reads the machine position of each axis.
Applies to
MASSO G3 and MASSO G3 Touch
Available from
Software 5.13, API 1.0.0
Write scripts in
local pos = M.axis.get_machine_position()
Returns the machine position of each configured axis.
Input: none. Returns: table, e.g. { X=..., Y=..., Z=..., A=..., B=..., C=... }. Only axes on the machine are included, so use or 0 for axes that may be missing.
local p = M.axis.get_machine_position()
M.gui.show_message("Machine Position", string.format("X=%.3f Y=%.3f Z=%.3f", p.X or 0, p.Y or 0, p.Z or 0))Related