Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 629

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Table Data Processing Instructions
Description
Flags
596
Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
SUM(184) adds C units of data beginning with the data in R1 and outputs the
result to D+1 and D. The settings in C+1 determine whether the units are
words or bytes, whether the data is binary (signed or unsigned) or BCD, and
whether to start with the right or left byte of R1 if bytes are being added.
When bit 14 of C+1 has been set to 0, SUM(184) treats the data as binary. In
this case, bit 15 determines whether the data is signed (bit 15 = 1) or
unsigned (bit 15 = 0).
When bit 13 of C+1 has been set to 1, SUM(184) adds bytes of data. In this
case, bit 12 determines whether the calculation starts with the rightmost byte
of R1 (bit 12 = 1) or the leftmost byte of R1 (bit 12 = 0).
S
+)
D+1
D
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
C
D0 to D32766
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
Specified values
---
only
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Table length
specified in C
The actual table length specified
in C depends upon the units
(words or bytes) set in C+1.
Operation
ON if the content of C is not within the specified range of
0001 through FFFF.
ON if the BCD data has been specified, but the range
contains binary data.
ON if the Communications Port Enabled Flag for the com-
munications port number specified as the Com Port num-
ber for Background Execution is OFF when background
processing is specified (CP1H only).
OFF in all other cases.
ON if the result is 0000.
OFF in all other cases.
ON if bit 15 is ON in the result.
OFF in all other cases.
Section 3-16
R1
D
D0 to D32766

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents