PDA

View Full Version : Programming Question


abigdog1976
01/22/2009, 10:45 PM
I have two pumps that I would like to oscillate with this statement:

OSC 10/5 ON/OFF Then PM1 ON
OSC 10/5 ON/OFF Then PM3 OFF

This works well, but I would like to have these pumps come on at 07:00 and go off at 19:00. If I write a statement that says:

If Time > 07:00 Then PM1 ON
If Time > 19:00 Then PM1 OFF
If Time > 07:00 Then PM3 ON
If Time > 19:00 Then PM3 OFF

Will this disrupt the OSC statements?

d0ughb0y
01/22/2009, 11:02 PM
yes it will interfere with the osc commands.

You need to use another device (say a light or create a dummy device)

If Time > 07:00 Then MHL ON
If Time > 19:00 Then MHL OFF

OSC 10/5 ON/OFF Then PM1 ON
OSC 10/5 ON/OFF Then PM3 OFF

If MHL=OFF Then PM1 OFF
If MHL=OFF Then PM3 OFF

when MHL is on, the osc states are left as is, if MHL is off, it overrides the osc states to off. Make sure the If MHL statements are after the OSC statements, as order is relevant.

abigdog1976
01/22/2009, 11:09 PM
When i try to use the statement: MHL=OFF Then PM1 OFF

Aquanotes tells me that it is not a valid keyword following if

abigdog1976
01/22/2009, 11:12 PM
Figured this part out. Now i have one more question. How do i turn a timer on constantly?

surge19us
01/23/2009, 09:59 AM
<a href=showthread.php?s=&postid=14220705#post14220705 target=_blank>Originally posted</a> by abigdog1976
Figured this part out. Now i have one more question. How do i turn a timer on constantly?

I think you could just go in to manual control and set that timer to the "ON" position instead of "AUTO"

ciphros
01/23/2009, 12:32 PM
You can also just assign the timer to be on after 00:00

if time > 00:00 Then TMR ON

If you don't tell it when to turn off, it will be on always, but you could still assign a power statement if you use a delay for that device to start up again in the case of a power bump.