Beginner Topic Neptune Apex Programming Tutorials Part 7, Feed Cycles

SuncrestReef

Valuable Member
View Badges
Joined
Jan 18, 2018
Messages
2,317
Reaction score
5,247
Location
Oregon
I am sure this is a dumb question, but should this be what the AFS code looks like now? Does the previous Advanced coding from the AFS get deleted?

Is it this?

Fallback OFF
Set OFF
If Output vFeed = ON Then ON
Defer 001:00 Then ON
OSC 000:00/000:30/000:30 Then ON
If Time 00:00 To 07:00 Then OFF
If Time 7:02 To 13:00 Then OFF
If Time 13:02 To 00:00 Then OFF
If FeedA 000 Then ON

Or this?
Fallback OFF
Set OFF
If Output vFeed = ON Then ON
Defer 001:00 Then ON

If you are wanting to use the vFeed method from the tutorial, then you should remove the OSC and If Time commands from the AFS, as you have shown in your 2nd example:

Fallback OFF
Set OFF
If Output vFeed = ON Then ON
Defer 001:00 Then ON

Same question on my wav pumps. Do I replace the existing wav code with this code?
For the WAV, just append this line to the existing code (if any) under the Advanced tab of the WAV:

If Output vFeed = ON Then OFF

Any code in the Advanced tab simply overrides the normal graphical schedule of the WAV.
 

jonny19ireland

Member
View Badges
Joined
Mar 25, 2017
Messages
24
Reaction score
8
Virtual Output vFeed:

Set OFF
If Time 08:00 to 08:02 Then ON
If Time 17:00 to 17:02 Then ON
Defer 005:00 Then OFF

Hi - this tutorial has really helped me. I'm struggling to understand the purpose of the DEFER line in the virtual output.
 

SuncrestReef

Valuable Member
View Badges
Joined
Jan 18, 2018
Messages
2,317
Reaction score
5,247
Location
Oregon
Hi - this tutorial has really helped me. I'm struggling to understand the purpose of the DEFER line in the virtual output.
Yes, the Defer on the vFeed output serves no real purpose. I just extends the vFeed ON time for 5 minutes. It could have been simplified by just adjusting the If Time commands to achieve the same result:

Set OFF
If Time 08:00 to 08:07 Then ON
If Time 17:00 to 17:07 Then ON

The end result either way is a 8 minute feed cycle where other devices remain off until the timer expires.
 

jonny19ireland

Member
View Badges
Joined
Mar 25, 2017
Messages
24
Reaction score
8
Yes, the Defer on the vFeed output serves no real purpose. I just extends the vFeed ON time for 5 minutes. It could have been simplified by just adjusting the If Time commands to achieve the same result:

Set OFF
If Time 08:00 to 08:07 Then ON
If Time 17:00 to 17:07 Then ON

The end result either way is a 8 minute feed cycle where other devices remain off until the timer expires.

Perfect! I understand now. Thanks so much!
 

canadianeh

Well-Known Member
View Badges
Joined
Feb 28, 2017
Messages
956
Reaction score
520
I am confused with the feeding programming under the skimmer section.

You said to delay 5 minutes then OFF to avoid overflow of the skimmer? But when feeding is on, the pump is reduced to 1% so the water level in the sump is already high to begin with and will cause overflow of the skimmer. Why not turning off the skimmer without delay, and then turn it on with 5 minutes delay which is after the 5 minutes feed is completed and the sump level is back down to normal operating level?
 

rkpetersen

walked the sand with the crustaceans
View Badges
Joined
Sep 14, 2017
Messages
4,097
Reaction score
7,257
Location
Near Seattle
Why not turning off the skimmer without delay, and then turn it on with 5 minutes delay which is after the 5 minutes feed is completed and the sump level is back down to normal operating level?
That's exactly how he has it set up. vFeed output turning ON at the specific times turns off the pump and skimmer immediately. 5 minutes later, the pump starts back up, and 5 minutes after that, the skimmer starts back up.
 

canadianeh

