First time programming can some one check my code?

raskal311

New member
First time programming this thing, can someone please take a look and let me know what I need to change.



PH1$ (powerhead 1)
FAN$ (Fans)
CA1$ (Cal Reactor Solenoid)
FUG$ (Fuge light)
ALR$ (Alarm)
SKI$ (Skimmer)
PH2$ (Power head 2 and 3)
HET$ (Heater)
MHL$ (MH leftside)
MHR$ (MH right Side)
VHO$ (VHO)
CHI$ (Chiller)


If Time > 14:00 Then VHO ON (VHO on at 2pm)
If Time > 15:30 Then VHO OFF (VHO OFF at 2:30pm)
If Time > 21:40 Then VHO ON (VHO on 9:40pm)
If Time > 22:30 Then VHO OFF (VHO OFF 10:30pm

If Time > 15:15 Then MHR ON (MH Right ON 3:15PM)
If Time > 21:45 Then MHR OFF (MH Right Off 9:45PM)
If Time > 15:20 Then MHL ON (MH Left On 3:20PM)
If Time > 21:50 Then MHL OFF (MH Left OFF 9:50PM)
If Temp > 85.00 Then MHL OFF (MH left off if temp hits 85)
If Temp > 84.00 Then MHR OFF (MH right off if temp hits 84)
If Temp > 84.00 Then ALR ON (alarm on if temp its 84)
If Temp < 83.00 Then ALR OFF (alarm off if temp is blow 83)
If Temp > 79.00 Then FAN ON (Fan on at temp 79+)
If Temp < 79.00 Then FAN OFF (Fan off at temp blow 79)
If Temp > 80 Then CHI ON (Chiller on at temp 80+)
If Temp < 80 Then CHI OFF (Chiller off at temp 80-)
If Temp < 75 Then HET ON (Heater On at temp 75+)
If Temp > 76 Then HET OFF (Heater Off at temp 76+

If pH > 8.40 Then ALR ON (alarm on if Ph 8.4+)
If pH < 7.95 Then ALR ON (alarm on if Ph 7.95-)
If pH > 08.30 Then CA1 ON (CA Solenoid On if PH 8.3+)
If pH < 08.10 Then CA1 OFF (CA Solenoid Off if PH 8.1-)

If Feed cycle Then PH1 OFF
If Feed cycle Then PH2 OFF
Max Change 010 M Then PH1 OFF (PH1 back on after 10min of feed)
Max Change 010 M Then PH2 OFF (PH2 and 3 back on after 10min of feed)

If Time > 00:00 Then SKI ON
If Feed cycle Then SKI OFF
Max Change 010 M Then SKI OFF (skimmer off 10 after feed)

If Time > 01:30 Then FUG ON (fuge light on at 1:30am)
If Time > 07:30 Then FUG OFF (fuge light off at (7:30am)
 
Remove the MAX CHANGE statements and set your feed timer in the setup menu to 10 minutes.

You will also need to add:
If Time >00:00 Then PH1$ = ON
If Time >00:00 Then PH2$ = ON
 
pH commands look ok. But I would lower the point at which the CA reactor turns on/off. Perhaps on at 8.1 and off at 8.00 would be better. Tanks running Ca reactors typically have lower pH and my tank rarely gets to 8.30. My tank drops below 7.95 sometimes too so you might want the alarm set lower. Perhaps 7.85

Run it for a while and observe the data log to see your pH trend.
 
Might want to change your timer display symbol to match your timer names - ex.

PH1$ to PH1% (display pump symbol on controller)
FAN$ to FAN^ (display heater / chiller symbol)
MHR$ to MHR* (display light symbol)

$ is usualy for selenoids and such

This won't affect the operation of the controller - just the display.
 
<a href=showthread.php?s=&postid=7383079#post7383079 target=_blank>Originally posted</a> by Aquaduck
Remove the MAX CHANGE statements and set your feed timer in the setup menu to 10 minutes.


Hi,

Just wanna steal your question, what if I want to stop the skimmer for 2 hours after feeding?

Thank you.

Simon
 
Here are some commands to shut off the pump and skimmer during a feed cycle.

If Time > 00:00 Then PMP ON
If Feed Cycle Then PMP OFF
If Time > 00:00 Then SKM ON
If Timer PMP = OFF Then SKM OFF
Max Change 120 M Then SKM OFF

Curt
 
Back
Top