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.

Scripting
#2
Assign a common tag to all source objects (1/1/1..1/1/49) and map an event script to this tag. This script changes the destination group address middle part from 1 to 2, divides the event value by 10 and writes to the destination group address.
Code:
addr = event.dst:gsub('/1/', '/2/')
value = event.getvalue() / 10

grp.checkwrite(addr, value)
Reply


Messages In This Thread
Scripting - by balatis - 10.01.2023, 08:49
RE: Scripting - by admin - 10.01.2023, 09:54
RE: Scripting - by balatis - 10.01.2023, 11:30
RE: Scripting - by Daniel - 10.01.2023, 11:32

Forum Jump: