Apex programming help: Ph set point for cal rxtr based on time?

TX_Punisher

Valuable Member
View Badges
Joined
Jun 8, 2017
Messages
1,420
Reaction score
778
Rating - 0%
0   0   0
With My current settings my alk is steady in the am until about 2p where it starts to drop all afternoon even using kalk (too much kalk drives my ph too high in the display) So I can only use so much.

instead of buying a versa where I can program a faster speed in the am (less effluent alk) and slower speed in the pm (higher effluent alk) would it be possible to program apex and my ph probe in my Geo to turn on at a lower ph set point in the afternoon compared to the am? (Therefore creating and matching alk demand in the pm. Lower ph in the reactor = higher effluent alk).

my current ph outlet programing looks like this: (I have a trident btw)

Fallback OFF
If Time 22:31 to 08:30 Then OFF
If pH_cal > 6.40 Then ON
If pH_cal < 6.39 Then OFF
If Alkx6 > 9.10 Then OFF
If Cax6 > 466 Then OFF
If pH < 8.04 Then OFF

what id like is the ph probe outlet to turn on the regulator in the afternoon starting at
14:00 to 22:30
if ph_cal > 6.39 then on
if ph_cal < 6.38 then off

in the morning
If time 08:30 to 13:59
If pH_cal > 6.40 Then ON
If pH_cal < 6.39 Then OFF

is this possible? Can Anyone share the correct programming?

in essence, a higher ph setpoint in the am turning on the regulator and a lower ph set point in the afternoon.

thanks for any help.
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
8,685
Location
Oregon
Rating - 0%
0   0   0
You can create a couple of virtual outputs, one for the morning and one for the afternoon, then use the status of these virtual outputs to control the reactor:

[pH_PM] -- virtual output
If ph_cal > 6.39 Then ON
If ph_cal < 6.38 Then OFF
If Time 22:31 to 13:59 Then OFF

[pH_AM] -- virtual output
If pH_cal > 6.40 Then ON
If pH_cal < 6.39 Then OFF
If Time 14:00 to 08:29 Then OFF

[Reactor]
Fallback OFF
Set OFF
If Output pH_AM = ON Then ON
If Output pH_PM = ON Then ON
If Alkx6 > 9.10 Then OFF
If Cax6 > 466 Then OFF
If pH < 8.04 Then OFF

If you're not familiar with virtual outputs, see my tutorial: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/
 
OP
OP
TX_Punisher

TX_Punisher

Valuable Member
View Badges
Joined
Jun 8, 2017
Messages
1,420
Reaction score
778
Rating - 0%
0   0   0
Dude, awesome. I need to read up on virtual outlets as I’ve heard of them but never used the programming.

thank you
 
OP
OP
TX_Punisher

TX_Punisher

Valuable Member
View Badges
Joined
Jun 8, 2017
Messages
1,420
Reaction score
778
Rating - 0%
0   0   0
Got an error when plugging that in

Send Failed

//Error: line 1 - Statement must start with If, OSC, Min, Set, Fallback // [pH_PM] -- virtual output
 

Tastee

Valuable Member
View Badges
Joined
Oct 19, 2018
Messages
1,124
Reaction score
872
Location
Sydney, Australia
Rating - 0%
0   0   0
You don’t enter the [pH_PM] -- virtual output etc lines in the code, they are just formatting @SuncrestReef has used in his reply. You need to create a new VO called pH_PM and then enter the remainder of the code into Apex Fusion.

It is common for people to use [name] formatting in their posts to identify the output or VO in question.
 
OP
OP
TX_Punisher

TX_Punisher

Valuable Member
View Badges
Joined
Jun 8, 2017
Messages
1,420
Reaction score
778
Rating - 0%
0   0   0
Still reading up on the virtual outlets and how to set them up as well as their different uses. Lots to learn.

thanks for the help
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 37 27.8%
  • 100% dry rock + 100% live sand

    Votes: 45 33.8%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 29 21.8%
  • 75% live rock, 25% live sand

    Votes: 12 9.0%
  • 25% live rock, 75% live sand

    Votes: 10 7.5%
Back
Top