Apex AFS stopped working

uscgbeachbum

New member
I recently moved some fish into my main tank so I updated my code for my AFS. Previously, I only set it to spin once at 6pm on M, W, and F to provide some food for my shrimp. Before the change I hadn't had any problems. I have my main pump and skimmer in sync as well to turn off my circulation and skimmer (see http://reefcentral.com/forums/showthread.php?t=2385472 for an explanation on my code to keep everything in sync).

Original Code
VirtualFeed
Set OFF
If Time 18:00 to 18:01 Then ON
If DoW S-T-T-S Then OFF
If FeedA 000 Then ON

Feeder
Set OFF
If Outlet VirtualFeed = ON Then ON
Defer 002:00 Then ON

New Code
VirtualFeed
Set OFF
If Time 18:00 to 18:01 Then ON
If FeedA 000 Then ON

Feeder
Set OFF
If Outlet VirtualFeed = ON Then ON
Defer 002:00 Then ON

Any ideas why it stopped working? I can manually run the AFS, but why won't it run with the code?

Thanks
 
What is your Feed A duration?
I don't believe you need the defer statement. The time period you have of it being on is only 1 minute while the feeder needs it to be active for more than two minutes before it will turn on. If the defer statement is needed for other reasons, increase your 18:01 time to 18:03 and then it should kick on after 18:02.
 
RussM, I'm not sure what that'll do, but I'll give that a shot. I'm going to go with Defer 001:50 Then ON.

The virtual is on for 2 minutes exactly. The AFS outlet mimics the state of the virtual feed outlet, but with a 2-minute defer. So, the virtual outlet is turning off the instant you want the AFS to turn on.

Cutting the AFS defer then on time by a couple of seconds (even 1s would work) ensures that the AFS activates before the VO turn off.
 
What is your Feed A duration?
I don't believe you need the defer statement. The time period you have of it being on is only 1 minute while the feeder needs it to be active for more than two minutes before it will turn on. If the defer statement is needed for other reasons, increase your 18:01 time to 18:03 and then it should kick on after 18:02.
If Time 18:00 to 18:01 Then ON is not one minute long - it is two minutes.
 
If Time 18:00 to 18:01 Then ON is not one minute long - it is two minutes.

My bad - I'm so used to my timing of Apex functions being in minutes and seconds where there is no confusion. Thanks for the correction and sorry for any confusion.

uscgbeachbum - did you get it working?
 
Back
Top