jthornton
Member
I have a 4 position switch that is connected to inputs 0, 1, 2 of an AB SLC500 L511 processer. The following Table (thanks Terry for showing me how) describes the hookup.
Is there a different solution than the following
to reduce the amount of user words used or shorten the code any?
Thanks Guys for all the help
John
Input States at each Position
--------+-------+-------+--------
|Inputs > 0 | 1 | 2 |
--------+-------+-------+--------
| Pos 1 | Off | Off | Off |
--------+-------+-------+-------+
| Pos 2 | On | Off | Off |
--------+-------+-------+--------
| Pos 3 | Off | On | Off |
--------+-------+-------+-------+
| Pos 4 | Off | Off | On |
--------+-------+-------+--------
Desired Results are to place into
N7:0 the following values according
to the selector positon
--------+--------
| Pos 1 | 3 |
--------+-------+
| Pos 2 | 4 |
--------+-------+
| Pos 3 | 5 |
--------+-------+
| Pos 4 | 6 |
--------+-------+
Is there a different solution than the following
to reduce the amount of user words used or shorten the code any?
Thanks Guys for all the help
John