calcium reactor off at night commands, but am an idiot and cant figure it out.

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

Battlecorals

Aquaculturist
View Badges
Joined
Oct 15, 2009
Messages
6,996
Reaction score
16,345
Location
Wisconsin
Rating - 100%
2   0   0
Really simple one here. I know I am just missing something easy.

wanting shut the ph off from 14:00-9:00 and keep ph in this range when its on. but using thsi configuration\, after 14:00 it still stays on. any insight would be greatly appreciated. I tried changing the order of the commands couple times to no avail.


Fallback OFF
Set ON
If Time 14:00 to 09:00 Then OFF
If CaRx > 6.60 Then ON
If CaRx < 6.30 Then OFF
 

SPS2020

Valuable Member
View Badges
Joined
Jun 24, 2020
Messages
2,288
Reaction score
5,202
Location
NC
Rating - 100%
1   0   0
Hey Adam, I'm sure you have tried this, but what if you take out the Set ON statement and replace with another IF statement for the condition when you want it ON?

Something like this (for my chiller):

Fallback OFF
If Tmp > 80.0 Then ON
If Tmp < 77.7 Then OFF

Also, is the CaRx > 6.60 at the Time 14:00 to 09:00? It will always perform the last TRUE task.
 
Last edited:

Andyf30

Well-Known Member
View Badges
Joined
Jul 23, 2014
Messages
508
Reaction score
375
Location
United States
Rating - 0%
0   0   0
Really simple one here. I know I am just missing something easy.

wanting shut the ph off from 14:00-9:00 and keep ph in this range when its on. but using thsi configuration\, after 14:00 it still stays on. any insight would be greatly appreciated. I tried changing the order of the commands couple times to no avail.


Fallback OFF
Set ON
If Time 14:00 to 09:00 Then OFF
If CaRx > 6.60 Then ON
If CaRx < 6.30 Then OFF
@Robinson any thoughts here? (he is my local guru for apex programming)
 

colossal_tater

Active Member
View Badges
Joined
Aug 10, 2019
Messages
149
Reaction score
183
Location
Chattanooga
Rating - 0%
0   0   0
The order is the problem. This should do it


Fallback OFF
Set ON
If CaRx > 6.60 Then ON
If CaRx < 6.30 Then OFF
If Time 14:00 to 09:00 Then OFF

The last line to evaluate to true is the one that wins. So you want to always make sure to have your most important lines (as in the lines you want to override all other lines) at the end.
 

Just grow it: Have you ever added CO2 to your reef tank?

  • I currently use a CO2 with my reef tank.

    Votes: 1 2.9%
  • I don’t currently use CO2 with my reef tank, but I have in the past.

    Votes: 0 0.0%
  • I have never used CO2 with my reef tank, but I plan to in the future.

    Votes: 2 5.7%
  • I have never used CO2 with my reef tank and have no plans to in the future.

    Votes: 29 82.9%
  • Other.

    Votes: 3 8.6%
Back
Top