Apex ATK - disable alarm while feed?

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!
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
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:
 
OP
OP
E

evergreek

Community Member
View Badges
Joined
Sep 9, 2020
Messages
73
Reaction score
18
Location
Austin
Rating - 0%
0   0   0
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.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
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
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,688
Location
Oregon
Rating - 0%
0   0   0
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

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 48 41.7%
  • More hurtful.

    Votes: 5 4.3%
  • I think it depends mostly on the technology.

    Votes: 46 40.0%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 34 29.6%
Back
Top
Home
Post thread…
Market
What's new