Programming Apex to not alarm when feeding

waynel

Active Member
View Badges
Joined
May 22, 2020
Messages
264
Reaction score
266
Location
Kentucky
Rating - 0%
0   0   0
I'm trying to adjust my Apex programs to ignore the high water alarm when feeding, but I'm still getting the alert during each feed cycle.. I'm using a COR20 return pump, Neptune autofeeder set to feed 4 times per day. This is what I have currently. If you see anything I can better, let me know.

vdelaytimer - virtual output
set off
if output vfeed = on then off
defer 005:00 then off


alert_atk_hi - virtual output
set off
if atohi closed then on
if feeda 000 then off
if feedb 000 then off
if feedc 000 then off
if output cor_8_1 percent < 90 then off
if output vdelaytimer = on then off


vfeed - virtual output
set off
if time 11:00 to 11:02 then on
if time 13:00 to 13:02 then on
if time 15:00 to 15:02 then on
if time 17:00 to 17:02 then on
defer 005:00 then off


feeder_7_1
fallback off
set off
if output vfeed=on then on
defer 001:00 then on

cor_8_1
fallback on
tdata ...
if feeda 010 then 3
if feedb 010 then 3
if feedc 020 then 3
if output vfeed = on then 3


skimmer_5_5
fallback off
set on
if output vfeed=on then off
if feeda 000 then off
if feedb 000 then off
if feedc 000 then off
if output cor_8_1 percent < 90 then off
if output vleak = on then off
defer 005:00 then on

emailalm_i5
set off
if error atkout_3_1 then on
if output alert_atk_hi = on then on
if atolvl open then on
if lk11_1 closed then on
if lk11_2 closed then on
if output vleak = on then on
if error cor_8_1 then on


vleak - virtual output
set off
if lk11_1 closed then on
if lk11_2 closed then on
defer 000:05 then on
when on > 001:00 then on
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,216
Location
Oregon
Rating - 0%
0   0   0
Your vdelaytimer output never actually turns on:

vdelaytimer - virtual output
set off
if output vfeed = on then off
defer 005:00 then off

I’m guessing you meant to use:

If Output vfeed = ON Then ON
 
OP
OP
waynel

waynel

Active Member
View Badges
Joined
May 22, 2020
Messages
264
Reaction score
266
Location
Kentucky
Rating - 0%
0   0   0
Your vdelaytimer output never actually turns on:

vdelaytimer - virtual output
set off
if output vfeed = on then off
defer 005:00 then off

I’m guessing you meant to use:

If Output vfeed = ON Then ON
Yes, thank you. I'll fix that and test.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,216
Location
Oregon
Rating - 0%
0   0   0
You can also greatly simplify your code. Since many of the outputs list the Feed cycles, but then also check the speed of the COR, you could simply control everything based on the COR output rather than having everything also check the Feed cycles. And since the water level is primarily controlled by the COR, that would be the better choice to trigger your vdelaytimer.

Additionally, there's no need to use Defer on your vfeed output since it only uses If Time commands. Just increase the end time by 5 minutes for each time rather than including a Defer delay. I'm guessing you got this code from my Apex Feed Cycles tutorial where it does include the Defer. I wanted to edit that article to correct it, but I'm unable to.

[vdelaytimer]
Set OFF
If Output cor_8_1 Percent < 90 Then ON
Defer 005:00 Then OFF

[alert_atk_hi]
Set OFF
If atohi CLOSED Then ON
If Output cor_8_1 Percent < 90 Then OFF
If Output vdelaytimer = ON then OFF

[vfeed]
Set OFF
If Time 11:00 to 11:07 Then ON
If Time 13:00 to 13:07 Then ON
If Time 15:00 to 15:07 Then ON
If Time 17:00 to 17:07 Then ON

[feeder_7_1]
Fallback OFF
Set OFF
If Output vfeed = ON then ON
Defer 001:00 Then ON

[cor_8_1]
Fallback ON
tdata ...
If Feeda 010 Then 3
If Feedb 010 Then 3
If Feedc 020 Then 3
If Output vfeed = ON Then 3

skimmer_5_5
Fallback OFF
Set ON
If Output cor_8_1 Percent < 90 Then OFF
If Output vleak = ON Then OFF
Defer 005:00 Then ON

[emailalm_i5]
Set OFF
if Error atkout_3_1 Then ON
If Output alert_atk_hi = ON Then ON
if atolvl OPEN Then ON
if lk11_1 CLOSED Then ON
if lk11_2 CLOSED Then ON
If Output vleak = ON Then ON
if Error cor_8_1 Then ON
 
OP
OP
waynel

waynel

Active Member
View Badges
Joined
May 22, 2020
Messages
264
Reaction score
266
Location
Kentucky
Rating - 0%
0   0   0
You can also greatly simplify your code. Since many of the outputs list the Feed cycles, but then also check the speed of the COR, you could simply control everything based on the COR output rather than having everything also check the Feed cycles. And since the water level is primarily controlled by the COR, that would be the better choice to trigger your vdelaytimer.

Additionally, there's no need to use Defer on your vfeed output since it only uses If Time commands. Just increase the end time by 5 minutes for each time rather than including a Defer delay. I'm guessing you got this code from my Apex Feed Cycles tutorial where it does include the Defer. I wanted to edit that article to correct it, but I'm unable to.

[vdelaytimer]
Set OFF
If Output cor_8_1 Percent < 90 Then ON
Defer 005:00 Then OFF

[alert_atk_hi]
Set OFF
If atohi CLOSED Then ON
If Output cor_8_1 Percent < 90 Then OFF
If Output vdelaytimer = ON then OFF

[vfeed]
Set OFF
If Time 11:00 to 11:07 Then ON
If Time 13:00 to 13:07 Then ON
If Time 15:00 to 15:07 Then ON
If Time 17:00 to 17:07 Then ON

[feeder_7_1]
Fallback OFF
Set OFF
If Output vfeed = ON then ON
Defer 001:00 Then ON

[cor_8_1]
Fallback ON
tdata ...
If Feeda 010 Then 3
If Feedb 010 Then 3
If Feedc 020 Then 3
If Output vfeed = ON Then 3

skimmer_5_5
Fallback OFF
Set ON
If Output cor_8_1 Percent < 90 Then OFF
If Output vleak = ON Then OFF
Defer 005:00 Then ON

[emailalm_i5]
Set OFF
if Error atkout_3_1 Then ON
If Output alert_atk_hi = ON Then ON
if atolvl OPEN Then ON
if lk11_1 CLOSED Then ON
if lk11_2 CLOSED Then ON
If Output vleak = ON Then ON
if Error cor_8_1 Then ON
Thank you again. Yes, I've used several of your examples in getting mine setup. I made the changes you mentioned. Waiting for the feed cycles today to see if I get the alert again. Thank you!
 

Algae invading algae: Have you had unwanted algae in your good macroalgae?

  • I regularly have unwanted algae in my macroalgae.

    Votes: 35 34.3%
  • I occasionally have unwanted algae in my macroalgae.

    Votes: 21 20.6%
  • I rarely have unwanted algae in my macroalgae.

    Votes: 9 8.8%
  • I never have unwanted algae in my macroalgae.

    Votes: 6 5.9%
  • I don’t have macroalgae.

    Votes: 28 27.5%
  • Other.

    Votes: 3 2.9%
Back
Top