PDA

View Full Version : Dozing with OSC Command Not Working


ansek
08/06/2011, 09:51 PM
I'm trying to use the following to dose kalk using a aqua lifter. I want the pump to run for 30 seconds every hour the lights are off which is between 21:00 and 08:00 Eastern. I want the pump not to run if the pH is above 8.30. For some reason this runs every hour all day.

I originally tried using the Time command instead of the Outlet command to keep the pump off during the day but that didn't work either. What am I doing wrong?

Fallback OFF
If Outlet Light1_3_1 = ON Then OFF
If pH > 08.30 Then OFF
OSC 005:00/000:30/059:30 Then ON
If FeedA 005 Then OFF

Specialtang
08/06/2011, 11:09 PM
I believe it is the order you have them.

ir_danno22
08/06/2011, 11:26 PM
Try:

Fallback OFF
OSC 005:00/000:30/059:30 Then ON
If Outlet Light1_3_1 = ON Then OFF
If pH > 08.30 Then OFF
If FeedA 005 Then OFF

The statements work from the bottom then go up. If the statements are false (or not true)for the feed, pH and lights, then your osc statement will be in effect. If any of those bottom three statements becomes true (feeding time, pH>, light outlet on) the outlet will turn off as you set it in the statements.

RussM
08/07/2011, 07:31 AM
The statements work from the bottom then go up. If the statements are false (or not true)for the feed, pH and lights, then your osc statement will be in effect. If any of those bottom three statements becomes true (feeding time, pH>, light outlet on) the outlet will turn off as you set it in the statements.
Actually, statements are evaluated from the top down. The last statement which is true sets the condition of the outlets. But in effect, it works the same as you describe.

RussM
08/07/2011, 07:35 AM
Fallback OFF
OSC 005:00/000:30/059:30 Then ON
If Outlet Light1_3_1 = ON Then OFF
If pH > 08.30 Then OFF
If FeedA 005 Then OFF

This is good. ansek, if you want to do it based on time as you originally tried, then this will work:

Fallback OFF
OSC 005:00/000:30/059:30 Then ON
If Time 08:00 to 16:59 Then OFF //adjust times as desired
If pH > 08.30 Then OFF
If FeedA 005 Then OFF

ansek
08/07/2011, 03:29 PM
Sorry for the delayed response. Email notification was being blocked.

I switched the order of the statements and will see what happens in a hour. Wish me luck.

Thank you for your help.

ansek
08/07/2011, 07:53 PM
It worked. Thank you all for your help.

ir_danno22
08/08/2011, 04:55 PM
Actually, statements are evaluated from the top down. The last statement which is true sets the condition of the outlets. But in effect, it works the same as you describe.

Thanks,
And right you are. I had to think of some other way that makes sense to me on how these statements work.
df

aculross
08/09/2011, 12:03 PM
This is subtle but I think you have a 65 minute schedule as well -

OSC 005:00/000:30/059:30 Then ON

I believe this is off for 5 min, on for 30 sec, off for 59 min 30 secs