Page 1 of 1

Skimmer coding

Posted: Thu Aug 04, 2016 6:41 pm
by ecam
i have the following code
ReefAngel.Relay.Set(Box1_Port3,ReefAngel.Relay.Status(Port6)); // 11 Skimmer

i want to add a 5 min delay in this while keeping it connected to my return pump status. how would i do that ?

Re: Skimmer coding

Posted: Sun Aug 07, 2016 9:29 pm
by lnevo
if (ReefAngel.Relay.Status(Port6)) {
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}

Re: Skimmer coding

Posted: Tue Sep 06, 2016 2:23 pm
by madweazl
lnevo wrote:if (ReefAngel.Relay.Status(Port6)) {
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}
Is there a way to delay this after a power failure as well? Something with ReefAngel.Init(); ?

Re: Skimmer coding

Posted: Tue Sep 06, 2016 7:15 pm
by lnevo
Take a look at the function in my code, DelayedModeSkimmer I think its called, that does exactly what you want just change the float switch to be your relay status.

Re: Skimmer coding

Posted: Wed Sep 07, 2016 3:56 pm
by madweazl
lnevo wrote:Take a look at the function in my code, DelayedModeSkimmer I think its called, that does exactly what you want just change the float switch to be your relay status.
Duh, never thought about doing it that way. Thanks.