The simple command I am trying here is to allow ph inside calcium reactor to rise at night (less potency in effluent) when photosynthesis slows down, and vice versa during the day. Any apex geeks have any suggestions to the code below? Thanks in advance!
In order to do this, you need to create two separate virtual outputs, one for day and one for night, then program the reactor to turn on and off based on those separate virtual outputs:
[pHCaR_Day] -- new virtual output
If pHCaR > 6.60 Then ON
If pHCaR < 6.50 Then OFF
If Time 22:00 to 9:59 Then OFF
[pHCaR_Night] -- new virtual output
If pHCaR > 6.80 Then ON
If pHCaR < 6.70 Then OFF
If Time 10:00 to 21:59 Then OFF
[ReactorOutput]
Fallback Off
Set OFF
If Output pHCaR_Day = ON Then ON
If Output pHCaR_Night = ON Then ON
If you’re not familiar with virtual outputs, see my tutorial here: