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
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.
 

TOP 10 Trending Threads

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 38 54.3%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 32 45.7%
Back
Top
Home
Post thread…
Market
What's new