CA Reactor Program Check...

DallasSVT

New member
CA Reactor is up and running below is the programing I used. Please let me know if you see any problems or have any suggestions! I'm not really sure I want to use SET ON or FALLBACK ON....

FeedB is water change.


CA Reactor FEED pump.


Fallback ON
Set ON
If pH_Tank < 08.00 Then OFF
Defer 002:00 Then OFF
Min Time 010:00 Then OFF
If FeedB 000 Then OFF

Reactor Circulation Pump

Fallback ON
Set ON
If Outlet Pump_CA_Feed = OFF Then ON
Defer 020:00 Then OFF
If FeedB 000 Then OFF

CO2 Solenoid

Fallback ON
Set ON
If pH_CA > 06.70 Then ON
If pH_CA < 06.50 Then OFF
If pH_Tank < 08.10 Then OFF
Defer 001:00 Then ON
Defer 001:00 Then OFF
If FeedB 000 Then OFF


EMAIL Alerts


Set OFF
If Outlet Problem_PUMP = ON Then ON
If Temp_S > 82.0 Then ON
If Temp_S < 79.0 Then ON
If Power EB8_2 Off 000 Then ON
If Power EB8_4 Off 000 Then ON
If pH_Tank < 07.90 Then ON
If pH_Tank > 08.50 Then ON
If pH_CA < 06.40 Then ON
If pH_CA > 06.85 Then ON
Defer 002:00 Then ON

Thanks,


Dallas :wavehand:
 
I'm not really sure I want to use SET ON or FALLBACK ON....

Two different things. Fallback is a failsafe mode, what state do you want the outlet to default to in the event it is no longer receiving commands from the Apex. Set is used to initialize the starting state of the control code for an outlet.

Reactor Circulation Pump

Fallback ON
Set ON
If Outlet Pump_CA_Feed = OFF Then ON
Defer 020:00 Then OFF
If FeedB 000 Then OFF

Did you mean Then OFF? If not, then it is redundant to Set ON.

CO2 Solenoid

Fallback ON
Set ON
If pH_CA > 06.70 Then ON
If pH_CA < 06.50 Then OFF
If pH_Tank < 08.10 Then OFF
Defer 001:00 Then ON
Defer 001:00 Then OFF
If FeedB 000 Then OFF
If you want to control the pH over the indicated range, then Set ON is unnecessary and will interfere.

Keep in mind that Defer and Min Time are evaluated last regardless of position and apply to the entire outlet rather than a specific command. So in your circulation pump code, when you initiate Feed B to turn it off, it will delay by 20 minutes before doing so.

Todd
 
Thanks Todd,

I will make the changes. Do you think my range of pH is too wide? 6.5- 6.7 Should I shoot fro a more targeted range say 6.6? What about the range of my tank pH? 8.1 turns off CO2 and 8.0 turns off FEED pump.

I dont want everything cycling ON and OFF all day.... but, dosent DEFER fix that?


Dallas
 
I don't use a CaRx, so can't make specific recommendations. I was just commenting on the code. I use a similar approach with my heater. When the temp drops to the low end of the range, the heater comes on until it reaches just above the mid-point and then shuts off. The opposite approach is used for cooling fans. This eliminates 'short-cycling' where the heater/fans would turn on/off frequently. For example:

Set ON
If pH < 6.50 Then OFF

This would be ON until pH drops to 6.49, then shut OFF. As soon as it reached 6.50 it would turn back ON again. Whereas,

If pH > 6.70 Then ON
If pH < 6.50 Then OFF

would drift up and down between the two endpoints.

Yes, Defer is useful for eliminating excessive cycling as well. Think of it as a way to filter out 'noise'. It causes a delay before a change of state can occur. 'Defer 1:00 Then ON' will require that the pH exceed 6.70 for a full, uninterupted minute, before the outlet changes to ON. Be careful about excessive Defer durations though, you want to respond to accurate tank conditions.

Todd
 
Back
Top