M
<P>I'm in a controls class in college, and I'm trying to figure out the logic for our first homework. Heres the problem statement.
<P>1. After pressing start button (R000.2) the program will begin running motor #1 (R015.0)
<P>2. Motor #1 runs until limit switch 1 (R 000.0) is pressed. When LS1 is detected, motor #1 turns off and motor #2 turns on.
<P>3. Motor #2 runs until LS2 (R000.1) is detected. When LS2 is detected, motor #2 turns off and motor #1 turns back on.
<P>4. The cycle must be self sustaining until stop button(R000.3) is pushed. All switches are Normally Open, momentary switches.
<P>Here's the logic that I have come up with... but we only have one shot at getting it right due to time constraints in class. If we get it wrong we have to get this one working, plus have another one done for the next week also.
<P>Here's what I've come up with, can anybody tell me if my logic is correct??
<PRE>
| Start Stop
|--| |------|\|----(run)--------|
| | |
| run | |
|---| |----| |
| |
| |
| |
| run LS1 |
|--| |------|\|----(Motor 1)----|
| | |
| LS2 | |
|---| |----| |
| |
| |
| run LS2 |
|--| |------|\|----(Motor 2)----|
| |
| LS1 |
|---| |----|
|
|
</PRE>
<P>1. After pressing start button (R000.2) the program will begin running motor #1 (R015.0)
<P>2. Motor #1 runs until limit switch 1 (R 000.0) is pressed. When LS1 is detected, motor #1 turns off and motor #2 turns on.
<P>3. Motor #2 runs until LS2 (R000.1) is detected. When LS2 is detected, motor #2 turns off and motor #1 turns back on.
<P>4. The cycle must be self sustaining until stop button(R000.3) is pushed. All switches are Normally Open, momentary switches.
<P>Here's the logic that I have come up with... but we only have one shot at getting it right due to time constraints in class. If we get it wrong we have to get this one working, plus have another one done for the next week also.
<P>Here's what I've come up with, can anybody tell me if my logic is correct??
<PRE>
| Start Stop
|--| |------|\|----(run)--------|
| | |
| run | |
|---| |----| |
| |
| |
| |
| run LS1 |
|--| |------|\|----(Motor 1)----|
| | |
| LS2 | |
|---| |----| |
| |
| |
| run LS2 |
|--| |------|\|----(Motor 2)----|
| |
| LS1 |
|---| |----|
|
|
</PRE>