Daz,
Thank you so much for your help. A few more questions to clean this up a bit.
The LCD display is 4x20, so when I do the following code it does copy the DROs to the LCD, but copies a given DRO with too much precision meaning the following.
If the DRO on the display reads 12.2345, the LCD will ready 12.234567, so I need the display to be formatted similar to what you might do in a formatted Printf in C language.
The DRO uses %4.4f, so up to four leading digits and four trailing digits after the decimal point.
I would like to have the display read something like this and ensure there is no text after the coordinate. The LCD display is updated when it start with Pokeys information.
X: 23.1234
Y: 12.4567
Z: -2.5678
A: 0.0000
local inst = mc.mcGetInstance()
local Xcoords = scr.GetProperty("droCurrentX","Value")
local Ycoords = scr.GetProperty("droCurrentY","Value")
local Zcoords = scr.GetProperty("droCurrentZ","Value")
local Acoords = scr.GetProperty("droCurrentA","Value")
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 1"))
mc.mcRegSetValueString(hreg, tostring(Xcoords))
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 2"))
mc.mcRegSetValueString(hreg, tostring(Ycoords))
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 3"))
mc.mcRegSetValueString(hreg, tostring(Zcoords))
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line 4"))
mc.mcRegSetValueString(hreg, tostring(Acoords))
Really appreciate all you help, Daz your AWESOME.
