Page 1 of 1

Conditional Port

Posted: Sat Jun 25, 2016 4:52 pm
by ecam
I want to set Port 7 (UV) and Port 3 (skinmmer) based on Port1 (return pmp). If on then all on if off then all off
Any thoughts?

Re: Conditional Port

Posted: Sat Jun 25, 2016 5:33 pm
by lnevo
ReefAngel.Relay.Set(Port7, ReefAngel.Relay.Status(Port1));

Same for Port3

Re: Conditional Port

Posted: Sat Jun 25, 2016 5:54 pm
by ecam
Thanks bud.... if i want to be the opp what do i do. Basically if my moonlights (port8 ) on off I want the fuge light on (5)...


Also... i want to setup a virtual outlet.... if the status is on... then all light ports are off (4,6,7)

Re: Conditional Port

Posted: Sat Jun 25, 2016 6:42 pm
by lnevo
Add an ! to flip the behavior. That would go in front of the !ReefAngel.Relay.Status(Port1) like I typed it