PDA

View Full Version : AC Jr programing question


shikhyung
09/19/2010, 10:26 PM
Hi,
Can I use the OSC code to turn the pump on for 002/058 but only 16 hours/day?
Thanks.

schwaggs
09/20/2010, 07:13 AM
If I am reading this correctly, you wish to have the pump oscillate on 2 minutes and off 58 minutes for 16 hours a day?

You can do this directly with the following commands if you don't care which 16 hours the pump is enabled. This will run the pump for 2 minutes every hour from midnight to 16:00 and from 16:00 to midnight the pump will be off:

OSC 002/058 ON/OFF Then PM1 ON
If Time > 16:00 Then PM1 OFF

If you want more control over the off hours, you will need to use another outlet. Either use a virtual outlet like in the example below or you could use an existing outlet on your system such as your lighting outlet.

If Time > 04:00 Then VIR ON
If Time > 20:00 Then VIR OFF
OSC 002/098 ON/OFF Then PM1 ON
If Timer VIR = OFF Then PM1 OFF

shikhyung
09/21/2010, 01:35 PM
Thank you. That is what I want. Question on the second program
If use virtual outlet, I don't loose any outlet, correct?

schwaggs
09/22/2010, 06:34 AM
I beleive the AC Jr maxes out at 12 outlets. So if you have 12 already, you would lose one to create a virtual outlet. If you only have 8 outlets, you can create up to 4 additional virtual outlets without losing one of your real outlets. Just define the virtual outlet at an address not used by your DC8 or other modules.

shikhyung
09/22/2010, 11:01 PM
Thanks.