Thanks Brian
This seems to work look ok to you.. no problems down the road?
its in the PLC script
if (pluginState == 0) and (scr.IsLoaded()) then
PluginReg = 0
ProbeState = 0
local Ereg = mc.mcRegGetHandle(inst,"ESS/Connected")
local Preg = mc.mcRegGetHandle(inst,"PoKeys_40548/DeviceConnected")
if (mc.mcRegGetValue(Preg) == 1) then
pluginReg = mc.mcRegGetHandle(inst,"PoKeys_40548/ProbeStatus")
ProbeState = -4
elseif (mc.mcRegGetValue(Ereg) == 1) then
pluginReg = mc.mcRegGetHandle(inst,"ESS/Probing_State")
ProbeState = -1
end
pluginState = 1
end
Thanks gary