Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: KentCNC on February 20, 2021, 05:26:33 PM
-
How do you read a DRO using Lua? Not sure how to reference the DRO?
-
local TempZ = mc.mcAxisGetPos (inst, 2) -- Get work position of Z-Axis
local TempA = mc.mcAxisGetPos (inst, 3) -- Get work position of A-Axis
-
Kent,
This might help.
Use the version from 6_22_2020 towards the bottom.
https://www.machsupport.com/forum/index.php?topic=43260.msg279695#msg279695
Bill
-
Thank you for the replies. I have lots to learn, but slowly making progress.