PDA

View Full Version : Another Program help


reefscrapper
02/16/2008, 12:41 PM
I want to make a command to run FIL 4 times a day at 8am, 12pm, 4pm and 8pm running 30 mins each time. Same with the DRN but 30 min later

Can someone help me simplfy this using the OSC statement?

Thanks for the help


If Time > 08:00 Then FIL ON
If Time > 08:30 Then FIL OFF
If Time > 08:30 Then DRN ON
If Time > 09:00 Then DRN OFF
If Time > 12:00 Then FIL ON
If Time > 12:30 Then FIL OFF
If Time > 12:30 Then DRN ON
If Time > 13:00 Then DRN OFF
If Time > 16:00 Then FIL ON
If Time > 16:30 Then FIL OFF
If Time > 16:30 Then DRN ON
If Time > 17:00 Then DRN OFF
If Time > 20:00 Then FIL ON
If Time > 20:30 Then FIL OFF
If Time > 20:30 Then DRN ON
If Time > 21:00 Then DRN OFF

reefscrapper
02/16/2008, 03:57 PM
anyone?

reefscrapper
02/16/2008, 08:02 PM
:(

bmwardo
02/17/2008, 11:00 AM
I am really new at this but something along the lines of this might work. Someone please correct me or point out my logical errors as I am learning too.

If Time > 08:00 Then FIL ON
OSC 30/210 Then FIL ON
If Time > 20:30 Then FIL OFF

If Time > 08:30 Then DRN ON
OSC 30/210 Then DRN ON
If Time > 2100 Then DRN OFF

Again, someone fill me in on the logic of this code and it's operation because for some reason I thought that any If statements overruled any OSC statements.

reefscrapper
02/17/2008, 11:39 PM
Thank you for the reply, I will give that code a try, as bmwardo said, if anyone see's a problem with the above code please chime in. Thank you very much for taking the time to figure that out bm..

bmwardo
02/18/2008, 09:06 AM
Oh you may need the "ON/OFF" statement after the "30/210" and before the "Then FIL or DRN." Sorry I forgot about that.