Need help with a code.
-
iiluisii
- Posts: 79
- Joined: Mon Jul 09, 2012 10:16 am
Need help with a code.
Can someone help me with a code for my kalk reactor. I need the to control two ports for this reactor. One to mix the kalk 4 times a day for 10 minutes and not letting it mix if the ph is at 8.4 or above and the other port is to control my ato so that it does not not come on while the kalk is mixing. Thanks in advance Luis
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Need help with a code.
May I ask why not mix it if ph is at or above 8.4?
Isn't it just stirring the kalk?
I think what you want is not turn on ATO when pH is at or above, right?
Isn't it just stirring the kalk?
I think what you want is not turn on ATO when pH is at or above, right?
Roberto.
-
iiluisii
- Posts: 79
- Joined: Mon Jul 09, 2012 10:16 am
Re: Need help with a code.
You don't want to mix it above 8.4 because ph will start getting higher if the pump continues to mix after 8.4. And the reason I don't want the ato to turn while the pump is mixing is because I don't want the ato to dump the cloudy water. That's the problem I have now and I'm over dosing kalk. Also you still want the ato to continue to pump water even if the ph Is above 8.4 but without mixing the kalkrimai wrote:May I ask why not mix it if ph is at or above 8.4?
Isn't it just stirring the kalk?
I think what you want is not turn on ATO when pH is at or above, right?
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Need help with a code.
Maybe I'm not understanding how your Kalk reactor works and where you have your ph probe.
My understanding of Kalk reactor is a stirrer that you will want to run every few hours to keep the mixture always saturated.
Then you have a water pump that feeds RODI water inside the reactor which in turn overflows to the sump.
You can use this RODI/Kalk as ATO replacement.
With that said, maybe you can point me to how your setup is, as I can't seem to figure out how the pH can change if the mixture is inside the reactor and didn't make it into the sump yet.
My understanding of Kalk reactor is a stirrer that you will want to run every few hours to keep the mixture always saturated.
Then you have a water pump that feeds RODI water inside the reactor which in turn overflows to the sump.
You can use this RODI/Kalk as ATO replacement.
With that said, maybe you can point me to how your setup is, as I can't seem to figure out how the pH can change if the mixture is inside the reactor and didn't make it into the sump yet.
Roberto.
-
iiluisii
- Posts: 79
- Joined: Mon Jul 09, 2012 10:16 am
Re: Need help with a code.
Mine is set up like that. The ato pumps water trough the reactor then to the sump. My reactor has a mixing pump on the side and when it comes on it stirs the kalk inside that reactor to the point the water becomes milky if the ato turns on while that milky water still mixing you are dumping straight kalk water to the tank which is close to 12.0 in ph which is bad so that's why the ato needs to be off while mixing also the reason why you dont want to mix it any more if ph is already 8.4 on your display its just a safety precaustion. My ph probe is In my sump.rimai wrote:Maybe I'm not understanding how your Kalk reactor works and where you have your ph probe.
My understanding of Kalk reactor is a stirrer that you will want to run every few hours to keep the mixture always saturated.
Then you have a water pump that feeds RODI water inside the reactor which in turn overflows to the sump.
You can use this RODI/Kalk as ATO replacement.
With that said, maybe you can point me to how your setup is, as I can't seem to figure out how the pH can change if the mixture is inside the reactor and didn't make it into the sump yet.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Need help with a code.
So, if you are just mixing the mixture inside the reactor and not turning the RODI pump, there is no reason why you shouldn't mix it in relation to pH.
The mixture never leaves the reactor.
In fact, I think you do want to keep mixing it in the reactor to keep the mixture saturated, but that's just my opinion.
If you prefer not to mix when ph is above a certain level, you can code like this:
And to not let the ATO port turn on while mixing, you can use this:
The mixture never leaves the reactor.
In fact, I think you do want to keep mixing it in the reactor to keep the mixture saturated, but that's just my opinion.
If you prefer not to mix when ph is above a certain level, you can code like this:
Code: Select all
ReefAngel.Relay.Set(Port1,now()%14400<600);
if (ReefAngel.Params.PH>=840) ReefAngel.Relay.Off(Port1);
Code: Select all
ReefAngel.SingleATO(true,Port2,60,0);
if (now()%14400<600) ReefAngel.Relay.Off(Port2);
Roberto.
-
iiluisii
- Posts: 79
- Joined: Mon Jul 09, 2012 10:16 am
Re: Need help with a code.
Ok this ato code for port 2 is this for just to turn that relay port off right not the reef angel ato port? I'm not using the reef angel ato I'm using an avast regular ato that I have hooked up to a relay port.rimai wrote:So, if you are just mixing the mixture inside the reactor and not turning the RODI pump, there is no reason why you shouldn't mix it in relation to pH.
The mixture never leaves the reactor.
In fact, I think you do want to keep mixing it in the reactor to keep the mixture saturated, but that's just my opinion.
If you prefer not to mix when ph is above a certain level, you can code like this:And to not let the ATO port turn on while mixing, you can use this:Code: Select all
ReefAngel.Relay.Set(Port1,now()%14400<600); if (ReefAngel.Params.PH>=840) ReefAngel.Relay.Off(Port1);Code: Select all
ReefAngel.SingleATO(true,Port2,60,0); if (now()%14400<600) ReefAngel.Relay.Off(Port2);
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
-
iiluisii
- Posts: 79
- Joined: Mon Jul 09, 2012 10:16 am
Re: Need help with a code.
Ok so get rid of the singleato line and just add it like that to the controller