Skimmer coding

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

Skimmer coding

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

Re: Skimmer coding

Post by lnevo »

if (ReefAngel.Relay.Status(Port6)) {
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}
User avatar
madweazl
Posts: 44
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA

Re: Skimmer coding

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

Re: Skimmer coding

Post 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.
User avatar
madweazl
Posts: 44
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA

Re: Skimmer coding

Post 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.
Image
Post Reply