This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

grp.checkwrite
#1
Good evening,
I have a doubt, I always use checkwrite with the command feedback, here an example:

stato_int = grp.getvalue('cmd_1')
luce_1 = grp.getvalue('luce_1')

if luce_1 == true then
  grp.checkwrite( 'cmd_1' , 1 ,1, stato_int)
  else
  grp.checkwrite( 'cmd_1' , 0,1 , stato_int)
end

And this works fine. 
Problem, on a plant I don't know why, some time I found the command on but status off so I tought to pass the status but it doesn't work. Where m'I wrong?

stato_int = grp.getvalue('Status_cmd_1')
luce_1 = grp.getvalue('luce_1')

if luce_1 == true then
  grp.checkwrite( 'cmd_1' , 1 ,1, stato_int)
  else
  grp.checkwrite( 'cmd_1' , 0,1 , stato_int)
end

Best regards Cristian
Reply
#2
https://forum.logicmachine.net/showthrea...e#pid35746
Reply
#3
(04.11.2024, 15:57)admin Wrote: https://forum.logicmachine.net/showthrea...e#pid35746

Perfert, with the group address it works.... so I don't use the variable read with the grp.getvalue().
Thanks
Reply


Forum Jump: