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.

toggle
#5
(22.02.2019, 19:44)gtsamis Wrote:
(20.02.2019, 20:20)balatis Wrote: hi
i have a signal from a  proximity o-1 state i would like every circle  (o-1) to have a toogle state and second this toggle i would like to is update from status object of the load .
thanks in advance

Try this..

Code:
--Get proximity value
value=event.getvalue()

-- 'Light Feedback' is the address/name of the actual state of the load
-- 'Light OnOff' is the address/name of the actual load  
if value then
  lightFB = grp.getvalue('Light Feedback')
  grp.write('Light OnOff', not lightFB)
end

Ιt it work for one cycle only
Reply


Messages In This Thread
toggle - by balatis - 20.02.2019, 20:20
RE: toggle - by admin - 22.02.2019, 10:07
RE: toggle - by balatis - 22.02.2019, 14:19
RE: toggle - by gtsamis - 22.02.2019, 19:44
RE: toggle - by balatis - 22.02.2019, 21:32
RE: toggle - by gtsamis - 22.02.2019, 22:09
RE: toggle - by balatis - 23.02.2019, 14:02

Forum Jump: