Hello Guest it is March 04, 2026, 03:16:51 PM

Author Topic: Read DRO from Lua  (Read 4435 times)

0 Members and 1 Guest are viewing this topic.

Read DRO from Lua
« on: February 20, 2021, 04:26:33 PM »
How do you read a DRO using Lua? Not sure how to reference the DRO?
Re: Read DRO from Lua
« Reply #1 on: February 21, 2021, 02:13:26 PM »
   
   local TempZ = mc.mcAxisGetPos (inst, 2) -- Get work position of Z-Axis
   local TempA = mc.mcAxisGetPos (inst, 3) -- Get work position of A-Axis

Offline Bill_O

*
  •  608 608
Re: Read DRO from Lua
« Reply #2 on: February 22, 2021, 07:57:07 AM »
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
Re: Read DRO from Lua
« Reply #3 on: February 22, 2021, 09:40:51 AM »
Thank you for the replies. I have lots to learn, but slowly making progress.