Hi Guys, this is a follow on and a broader question to scripting gurus....
I have a modbus connection, and i am trying to update the register from the cmd rpm but i am having no luck. Joeaverage has been helping me but i am still not successful, would much appreciate dazthegaz or anyone else taking a look at this for me please?
The spindle specs
12000rpm
register values 100% = 10000 etc
local registerHandle=mc.mcRegGetHandle(mInst,"modbus0/wrtvfdspeed")
local commandedSpeed=mc.mcSpindleGetCommandRPM(mInst)
local registerValue=(commandedSpeed/12000)*10000
mc.mcRegSetValue(registerHandle,registerValue)
this does not seem to be writing the register as expected, any help appreciated!