PDA

View Full Version : Help with programming


Kroghs
01/11/2013, 02:37 PM
I have 4 Hydor power heads. I would like them to run at different times randomly on a 24 hour schedule. I would also like them the operate for a time range of about 15-45 minutes each and then pause for about the same amount of time. I am still very confused with the OCS commands, and was wondering if anyone might be willing to write these commands for me? With a brief, explanation, I might be able to do it myself next time. Thank you!

chbix
01/11/2013, 04:03 PM
you want to use the RND command (random). with 4 on at different times

Something like this I think would work

If Time > 0001 Then Ph1 ON
If Time > 0600 Then Ph1 OFF
If Time > 0601 Then Ph2 ON
If Time > 1200 Then Ph2 OFF
If Time > 1201 Then Ph3 ON
If Time > 1800 Then Ph3 OFF
If Time > 1801 Then Ph4 ON
If Time > 2359 Then Ph1 OFF

// The above code limits the time for each PH to be on only during the specific time (in the above code each PH is only on for 6 hours.)

// Then use the RND command to further randomize the ph flow when its on

RND 045/045 ON/OFF Then PH1 ON
RND 045/045 ON/OFF Then PH2 ON
RND 045/045 ON/OFF Then PH3 ON
RND 045/045 ON/OFF Then PH4 ON

// the above code randomizes the time where it will be randomly on from 1-45 min (the first 045 statement) then randomly off from 1-45 min (the second 045 statement)

I think this would work, you may need to add 4 dummy timers to replace the If time statements as I dont know if the If Time statements and the RND statements will conflict.

Kroghs
01/12/2013, 07:14 AM
Thank you very much!