I actually replaced the code with the following, which just added one line, which seemed to work but it broke other things.
function YPenLCD(Axis, Line)
local CurPos = scr.GetProperty("droCurrent" .. tostring(Axis), "Value")
CurPos = string.format("%4.4f", CurPos)
local hreg = mc.mcRegGetHandle(inst, string.format("PoKeys_32062/LCD Line " .. tostring(Line)))
mc.mcRegSetValueString(hreg, string.format(tostring(Axis) .. ": " .. tostring(CurPos) .. " "))
end
Now if I try and load a gcode file and start it seems to go and then will just get hung. Z also updated very slow, very strange.
Russ