Conditional Port

Do you have a question on how to do something.
Ask in here.
Post Reply
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Conditional Port

Post 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?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Conditional Port

Post by lnevo »

ReefAngel.Relay.Set(Port7, ReefAngel.Relay.Status(Port1));

Same for Port3
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Conditional Port

Post 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)
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Conditional Port

Post by lnevo »

Add an ! to flip the behavior. That would go in front of the !ReefAngel.Relay.Status(Port1) like I typed it
Post Reply