Conditional Port

Do you have a question on how to do something.
Ask in here.

Posts: 229
Joined: Thu Nov 15, 2012 11:27 am
PostPosted: Sat Jun 25, 2016 4:52 pm
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
Posts: 5420
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sat Jun 25, 2016 5:33 pm
ReefAngel.Relay.Set(Port7, ReefAngel.Relay.Status(Port1));

Same for Port3

Posts: 229
Joined: Thu Nov 15, 2012 11:27 am
PostPosted: Sat Jun 25, 2016 5:54 pm
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
Posts: 5420
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sat Jun 25, 2016 6:42 pm
Add an ! to flip the behavior. That would go in front of the !ReefAngel.Relay.Status(Port1) like I typed it

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 6 guests

cron