Apex Outlet Programming Question

CCK_8814

2500 Club Member
View Badges
Joined
May 22, 2018
Messages
3,169
Reaction score
1,489
Location
Detroit
Rating - 90.9%
20   2   0
So I’m trying to figure out how to write a code for one of my EB832 outlets that if an outlet is off for longer than 45-60 minutes that it needs to turn on for 20 minutes before again turning off until the outlet is truly triggered on. This is for my CO2 regulator which is being controlled depending on what level alkalinity is. Any input appreciated!
 
Can you post your current code for your CO2 regulator? I have an idea, but need to see where to integrate it with your current programming.
 
Can you post your current code for your CO2 regulator? I have an idea, but need to see where to integrate it with your current programming.
See attached

DFC16F61-E916-4581-9243-914515234D52.png
 
I'm assuming this is for a calcium reactor. Are you not concerned about the pH reading inside the reactor?

This code should do what you requested in your original post, though I'm not certain it's a good idea because it might dissolve your reactor media too quickly if pH drops too low. With that said, here's how to do it.

I don't know the name of your EB832 CO2 output, so I'm using "EB832_CO2" in my code. Change this name to match your EB832 output.

EB832_CO2
-----------------
Fallback OFF
Set OFF
If Alk < 8.85 Then ON
If Output CO2_Timer = ON Then ON
If Alk > 9.00 Then OFF


CO2_Timer (virtual output)
-----------------
Set OFF
If Output EB832_CO2 = OFF Then ON
Defer 045:00 Then ON
Defer 020:00 Then OFF

Notes:
  1. I'm assuming your Alk readings are from a Trident. If that's the case, there's no need for the Defer 005:00 timers you had since the Trident values won't fluctuate like an optical sensor or temperature probe. Once the reading is made, it remains static until the next test hours later.
  2. I'm also assuming you want the CO2 timer to come on, but not if your alk is > 9.00, so I placed the new "If Output CO2_Timer" line of code above the "If Alk > 9.00 Then OFF". If you really want the CO2 timer to run regardless of the Alk reading, then move the new "If Output CO2_Timer" line of code to the bottom.
Hope this helps.

If you're not familiar with virtual outputs, see my tutorial here: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/
 
I have the valve/bubble counter set so the pH in the reactor will only go so low. This will be controlled via the readings of my KH guardian, I don’t quite trust the trident just yet, that’s why I’m using the Defer in my code. I’ll have to check out the virtual outlet tutorial as I do not have any experience with it.
 
Also, I did want the outlet to come on even if the alk is above 9 because I don’t want the pH in the reactor to climb too high and cause too many fluctuations. It’s something I’ll adjust and play with as time goes but it’s a starting point especially for just starting to allow the KHG to control my CaRX.
 
I'm assuming this is for a calcium reactor. Are you not concerned about the pH reading inside the reactor?

This code should do what you requested in your original post, though I'm not certain it's a good idea because it might dissolve your reactor media too quickly if pH drops too low. With that said, here's how to do it.

I don't know the name of your EB832 CO2 output, so I'm using "EB832_CO2" in my code. Change this name to match your EB832 output.

EB832_CO2
-----------------
Fallback OFF
Set OFF
If Alk < 8.85 Then ON
If Output CO2_Timer = ON Then ON
If Alk > 9.00 Then OFF


CO2_Timer (virtual output)
-----------------
Set OFF
If Output EB832_CO2 = OFF Then ON
Defer 045:00 Then ON
Defer 020:00 Then OFF

Notes:
  1. I'm assuming your Alk readings are from a Trident. If that's the case, there's no need for the Defer 005:00 timers you had since the Trident values won't fluctuate like an optical sensor or temperature probe. Once the reading is made, it remains static until the next test hours later.
  2. I'm also assuming you want the CO2 timer to come on, but not if your alk is > 9.00, so I placed the new "If Output CO2_Timer" line of code above the "If Alk > 9.00 Then OFF". If you really want the CO2 timer to run regardless of the Alk reading, then move the new "If Output CO2_Timer" line of code to the bottom.
Hope this helps.

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

So I coded everything as you described and the outlet started to just go crazy continuously shutting off then back on, off then on, off then on, etc. Any idea?
 
So I coded everything as you described and the outlet started to just go crazy continuously shutting off then back on, off then on, off then on, etc. Any idea?

Did you set the new virtual output to AUTO?

Please post the code you're now running, since I didn't know your output name.

Also, enable logging on the virtual output, then look at the log to see if it is rapidly turning on and off. The Defer timers should prevent that.
 
Did you set the new virtual output to AUTO?

Please post the code you're now running, since I didn't know your output name.

Also, enable logging on the virtual output, then look at the log to see if it is rapidly turning on and off. The Defer timers should prevent that.
I retyped out the code and resent the programming and it’s stopped. Now I’m waiting to see if it turns back off.
 

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%

New Posts

Back
Top