Ignore a Sensor During Feed Timer

Averhoeven

Active Member
View Badges
Joined
Jun 8, 2018
Messages
394
Reaction score
193
Location
Morgantown
Rating - 0%
0   0   0
I have an alarm set up to 2 optical sensors in case the sump gets too high or too low. However, I don't want this alarm (and its effects likely turning of AWCs) triggered every time I feed the tank. If I add a line like:

If feedA on then off

to the end, will that over-ride everything else?
 

rkpetersen

walked the sand with the crustaceans
View Badges
Joined
Sep 14, 2017
Messages
4,528
Reaction score
8,865
Location
Near Seattle
Rating - 0%
0   0   0
Please post your code.
 
OP
OP
A

Averhoeven

Active Member
View Badges
Joined
Jun 8, 2018
Messages
394
Reaction score
193
Location
Morgantown
Rating - 0%
0   0   0
Here's the code for the alarm virtual outlet:

Set OFF
If SumpL OPEN Then ON
If SumpH CLOSED Then ON
Defer 000:02 Then ON
Min Time 000:10 Then ON
When On > 000:03 Then ON

Thanks
 

infinite0180

Valuable Member
View Badges
Joined
Apr 25, 2018
Messages
1,821
Reaction score
1,096
Rating - 100%
1   0   0
Following along as im about to add a high level sump sensor as well with basically the same coding...
 

homer1475

Figuring out the hobby one coral at a time.
View Badges
Joined
Apr 24, 2018
Messages
11,799
Reaction score
18,826
Location
Way upstate NY
Rating - 0%
0   0   0
Yup should work just fine.

If FeedA 000 Then Off

The 000 refers to a set amount of time(in minutes) for the switch to remain off after the feed mode ends.
So in your case I would add a small amount of time so the sump stabalizes before the alarm works off the sensors again.

If FeedA 010 Then Off

10 minute delay.
 

rkpetersen

walked the sand with the crustaceans
View Badges
Joined
Sep 14, 2017
Messages
4,528
Reaction score
8,865
Location
Near Seattle
Rating - 0%
0   0   0
Agree, adding homer1475's code at the end should allow your alarm to function as you wish.
Also, what are you using the When On and Min Time lines for? Do you want this VO to latch ON when it triggers?
 
OP
OP
A

Averhoeven

Active Member
View Badges
Joined
Jun 8, 2018
Messages
394
Reaction score
193
Location
Morgantown
Rating - 0%
0   0   0
Thanks for the help. It now reads:
Set OFF
If SumpL OPEN Then ON
If SumpH CLOSED Then ON
Defer 000:03 Then ON
Min Time 000:04 Then ON
When On > 000:05 Then ON
If FeedA 010 Then OFF

So it should trigger the alarm if the low (dry) or high sensor (wet) is triggered for longer than 3 seconds straight. This will then hold the alarm as on until it is manually reset after being on for 5 secs to prevent things like the ATO (which is killed by this alarm) from "fixing" it.
I can't remember what I was going for with the Min time thing.... I think there was a reason for it at some point. I made it less than the latch on to ensure it has a chance to switch off if it activates problematically, but if it is consistent for more than 1 sec beyond the minimum time then it hangs as on.
 

High pressure shells: Do you look for signs of stress in the invertebrates in your reef tank?

  • I regularly look for signs of invertebrate stress in my reef tank.

    Votes: 39 32.8%
  • I occasionally look for signs of invertebrate stress in my reef tank.

    Votes: 28 23.5%
  • I rarely look for signs of invertebrate stress in my reef tank.

    Votes: 22 18.5%
  • I never look for signs of invertebrate stress in my reef tank.

    Votes: 30 25.2%
  • Other.

    Votes: 0 0.0%
Back
Top