O
pe
ra
to
r
P
an
el
E
xa
m
ple
s
5--7
Programming Examples
Examples Using Allen-Bradley
t
SLC 5/03, 5/04 and
Micrologix PLCs
OptiMate panels interface to Allen-Bradley SLC 5/03, SLC 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--414 with an Allen-Bradley PLC, always be sure that at
least 15 words of memory are allocated to allow proper communications.
Displaying the numeric data in one of the six field points is a very simple process.
During the initial configuration, make sure you define the point as a display point, not
a setpoint. Displaying the numeric data requires that the PLC put the value to be
displayed in the register(s) associated with the display data field.
The figure below illustrates a display application for an A--B PLC.
Notice that the
base address is N7:0, so N7:02 is M+2.
Also, field point 2 is set for display in BCD
format. A value held in N7:45 will be written to N7:2 (and displayed as field point 2) as
long as B2:22/3 is active.
To display a Binary number, configure the field point for display and binary, and use
the MOV command to display the value.
B3:22
Puts the value from N7:45 into field point 2.
3
MOVE
Source
N7:2
Dest
MOV
N7:45
Field point 3 data cell 2 (long BCD)
Field point 1 data cell
Field point 1 data cell 2 (long BCD)
Field point 2 data cell
Field point 2 data cell 2 (long BCD)
Field point 3 data cell
Field point 4 data cell
Function
M+0 (N7:0)
M+1 (N7:1)
M+2 (N7:2)
M+5 (N7:5)
M+6 (N7:6)
M+3 (N7:3)
M+4 (N7:4)
PLC
Register
Field point 6 data cell 2 (long BCD)
Field point 4 data cell 2 (long BCD)
Field point 5 data cell
Field point 5 data cell 2 (long BCD)
Field point 6 data cell
Field point force data cell
M+7 (N7:7)
M+8 (N7:8)
M+11 (N7:11)
M+12 (N7:12)
M+9 (N7:9)
M+10 (N7:10)
Field point force data cell 2 (long BCD)
Force control bits
M+13 (N7:13)
M+14 (N7:14)
FP5
FP6
FSP
FP1
FP2
FP3
FP4
Register
(Example
Address)
Interfacing to A-B
Memory
Displaying
Numeric Data