22.02.2019, 21:32
(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