Staged Calcium Reactor controlling via the Trident [emoji823]

Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#1
Ok first off I know there’s a simpler way to have the trident to control a calcium reactor by just using this code on your co2 outlet.

If AlkX_X > then 9.00 then off

Yes it works. But it will just shut the co2 of for 6 hours or untill the next alk test is done that’s below 9.00.

He here’s my goal. To keep the pH at a level that slows the dissolving rate of the calcium media. In my calcium reactor it will take a good 12 hours for the pH to drop one full pH point. I don’t want to increase my co2 bubble rate. This will make the solenoid work harder by turning off and on more often.
Here’s a test I ran on how to check the rate of with pH dropped in my calcium reactor
pH at 8.22

Then 11 and a half hours later at 7.16


Well in 12 hours my system can drop 0.06 to 1 full ppm in alkalinity during the day if the calcium reactor is not dissolving media. I don’t want to be playing catch up on alk in the system or pH in the calcium reactor all day long.

So my plan is to keep the pH in the calcium reactor at a level where I can control the precipitation level at a desired rate and not have the pH go to high that it will take a excessive amount of time to get the right precipitation in the calcium reactor.

So know that if described and laid off my intentions let’s get to the meat and potatoes of the programming.
I started off by creating 3 virtual outlets. Here’s each virtual outlet and it’s function (never mind the fallback codes there just standard so if apex get disconnected from co2 out).
Virtual outlet #1 labeled (Low_Melt)
This outlet switches on if the alk is higher then 8.75 and it lets the pH in the calcium reactor go to 7.01 (I will play with this number too, cause if alk still climbs at a pH of 7.01 then I’ll have to raise pH to where it’s not getting a hi melt rate)

Let’s explain these codes, first CalRX is the label of the pH probe on the calcium reactor.
(2) If CalRX < 7.01 then off
So if the pH goes lower then 7.01 the the outlet turns off.
(3) If Alkx13 > 8.75 then on
This activates the outlet if alk is higher then 8.75ppm
(4) If Alkx13 < 8.75 then off
This turns off the outlet if alk goes lower then 8.75ppm
(5) Defer 010 then on
This is just a 10 min buffer so that when the outlet turns off after pH goes below 7.01 the outlet won’t turn right back on for 10 mins after pH has gone above 7.01.

Ok virtual outlet #2 (Norm_Melt)
This outlet keeps the co2 outlet running at the proper pH for normal alk precipitation rate when alk is in the range I want it.


What these codes do.
(2) Set on
This just turns the outlet on if there’s nothing to keep the outlet off
(3) If outlet High_Melt off then off
This code is not needed but I did want thi outlet to be on when high melt outlet was on. Yea I’m a little anal like this
(4) If outlet Low_Melt on then off
This will turn off this outlet allowing the low melt outlet to raise the pH in the cal reactor to the level you set it at. For me that currently at pH 7.01.
(5) If CalRX < 6.81 then off
This will turn off the outlet if pH goes below 6.81
(6) Defer 010 then on
Again this allow the ph to raise a little in the reactor so the solenoid isn’t turning on and off rapidly

Ok virtual outlet #3 (High_Melt)
This outlet allows the pH to go down to 6.60 in the calcium reactor. Making it so there is a high precipitation level in the effluent.

(2) If Alkx13 < 8.25 then on
This activates the outlet on if alk goes lower the 8.25ppm
(3) If Alkx13 > 8.25 then off
This turns the outlet off when alk is higher then 8.25ppm
(4) If CalRX < 6.60 then off
This allows the outlet stay on until the pH goes below 6.60 then it shut the outlet off
(5) Defer 005 then on
Again just like the other outlets this gives a 5 min break so the outlet isn’t rapidly turning on and off

So now that the virtual outlets are done we need then to trigger the co2 outlet and do the programming.
I here’s what my co2 outlet coding looks like

(2) Set off
This keeps the co2 outlet off unless told to turn on
(3) If High_Melt on then on
This just turns the co2 on and off when the high melt virtual outlet is active
(4) If Norm_Melt on then on
This is the virtual outlet of just basic calcium reactor function
(5) If Low_Melt on then on
This turns the co2 on and off when low melt is active.
(6) If Alkx13 > 9.00
Then as a fail safe if the alk goes higher then 9.00 then it completely shuts off the co2 until the next time the trident does a test.

So I did all this programming the other day but yet put it I action. Only cause I’m leaving my calcium reactor off until my calcium level drops in my tank
But I have been monitoring the outlets and how they react to the different alk levels of the trident

This pic show the high melt outlet on then the alk is below 8.25

This pic shows the norm outlet on when alk is in the desired rate.


Good luck reading this it quite confusing



MAYBE!!!!!!!!!!
 
Joined
Sep 2, 2008
Messages
5,563
Likes
395
Points
38
Location
IE, CA
#3
why so angry Eric

nice thread. i appreciate you doing all this DIY / tinkering with the Apex as i still have no idea on how to set mine up

my Apex setup looks good mounted on the wall collecting dust though LOL
 
Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#4
So I’ve been dosing alk by its self and so far the right outlets have been triggering on when the alk is moved around.
This pic shows the normal melt (pH 6.80 to 7.00) rate would be activated if alkalinity was in the proper parameter

This pic shows how the low melt (pH 7.01 and up) rate would be on if alk was higher then 8.75
 
Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#6
Just flipped the switch on the co2.

Been logging the virtual outlet sense creating this type of controlling and everything has been running nicely. Now time to see how it works with the pH controller aspect.
 
Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#7
Well I added a 4th stage as a just in case. The only reason I’m adding tho 4th virtual outlet is because it just takes way to long for the pH to drop in the calcium reactor, if could take 12 or so hours for the pH to drop 1.5 points. So instead of have the co2 off if alk goes above 9.00. I added the 4th outlet that allows the pH in the reactor to elevate to 7.40.

Then I just changed the coding in the co2 outlet to function off this virtual outlet

It’s been almost 8 hours and I’m still not getting the melt range I would like. I’m hoping that by running the 4th outlet it won’t let pH get way so high in cal reactor.
 
Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#8
So far everything seems to be running fine




When to pH goes below the desired range on the vertical outlet the outlet triggers off. That also triggers the co2 outlet to trigger off.
Over time I’ll fine tune the pH level for each alk range. Then in the long term I should be able to fine tune the alk so that I try not to get more then a tenth of a ppm swing.
This type of calcium reactor controlling could eliminate the usage of added kalk dosing or 2 part dosing like a lot of people recommend with a calcium reactor setup. As long as the trident stays functional and in the right testing range. I’ll just be double checking the alk weekly to make sure the trident is reading properly.
 
Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#9
After going over the logs I think I could also extend the defer timing a little too. So the solenoid stays off longer. Then stays on longer to cut down the amount of times the solenoid switches on and off.
 
Joined
Jan 23, 2011
Messages
8,516
Likes
2,464
Points
83
Location
Perris 92571
My Tank Build
#10
So a few days down and everything is running great.

The pH stages at levels depending on the alk
I did adjust some of the pH levels to better fit the needs of my system
 

deaclauderdale

Addicted Reefer
Joined
Aug 2, 2009
Messages
1,567
Likes
450
Points
18
Location
Pasadena
My Tank Build
#11
This is amazing work....a little confusing but amazing. I'll be in touch with you once I get my Trident and my Calc reactor going so I can better understand and implement this design.
 
Top