04.11.2024, 15:55
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
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