help please.
I am trying to update the Global Registers with the following code
-- -----------------------------------------------------------------
function SetMillPark()
  local inst = mc.mcGetInstance() 	
  scr.SetProperty("droMillParkX", "Value", tostring(mc.mcAxisGetMachinePos(inst, mc.X_AXIS)))
  scr.SetProperty("droMillParkY", "Value", tostring(mc.mcAxisGetMachinePos(inst, mc.Y_AXIS)))
  local MillParkXReg = mc.mcRegGetHandle(inst, 'gRegs0/MillParkX') 
  mcRegSetUserData(MillParkXReg, tostring(mc.mcAxisGetMachinePos(inst, mc.X_AXIS)))
  local MillParkYReg = mc.mcRegGetHandle(inst, 'gRegs0/MillParkY') 
  mcRegSetUserData(MillParkYReg, tostring(mc.mcAxisGetMachinePos(inst, mc.Y_AXIS)))
end -- function end
-- -----------------------------------------------------------------
SetMillPark()
and it is not updating the Global Register for mill park X and Y values.
Thanks
Jim