120 Programmable Logic Controllers: Hardware and Programming
0000
0001
0002
0003
0004
0005
Switch #1 Latch #1
B3:0 I:0
0 0
L
End
Switch #2 Latch #2
B3:0 I:0
1 1
L
Pushbutton #1 Latch #1
B3:0 I:0
2 0
U
Pushbutton #2 Latch #2
B3:0 I:0
3 1
U
Latch #1 Green light
O:0 B3:0
0 0
Latch #2 Red light
O:0 B3:0
1 1
0006
Input Ports Output Ports
Switch #1 = I:0/0
Switch #2 = I:0/1
Pushbutton #1 = I:0/2
Pushbutton #2 = I:0/3
Green light = O:0/0
Red light = O:0/1
Table 6-4. Input/output address assignments for Figure 6-23.
Figure 6-25. PLC ladder logic diagram for the relay logic diagram shown in Figure 6-22.