12.09.2016, 15:03
(This post was last modified: 12.09.2016, 15:06 by Erwin van der Zwart.)
Hi Claudio,
You can put a event based script on the 1 byte output and write a bit output to another object
BR,
Erwin van der Zwart
You can put a event based script on the 1 byte output and write a bit output to another object
Code:
output = event.getvalue()
if output > 0 then
-- Get value of object to avoid write true on each 1-100 value
bitvalue = grp.getvalue('yourbitobject')
if bitvalue == false then
grp.write('yourbitobject', true)
end
else
-- Get value of object to avoid write false on each 0 value
bitvalue = grp.getvalue('yourbitobject')
if bitvalue == true then
grp.write('yourbitobject', false)
end
end
BR,
Erwin van der Zwart