25.11.2024, 13:05
(25.11.2024, 11:58)Daniel Wrote: 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
Perfect. Thanks.
Does it have memory on this in case of a reboot? Or will it then start at 0 again?