jtashaffer
Member
When writing a program using 3 spst switces to trun on a light, all are interlocked so only one can be on at a time. How would I use a bit to interlock them insted of the inputs?
When writing a program using 3 spst switces to trun on a light, all are interlocked so only one can be on at a time. How would I use a bit to interlock them insted of the inputs?
I1 I2 I3 Light
---] [-----]/[-----]/[-----------+------------( )
|
I1 I2 I3 |
---]/[-----] [-----]/[-----------+
|
I1 I2 I3 |
---]/[-----]/[-----] [-----------|
How would I use a bit to interlock them insted of the inputs?
SW1 SW2 SW3 INTERLOCK
1 0 0 0
0 1 0 0
1 1 0 1
0 0 1 0
1 0 1 1
0 1 1 1
1 1 1 1
Actually, shouldn't the lower rung be I:1/2 AND I:1/3, not I:1/2 OR I:1/3?With all 3 switches on, Tim's interlock would look like the attached picture.
Redrawn diagram that rootboy posted.
I1 I2 I3 Light
---] [-----]/[-----]/[-----------+------------( )
|
I1 I2 I3 |
---]/[-----] [-----]/[-----------+
|
I1 I2 I3 |
---]/[-----]/[-----] [-----------|
Sorry, Eric. I first tried to use Tim's logic, but then realized it had an error, so had to figure out how to fix it.EDIT: Oh sure, Lancie... Fix your picture on me...