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 ?
Skimmer coding
Re: Skimmer coding
if (ReefAngel.Relay.Status(Port6)) {
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}
Re: Skimmer coding
Is there a way to delay this after a power failure as well? Something with ReefAngel.Init(); ?lnevo wrote:if (ReefAngel.Relay.Status(Port6)) {
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}
Re: Skimmer coding
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
Duh, never thought about doing it that way. Thanks.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.