Apex programming for Ca reactor with kh controller

alex77619

Active Member
View Badges
Joined
Mar 1, 2018
Messages
277
Reaction score
318
Location
Victoria
Rating - 0%
0   0   0
Here’s a challenge coding help needed.

Equipments:
KHG sending kh to ph probe dkh to apex every 3 hr.

Ca Reactor CO2 outlet hook to apex.

Current Code:
066ebb5d7b2ce4d7bf0d72216ec481d8.jpg


Whenever dkh > 8.5 shut off CO2


Problem now is whenever it shuts off the CO2 only after 3 hr later the retest is back and it’s lower than 8.5 than it will re open the CO2

Is there a way to code apex that it will only shut off 1 hr and than reopen back 2 hr and judge again to stay open of close again at the 3 hr kh retest time.

Tried this and it won’t work still
Kh come in 2:36 with 8.6
3c286cf4fc61be20d1d0957a61539e1f.jpg


It will change to on when kh is higher than 8.5 but immediately shuts back off and didn’t do the defer to delay shut off 1 hr.
d87b9a779cfcfc95453a91c17f3f2cd8.jpg
 
Not and expert at coding apex but would think you should creat a virtual output vdKh which turns on if dKH > 8.5 and then run a defeat for 60 mins and then turn off.

Then in your calcium reactor tell it to turn off if vdKh is on.

So in your example dKH measures > 8.5 this will turn vdKh On for 60 minutes. While vdKh is on the reactor will be off so after 60 minutes vdKh will turn off and thus turn the reactor back on until the next test.
 
Not and expert at coding apex but would think you should creat a virtual output vdKh which turns on if dKH > 8.5 and then run a defeat for 60 mins and then turn off.

Then in your calcium reactor tell it to turn off if vdKh is on.

So in your example dKH measures > 8.5 this will turn vdKh On for 60 minutes. While vdKh is on the reactor will be off so after 60 minutes vdKh will turn off and thus turn the reactor back on until the next test.

Biggest problem is when after 60 min it should turn off the reading is still higher than 8.5 due to new test results not back yet. That’s the main problem
 
Looking at it another way if your plan is that in the 3hrs between dKH testing you only want CO2 off for 1 of the 3 hrs, why not do. Defer for 12 minutes and the off when dKH > 8.5. This way it will continue for 2 of the 3 hrs between tests but will switch off in the last 1 hrs before the retest. Sort of doing the same thing.

One point I will also make even though you turn CO2 off the pH in the reactor will remain low for some time and so will continue to put out Alk/Ca so not sure this will adjust correctly. Why not simply fine tune your reactor until you keep it steady.
 
the only reason is that when KH come in high i already wants it to start dropping. If let it keep going 2 hr than it will shots over more than 8.5.
About the fine tune part is that this fluctuation is due to light cycle. i just want to reduce the fluctuation by controlling the reactor CO2
 
You are over thinking this. Whether it runs 2hrs more in the first 2hrs or last 2 hrs the result will be the same and in addition it is not likely the ca reactor is able to cause such big fluctuations in dKH in 2hrs. As I said unless you turn the reactor off completely it will continue to adjust dKH and calcium even if CO2 is off as it takes time for pH to drift up and reactor to ‘clear’.
 
You are over thinking this. Whether it runs 2hrs more in the first 2hrs or last 2 hrs the result will be the same and in addition it is not likely the ca reactor is able to cause such big fluctuations in dKH in 2hrs. As I said unless you turn the reactor off completely it will continue to adjust dKH and calcium even if CO2 is off as it takes time for pH to drift up and reactor to ‘clear’.

Ahh okay let me try
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top