S
ys
te
m
S
et
up
Yo
ur
P
an
el
C
on
fig
ur
in
g
P
ro
gr
am
m
in
g
E
xa
m
pl
es
5--8
Programming Examples
The OP--414 continuously updates the registers of all setpoints with each setpoint’s
current value. To read a setpoint, simply access the register(s) that correspond to
each setpoint. The data can be copied to another register for manipulation or it can
be accessed in its field point register(s).
Again, notice that the base address is N7:0, so N7:4 is M+4.
Also, field point 3 has
been configured as a setpoint in BCD format with no digits after the decimal. In this
example, field point 3 is a Target value setpoint. The program below compares the
setpoint 3 with the value held in N7:52. Since the value in the compare is a decimal
value, use the FRD instruction to convert the setpoint N7:4 from BCD to decimal. If
the value exceeds the setpoint, O:0.0 will be turned on.
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)
Register
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
M+13 (N7:13)
M+14 (N7:14)
If N7:52 is greater than the setpoint
3 value, then O:0.0 energizes.
GREATER THAN
Source A
N7:20
Source B
GRT
N7:52
O:0.0
From BCD
Source A
N7:20
Dest.
FRD
N7:4
(Example
Address)
Convert value from BCD
to decimal.
Reading a Setpoint