Hello Guest it is May 17, 2021, 06:02:02 PM

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

0 Members and 1 Guest are viewing this topic.

Read DRO from Lua
« on: February 20, 2021, 05: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, 03: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

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