Apex ATK - disable alarm while feed?

  • Thread starter Thread starter evergreek
  • Start date Start date
  • Tagged users Tagged users None

evergreek

Community Member
View Badges
Joined
Sep 9, 2020
Messages
73
Reaction score
18
Location
Austin
What state or country do you live in
Texas
Rating - 0%
0   0   0
Hello all,

I have been searching and unable to find the answer to the following question.

1. How do I disable the "alarm" for the "ATK_HI" sensor on the apex ATK while FEEDA is on?

I tried adding a line on the ATK to turn it off while FEEDA is on - but I still get an alert. Any help is greatly appreciated!
 
You need to remove monitoring the ATK_HI sensor from the EmailAlm program, and instead monitor it with a virtual output where you can ignore it during feeding. See my tutorial on Virtual Outputs for examples:
https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/


So I created a VO called "ATKHighLevel" with the following

Set OFF
If FeedA 000 Then OFF
If ATK_HI CLOSED Then ON

but when I go back to the EmailAlm to edit it..

Set OFF
If Error ATK Then ON
If ATKHighLevel Then ON

it errors out.
 
So I created a VO called "ATKHighLevel" with the following

Set OFF
If FeedA 000 Then OFF
If ATK_HI CLOSED Then ON

but when I go back to the EmailAlm to edit it..

Set OFF
If Error ATK Then ON
If ATKHighLevel Then ON

it errors out.

There are two problems with your code:

1. The sequence of commands in your virtual output is incorrect. The Apex processes each condition top to bottom, with the last line that's True setting the state of the output. In your example, the FeedA exception will be overridden by the ATK_HI switch. Change it to this:

Set OFF
If ATK_HI CLOSED Then ON
If FeedA 000 Then OFF


2. The syntax to check an output status requires the keyword "Output", an equal sign, and the output state:

Set OFF
If Error ATK Then ON
If Output ATKHighLevel = ON Then ON
 
Excellent! Thank you so much! :)

You might also want to consider adding a short delay after the feed mode so you give it time for the water level to return to normal before resuming monitoring the ATK_HI sensor:

Set OFF
If ATK_HI CLOSED Then ON
If FeedA 001 Then OFF

That would make it wait 1 minute after the Feed timer expires.
 

HOW MUCH DOES A FISH’S FEEDING REQUIREMENTS AFFECT YOUR STOCKING DECISIONS?

  • A lot! - I avoid fish that require frequent or specialized feeding

    Votes: 6 28.6%
  • Quite a bit, but an automatic feeder can change my answer

    Votes: 4 19.0%
  • It depends on whether my nutrient export can handle it

    Votes: 4 19.0%
  • It depends on how badly I want the fish

    Votes: 6 28.6%
  • Not much. I’m willing to adjust my routine

    Votes: 4 19.0%
  • Not at all. Feeding demands don’t limit my stocking choices

    Votes: 4 19.0%
  • I usually learn about the demanding feeding schedule after buying the fish!

    Votes: 1 4.8%
  • I haven’t really considered this before

    Votes: 1 4.8%
  • Something else (see my comments in the thread)

    Votes: 0 0.0%
Back
Top
Home
Post thread…
Market
What's new