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


Messages In This Thread
grp.checkwrite - by CristianAgata - 04.11.2024, 15:55
RE: grp.checkwrite - by admin - 04.11.2024, 15:57
RE: grp.checkwrite - by CristianAgata - 04.11.2024, 16:08

Forum Jump: