PDA

View Full Version : AC3 code help please


richierich2000
10/30/2011, 06:12 PM
hooking up a Socket Expansion to turn off my main pump when feed timer is on.

what code should I use?

this is what I have now
If Time > 11:35 Then LT7 OFF to turn off relay(pump on)

If FeedA 000 Then LT7 ON to turn on the relay(pump off)

kenargo
10/31/2011, 04:42 PM
What are you using to control the Socket Expansion; by itself the Socket Expansion is not contollable? Are you using a DC4 or DC4 or a X10 device and what is LT7?

richierich2000
10/31/2011, 04:58 PM
Using a dc-8 LT7 is A-6

kenargo
10/31/2011, 05:48 PM
The programming to turn off LT7 during Feed is:

if Time > 00:00 Then LT7 ON
If FeedA 000 Then LT7 Off

richierich2000
10/31/2011, 06:45 PM
ok so I need to have > 00:00 to keep it off other than when the feed timer is on.

isn't that backwards?

should it be
if Time > 00:00 Then LT7 OFF
If FeedA 000 Then LT7 ON

RussM
10/31/2011, 07:21 PM
You might want to explain what you are doing. Having your main pump off except during feeding doesn't make sense to me.

richierich2000
10/31/2011, 07:31 PM
sorry I need to back up I have two Socket Expansion hooked up but I didn't what to have one on all the time so I used a DPDT normally closed relay.

So when the feed timer is on I want it to turn the relay on. But the rest of the time off so the pump is on.