Apex ATK - disable alarm while feed?

evergreek

Community Member
View Badges
Joined
Sep 9, 2020
Messages
73
Reaction score
20
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:
 
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:


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.
 

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