need help with kalk reactor

Share you PDE file with our community
Post Reply
iiluisii
Posts: 80
Joined: Mon Jul 09, 2012 10:16 am

need help with kalk reactor

Post by iiluisii »

Does any body has a code or exaple of a code that I can use to make one port on the relay box turn the pump on the reactor 4 times a day for a number amounts of mins and shut down the pump when ph gets to 8.4 thanks
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: need help with kalk reactor

Post by rimai »

Try this:

Code: Select all

ReefAngel.Relay.Set(Port1, now()%21600<120);
if (ReefAngel.Params.PH>=840) ReefAngel.Relay.Off(Port1);
21600 is the cycle in seconds, which means 6 hours
120 is the number of seconds to turn on, which is 2 minutes.
Roberto.
iiluisii
Posts: 80
Joined: Mon Jul 09, 2012 10:16 am

Re: need help with kalk reactor

Post by iiluisii »

Thanks roberto ill try it tomorrow
Post Reply