Apex AFS with VO question

HeadStrongGrafx

Active Member
View Badges
Joined
Aug 27, 2015
Messages
254
Reaction score
129
Location
Gulfport, Ms
Rating - 0%
0   0   0
I’m having a hard time understanding some of the code.
The VO controlling pump and skimmer work perfect. My feeder comes on as programmed. However it’s only doing 1 drum rotation and I want it to do 2.
what is wrong with my code that’s keeping it from doing that 2nd drum rotation??

75C2FD8B-2946-4F4D-A626-C427FC67C8C0.jpeg
08BA6B78-806D-4924-984A-0FA9B3360CB3.jpeg
 
The AFS rotates one time each time it's turned on. The best thing to do is to configure the AFS with an OSC command to toggle it on and off repeatedly, but use the status of the virtual output to keep it turned off when not needed. However, it looks like you want the vFeed to remain on for a total of 9 minutes, so you'll need another virtual output to limit the number of rotations on the feeder:

[vAFS] -- new virtual output
Set OFF
If Time 10:30 to 10:33 Then ON
If Time 17:30 to 17:33 Then ON
If FeedA 000 Then ON

[vFeed]
Set OFF
If Output vAFS = ON Then ON
Defer 005:00 Then OFF

[Feeder_9_1]
Fallback OFF
OSC 001:00/001:00/000:00 Then ON
If Output vAFS = OFF Then OFF

[Pumps, Powerheads, Skimmer, etc.]
Set ON
If Output vFeed = ON Then OFF

This code would start the vAFS cycle at 10:30 and turn off at 10:34 (remember the If Time values are inclusive, so it stays On through 10:33:59). As soon as vFeed turns On, the pumps, powerheads, and skimmer will turn Off. One minute later, the AFS will do it's first rotation due to the OSC 001:00 initial delay. One minute later the AFS will turn Off and retract the drum. One minute later it will turn back On for a 2nd rotation. Finally, it will turn Off one minute later, then vFeed expires and the pumps will turn back on:

10:30 - vAFS turns ON, which causes vFeed to turn ON, pumps turn Off
10:31 - AFS first rotation, due to the 1 minute OSC initial delay
10:32 - AFS retracts
10:33 - AFS second rotation
10:34 - vAFS turns OFF, turning off the AFS. vFeed remains ON for 5 more minutes due to the Defer timer.
10:39 - vFeed turns OFF, the pumps turn back On

The whole process repeats again at 17:30.

Be sure to set your FeedA timer to 240 seconds (4 minutes) in the Misc Setup screen for the timing to be correct during manual feeding.

I'm not sure if you read my Apex Programming Tutorial series, but here's a link to it just in case: https://www.reef2reef.com/threads/neptune-apex-programming-tutorials.700483/

My Feed Cycle tutorial did not cover multiple rotations, but the code above will allow it and works right into the framework I presented in the tutorial.
 
The AFS rotates one time each time it's turned on. The best thing to do is to configure the AFS with an OSC command to toggle it on and off repeatedly, but use the status of the virtual output to keep it turned off when not needed. However, it looks like you want the vFeed to remain on for a total of 9 minutes, so you'll need another virtual output to limit the number of rotations on the feeder:

[vAFS] -- new virtual output
Set OFF
If Time 10:30 to 10:33 Then ON
If Time 17:30 to 17:33 Then ON
If FeedA 000 Then ON

[vFeed]
Set OFF
If Output vAFS = ON Then ON
Defer 005:00 Then OFF

[Feeder_9_1]
Fallback OFF
OSC 001:00/001:00/000:00 Then ON
If Output vAFS = OFF Then OFF

[Pumps, Powerheads, Skimmer, etc.]
Set ON
If Output vFeed = ON Then OFF

This code would start the vAFS cycle at 10:30 and turn off at 10:34 (remember the If Time values are inclusive, so it stays On through 10:33:59). As soon as vFeed turns On, the pumps, powerheads, and skimmer will turn Off. One minute later, the AFS will do it's first rotation due to the OSC 001:00 initial delay. One minute later the AFS will turn Off and retract the drum. One minute later it will turn back On for a 2nd rotation. Finally, it will turn Off one minute later, then vFeed expires and the pumps will turn back on:

10:30 - vAFS turns ON, which causes vFeed to turn ON, pumps turn Off
10:31 - AFS first rotation, due to the 1 minute OSC initial delay
10:32 - AFS retracts
10:33 - AFS second rotation
10:34 - vAFS turns OFF, turning off the AFS. vFeed remains ON for 5 more minutes due to the Defer timer.
10:39 - vFeed turns OFF, the pumps turn back On

The whole process repeats again at 17:30.

Be sure to set your FeedA timer to 240 seconds (4 minutes) in the Misc Setup screen for the timing to be correct during manual feeding.

I'm not sure if you read my Apex Programming Tutorial series, but here's a link to it just in case: https://www.reef2reef.com/threads/neptune-apex-programming-tutorials.700483/

My Feed Cycle tutorial did not cover multiple rotations, but the code above will allow it and works right into the framework I presented in the tutorial.

Thank so much, I used your article to set everything up and was very helpful. Think it was your example for Feed D
Basically what I want is at 10:30 am my AFS to come on. Have 1-2min delay so my Return has enough time to settle the reverse suction back into sump. Obviously skimmer off first to avoid higher water level. Then 2 drum rotations, then a 1-2 min delay for fish to have time to eat before my return pump kicks back on then a few mins later Skimmer. then do it all again at 5:30PM
Im a Graphics guy not a Programmer LOL
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top