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.

1bit to 1byte rely on which pushbutton.
#1
Hi.

I need to do a script that contains 5 GA 1bit object (push-buttons) and one 1byte value object 

Function:
When I push the first button it sends 'true' on the first GA and then need to be convert to a GA object value that shows 100%
Then I push the second button and it sends 'true' to the second GA and then need to change the same object value 75% instead of 100%

And so on with the other three pushbuttons..
Reply
#2
Create event script on each bit object with such script and change the values.
Code:
value = event.getvalue()
if value then
grp.checkwrite('1/1/1', 100)
end
------------------------------
Ctrl+F5
Reply
#3
Thanks, It is as simple as that!
Reply


Forum Jump: