M.axis

M.axis.get_machine_position()

 

Description: Returns the machine positions for up to five axes.

Syntax: local pos = M.axis.get_machine_position()

Input: (none)
Returns: table (e.g., { X=..., Y=..., Z=..., A=..., B=..., C=... } where present)

Supported in MASSO software v5.13 & API Version: 1.0.0

Example:

local p = M.axis.get_machine_position()
print(string.format("X=%.3f Y=%.3f Z=%.3f", p.X or 0, p.Y or 0, p.Z or 0))