Omron SYSMAC CS Series Instruction & Reference Manual page 556

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Flags
Name
Error Flag
Equals Flag
Negative Flag
Function
SUM(184) adds W 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 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).
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).
Hint
SUM(184) can be processed in the background. Refer to the SYSMAC CS/CJ/NSJ Series PLC
Programming Manual (W394) or the CJ2 CPU Unit Software Operation Manual (W473) for details.
522
Label
ER
• 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 communications port number specified as the
Com Port number for Background Execution is OFF when background processing is specified.
• OFF in all other cases.
=
• ON if the result is 0.
• OFF in all other cases.
N
• ON if bit 15 is ON in the result.
• OFF in all other cases.
Operation
S
+)
D+1
D
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table length
W: specified in C
The actual table length specified
in C depends upon the units
(words or bytes) set in C+1.

Advertisement

Table of Contents
loading

Table of Contents