Well-Known Member
View Badges
Joined
Feb 28, 2017
Messages
956
Reaction score
520
That's exactly how he has it set up. vFeed output turning ON at the specific times turns off the pump and skimmer immediately. 5 minutes later, the pump starts back up, and 5 minutes after that, the skimmer starts back up.
But that’s is you use AFs and vFeed. I was referring to the following paragraph. Is it not telling the skimmer to wait for 5 minutes then turn the skimmer off?


For the skimmer, I need it to wait for the sump water level to return to normal after the return pump has been off. This is achieved by using the delay timer:

If FeedA 005 Then OFF
If FeedB 005 Then OFF
If FeedC 005 Then OFF
If FeedD 005 Then OFF

added @SuncrestReef
 
Last edited:

rkpetersen

walked the sand with the crustaceans
View Badges
Joined
Sep 14, 2017
Messages
4,097
Reaction score
7,257
Location
Near Seattle
But that’s is you use AFs and vFeed. I was referring to the following paragraph. Is it not telling the skimmer to wait for 5 minutes then turn the skimmer off?


For the skimmer, I need it to wait for the sump water level to return to normal after the return pump has been off. This is achieved by using the delay timer:

If FeedA 005 Then OFF
If FeedB 005 Then OFF
If FeedC 005 Then OFF
If FeedD 005 Then OFF

added @SuncrestReef
The 005 in those lines means
'When the FeedX time expires, wait an additional 5 minutes before turning the device back on.'

It's an additional delay. Pretty much put there with protein skimmers in mind.

One thing to note:
If you Cancel a Feed timer before it expires on its own, that additional delay will also be cancelled.
So one could easily have a skimmer overflow if you cancel a feed timer, unless you place a separate Defer in your skimmer code to keep it from turning on immediately.
Personally, that's why I don't use these numbers at all, I just set them to 000 and put the appropriate Defers where I need them (sometimes requiring additional VOs.)
 

canadianeh

Well-Known Member
View Badges
Joined
Feb 28, 2017
Messages
956
Reaction score
520
The 005 in those lines means
'When the FeedX time expires, wait an additional 5 minutes before turning the device back on.'

It's an additional delay. Pretty much put there with protein skimmers in mind.

One thing to note:
If you Cancel a Feed timer before it expires on its own, that additional delay will also be cancelled.
So one could easily have a skimmer overflow if you cancel a feed timer, unless you place a separate Defer in your skimmer code to keep it from turning on immediately.
Personally, that's why I don't use these numbers at all, I just set them to 000 and put the appropriate Defers where I need them (sometimes requiring additional VOs.)
I put this code on my skimmer. Is this okay? Is there more efficient way to write it?

If FeedA 000 Then OFF
Defer 005:00 Then ON
If FeedB 000 Then OFF
Defer 005:00 Then ON
 

rkpetersen

walked the sand with the crustaceans
View Badges
Joined
Sep 14, 2017
Messages
4,097
Reaction score
7,257
Location
Near Seattle
I put this code on my skimmer. Is this okay? Is there more efficient way to write it?

If FeedA 000 Then OFF
Defer 005:00 Then ON
If FeedB 000 Then OFF
Defer 005:00 Then ON
You only need one Defer statement (of each type, ON or OFF) per code stack, and it can be put anywhere.
It applies to all of the code; any time the skimmer goes from OFF to ON in AUTO mode, there will be a delay of 5 min.
As another example, here's the code for one of my skimmers:

Fallback ON
Set ON
Defer 001:30 Then ON
If FeedA 000 Then OFF
If FeedB 000 Then OFF
If FeedC 000 Then OFF
If FeedD 000 Then OFF
If Output SkimCupFull = ON Then OFF
If Output ReturnPump = OFF Then OFF
If Output ReturnFail = ON Then OFF
If Output LeakDetected = ON Then OFF
 
Last edited:

Complaining about the cost of aquarium equipment when you pay large sums of money for coral & fish..

  • is Fair

    Votes: 237 52.7%
  • is Not Fair

    Votes: 182 40.4%
  • Other (please explain)

    Votes: 31 6.9%

Online statistics

Members online
799
Guests online
2,473
Total visitors
3,272
Aquarium Specialty
Top