
Applying Ladder Logic
21
Allen-Bradley Memory--
A typical address for Allen-Bradley might be N7:0/0 or
N27:0/0. The OP-1212 will allow you to define your starting address for mapping
purposes using either Allen-Bradley’s integer (N7) file type or
user-defined
integer
file types (N9--N255).
If you plan to use an integer file between N9 and N255, it must
be defined in the Allen-Bradley memory map before configuring the panel.
Below
diagrams show how 16-bit integer files could be used to map the pushbuttons to the
Allen-Bradley PLC.
12 11 10 9 8 7 6 5 4 3 2 1
N7: 0/0--0/15
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bit
Integer File Type
N7: 1/0--1/15
Integer File Type
User-Defined
N7: 2/0--2/15
N7: 3/0--3/15
N7: 4/0--4/15
N7: 5/0--5/15
Indicator Lamp ON/OFF
Indicator Lamp Flash
Button LEDs ON/OFF
Button LEDs Flash
Button ON/OFF
Force Data & Comm
N27: 0/0--0/15
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bit
N27: 1/0--1/15
N27: 2/0--2/15
N27 :3/0--3/15
N27: 4/0--4/15
N27: 5/0--5/15
Indicator Lamp ON/OFF
Indicator Lamp Flash
Button LEDs ON/OFF
Button LEDs Flash
Button ON/OFF
Force Data & Comm
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
M1M2M3
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
12 11 10 9 8 7 6 5 4 3 2 1
M1M2M3
After the address has been selected and mapped, it will allow the ladder logic to treat
pushbuttons as contacts and Lamps, and LEDs as coils. The following table is an
example of the control relay correlation for the SLC or Micrologix to the OP-1212
when the address is configured for N7:0. Use the work sheet in
Appendix A
for your
application.
Device Lamp
ON/OFF
Lamp
Flash
Button
LED ON/
OFF
Button
LED
Flash
Button
Status
Force
Function
1
N7:0/0
N7:1/0
N72/0
N7:3/0
N7:4/0
N7:5/0
2
N7:0/1
N7:1/1
N7:2/1
N7:3/1
N7:4/1
N7:5/1
3
N7:0/2
N7:1/2
N7:2/2
N7:3/2
N7:4/2
N7:5/2
4
N7:0/3
N7:1/3
N7:2/3
N7:3/3
N7:4/3
N7:5/3
5
N7:0/4
N7:1/4
N7:2/4
N7:3/4
N7:4/4
N7:5/4
6
N7:0/5
N7:1/5
N7:2/5
N7:3/5
N7:4/5
N7:5/5
7
N7:0/6
N7:1/6
N7:2/6
N7:3/6
N7:4/6
N7:5/6
8
N7:0/7
N7:1/7
N7:2/7
N7:3/7
N7:4/7
N7:5/7
9
N7:0/8
N7:1/8
N7:2/8
N7:3/8
N7:4/8
N7:5/8
10
N7:0/9
N7:1/9
N7:2/9
N7:3/9
N7:4/9
N7:5/9
11
N7:0/10
N7:1/10
N7:2/10
N7:3/10
N7:4/10
N7:5/10
12
N7:0/11
N7:1/11
N7:2/11
N7:3/11
N7:4/11
N7:5/11
M3
N7:5/13
M2
N7:5/14
M1
N7:5/15