O
pe
ra
to
r
P
an
el
P
ro
gr
am
m
in
g
E
xa
m
ple
s
5--13
Programming Examples
Allen-Bradley
t
SLC 5/03 & 5/04 and Micrologix Examples
OptiMate panels interface to Allen-Bradley SLC 5/03 & 5/04 and Micrologix PLCs via
integer file type N. The 5/03 and 5/04 have file type N7 as standard. Other “N” type
files can be created. The Micrologix has a fixed file type N7. Please see A-B
documentation for information on setting up and using “N” type files.
NOTE:
When using an OP--640 with an Allen-Bradley PLC, always be sure that at
least fourteen words of memory are allocated to allow proper communications.
All of the examples shown assume the OP--640 has been configured (using
OP--WINEDIT) for a file number N7 and base register address 0. With this
configuration, the status register will be at N7:12 and the control register will be at
N7:13. This table relates status register and control register bits to their N7 locations.
Status Register
Control Register
Bit
Location
Bit
Location
Bit
Location
Bit
Location
F1
N7:12/0
L1
N7:13/0
F2
N7:12/1
L2
N7:13/1
F3
N7:12/2
L3
N7:13/2
F4
N7:12/3
L1F
N7:13/3
F5
N7:12/4
L2F
N7:13/4
L3F
N7:13/5
BD
N7:13/6
Lighting a lamp simply requires activating the control relay associated with the lamp.
This example will light lamp L2 when input I:2/12 is active.
L3F
I:2
1
N7:13
12
Lamp L2
F5
F1
F2
F3
F4
Status Register
12
13
14
15
8
9
10
11
4
5
6
7
0
1
2
3
LSB
MSB
Bit
L2F
BD
L1
L2
L3
L1F
Control Register
L2
Interfacing to A-B
Memory
Lighting a Lamp