Skimmer coding

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

Posts: 229
Joined: Thu Nov 15, 2012 11:27 am
PostPosted: Thu Aug 04, 2016 6:41 pm
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
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Sun Aug 07, 2016 9:29 pm
if (ReefAngel.Relay.Status(Port6)) {
ReefAngel.Relay.DelayedOn(Box1_Port3, 5);
} else {
ReefAngel.Relay.Off(Box1_Port3);
}
User avatar
Posts: 42
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA
PostPosted: Tue Sep 06, 2016 2:23 pm
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
Posts: 5362
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Tue Sep 06, 2016 7:15 pm
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
Posts: 42
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA
PostPosted: Wed Sep 07, 2016 3:56 pm
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

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 1 guest

cron