AFS programming

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

JurisHP

Active Member
View Badges
Joined
Nov 15, 2008
Messages
183
Reaction score
13
Location
Philadelphia, PA
Rating - 0%
0   0   0
Need help with programming my AFS. Right now, the programming shuts off my main pump simultaneously with starting the AFS. I’d like to add a line that shuts down the pump and 5 minutes later the AFS activates. Here is the present programming....
IMG_4016.PNG
IMG_4017.PNG
IMG_4017.PNG
IMG_4016.PNG
IMG_4017.PNG
 
Last edited:

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,214
Location
Oregon
Rating - 0%
0   0   0
I can't figure-out how to do what I'd like to do, even with your great tutorial.

You didn’t specify how long you want the pump to remain Off after feeding, so I took the liberty of assuming 5 minutes. If that’s OK, then this code will do what you want:

vFeed (virtual output)
———————
Set OFF
If Time 08:00 to 08:09 Then ON
If Time 19:00 to 19:09 Then ON
If FeedA 005 Then ON

Pump
———————
Fallback ON
Set ON
If Output vFeed = ON Then OFF
If Output Alert_Leak = ON Then OFF

Feeder_10_1
———————
Set OFF
If Output vFeed = ON Then ON
Defer 005:00 Then ON

Here’s the sequence of events:

08:00 vFeed turns ON, Pump turns OFF
08:05 Feeder turns ON and rotates one time
08:10 vFeed turns OFF, Feeder turns OFF, Pump turns ON

(remember that the If Time values are inclusive, so 08:00 to 08:09 means turn ON at 08:00, and OFF at 08:10)

The same sequence repeats at 19:00.
 
OP
OP
J

JurisHP

Active Member
View Badges
Joined
Nov 15, 2008
Messages
183
Reaction score
13
Location
Philadelphia, PA
Rating - 0%
0   0   0
You didn’t specify how long you want the pump to remain Off after feeding, so I took the liberty of assuming 5 minutes. If that’s OK, then this code will do what you want:

vFeed (virtual output)
———————
Set OFF
If Time 08:00 to 08:09 Then ON
If Time 19:00 to 19:09 Then ON
If FeedA 005 Then ON

Pump
———————
Fallback ON
Set ON
If Output vFeed = ON Then OFF
If Output Alert_Leak = ON Then OFF

Feeder_10_1
———————
Set OFF
If Output vFeed = ON Then ON
Defer 005:00 Then ON

Here’s the sequence of events:

08:00 vFeed turns ON, Pump turns OFF
08:05 Feeder turns ON and rotates one time
08:10 vFeed turns OFF, Feeder turns OFF, Pump turns ON

(remember that the If Time values are inclusive, so 08:00 to 08:09 means turn ON at 08:00, and OFF at 08:10)

The same sequence repeats at 19:00.
Nothing happened at 7:00....not sure why.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,214
Location
Oregon
Rating - 0%
0   0   0
Nothing happened at 7:00....not sure why.

When you say 7:00, I assume you mean 19:00?

Are each of the outputs (vFeed, Pump, Feeder) set to AUTO on your dashboard?

You should also enable logging on each of those outputs so you can review the logs later to confirm operation.
 
Back
Top