Hi all
Wondering if there is a way to set a port so it will activate according to lights. So when a certain channel is above 0 a certain port is activated.
Port switch on 0 dimming
-
- Posts: 80
- Joined: Thu Nov 05, 2015 2:45 pm
- Location: Australia
Port switch on 0 dimming
Last edited by tyson_mitchell_88 on Mon Jan 25, 2016 11:08 am, edited 1 time in total.
Re: Port control
Do you mean a dimming channel?
If so, something like this:
Or a simplified version:
If not the actinic channel, change it to GetDaylightValue() for daylight or GetChannelValue(0) for channel 0 of dimming expansion module.
If so, something like this:
Code: Select all
if (ReefAngel.PWM.GetActinicValue()>0)
ReefAngel.Relay.On(Port1);
else
ReefAngel.Relay.Off(Port1);
Code: Select all
ReefAngel.Relay.Set(Port1,ReefAngel.PWM.GetActinicValue()>0);
Roberto.
-
- Posts: 80
- Joined: Thu Nov 05, 2015 2:45 pm
- Location: Australia
Re: Port control
Sweet I will have a play with that. Thanks mate
-
- Posts: 80
- Joined: Thu Nov 05, 2015 2:45 pm
- Location: Australia
Re: Port control
Worked well thanks Roberto.
How would I set up a port so it's usually off, though if I manually activate it, through portal or app, it works to ATOHigh.
How would I set up a port so it's usually off, though if I manually activate it, through portal or app, it works to ATOHigh.
Re: Port control
What do you mean ATOHigh.
That code has nothing to do with ATOHigh.
It will be off when Actinic channel is 0 and on for anything greater than 0. That's that the request was for.
Not sure what you mean as usually off.
That code has nothing to do with ATOHigh.
It will be off when Actinic channel is 0 and on for anything greater than 0. That's that the request was for.
Not sure what you mean as usually off.
Roberto.
-
- Posts: 80
- Joined: Thu Nov 05, 2015 2:45 pm
- Location: Australia
Re: Port control
This is for another job on another port mate. Trying to set up some manual water change.
-
- Posts: 80
- Joined: Thu Nov 05, 2015 2:45 pm
- Location: Australia
Re: Port control
ok mate sorry