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.

1 bit counter
#3
Create event script on your object which is triggering counter and change group address in this script to your counter object
Code:
counterObject = '1/1/1'
value = event.getvalue()

if value then
    value = grp.getvalue(counterObject)
    grp.write(counterObject, value +1)
end
------------------------------
Ctrl+F5
Reply


Messages In This Thread
1 bit counter - by Haug1 - 22.11.2024, 19:02
RE: 1 bit counter - by JRP - 25.11.2024, 11:51
RE: 1 bit counter - by Daniel - 25.11.2024, 11:58
RE: 1 bit counter - by Haug1 - 25.11.2024, 13:05
RE: 1 bit counter - by Daniel - 25.11.2024, 13:31

Forum Jump: