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.

Change in status - Tagged objects
#2
Hi Mr. D,

Try one of the 2 scripts below : (put one of them in a event based script linked to the tag 'alarm')

Code:
-- Without input value check
if grp.getvalue('2/2/2') == true then
  grp.write('1/1/1', 50) -- or 128
end
Code:
-- With input value check on event value
if grp.getvalue(event.dst) == true then
 if grp.getvalue('2/2/2') == true then
   grp.write('1/1/1', 50) -- or 128
 end
end

BR,

Erwin
Reply


Messages In This Thread
Change in status - Tagged objects - by Mr.D - 06.04.2017, 20:27
RE: Change in status - Tagged objects - by Erwin van der Zwart - 06.04.2017, 21:11

Forum Jump: