Thread: Can You Help?
View Single Post
Old May 30th, 2005, 09:01 PM   #6
Terry Woods
Member
United States

Terry Woods is offline
 
Join Date: Apr 2002
Posts: 3,170
Buddha...

Let's see if we can make some sense out of this...

You have an automatic control and a manual control for two lights.

The automatic control of Light #1 (Y432) & Light #2 (Y434) is as follows...
1. A Push Button (X402) is pressed.
2. A 10-sec delay then both lights go on.
3. Another 10-sec delay then both lights go off.

Manual Control of Light #1 (Y432)
1. Pressing Push Button (X407) turns Light #1 (Y432) ON.
2. Pressing Push Button (X412) turns Light #1 (Y432) OFF.

Manual Control of Light #2 (Y434)
1. Pressing Push Button (X410) turns Light #2 (Y434) ON.
2. Pressing Push Button (X413) turns Light #2 (Y434) OFF.

Manual Control over-rides the Automatic Control.

Let's say that the Automatic sequence has been started but neither light has come on yet. Then, before the lights come on, you press the Manual ON Button for Light #1.

Since Manual Control over-rides Automatic Control, I certainly expect that Light #1 will go on immediately. However, I wonder what happens with Light #2? Is it still under Automatic Control? Will Light #2 eventually come on for 10-sec and then go off?

The real question is... Is the Automatic Control disabled while either light is in Manual Control?

If so, then, when the Automatic Sequence has both lights on, turning on either light in Manual will cause the other light to turn off. Is that your intent?

Just for the sake of moving on, I'll assume that activating the Manual Control for either light causes the Automatic Control to be disabled.


So... you have two lights.

Light #1 is controlled by the Automatic Sequence or the Light #1 Manual Over-Ride.
Light #2 is controlled by the Automatic Sequence or the Light #2 Manual Over-Ride.

Light #1 Manual Control:
If ( ON-PB for #1 -OR- Light #1 Manual ON )
AND NOT OFF-PB for #1
... then Light #1 Manual ON

Light #2 Manual Control:
If ( ON-PB for #2 -OR- Light #2 Manual ON )
AND NOT OFF-PB for #2
... then Light #2 Manual ON

Automatic Control:
If (Auto-PB -OR- Run Auto Sequence)
AND NOT Auto Sequence Done
AND NOT Light #1 Manual ON
AND NOT Light #2 Manual ON
... then Run Auto Sequence

If Run Auto Sequence
... then Run Timer-1 (10-sec) and Run Timer-2 (20-sec)

If Run Auto Sequence
AND Timer-1 Timeout
AND NOT Timer-2 Timeout
... then AUTO-ON

If Timer-2 Timeout
... then Auto Sequence Done


Light #1:
If Auto-ON -OR- Light #1 Manual ON then Light #1

Light #2:
If Auto-ON -OR- Light #2 Manual ON then Light #2

Now... you build the ladder.
  Reply With Quote