![Omron CJ1G-CPU series Programming Manual Download Page 139](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489139.webp)
118
Table Data Processing Instructions
Section 3-15
SWAP BYTES
SWAP
@SWAP
637
Output
Required
FIND MAXIMUM
MAX
@MAX
182
Output
Required
FIND MINIMUM
MIN
@MIN
183
Output
Required
SUM
SUM
@SUM
184
Output
Required
FRAME
CHECKSUM
FCS
@FCS
180
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
N: Number of
words
R1: 1st word in
range
SWAP(637)
N
R1
Byte position is swapped.
N
R1
Switches the leftmost and rightmost bytes in all of the words in the range.
C: 1st control
word
R1: 1st word in
range
D: Destination
word
MAX(182)
C
R1
D
R1+(W–1)
R1
PLC memory
address
Max.
value
C words
Finds the maximum value in the range.
C: 1st control
word
R1: 1st word in
range
D: Destination
word
MIN(183)
C
R1
D
R1+(W–1)
R1
PLC memory
address
Min. value
C words
Finds the minimum value in the range.
C: 1st control
word
R1: 1st word in
range
D: 1st destination
word
SUM(184)
C
R1
D
)
R1+(W–1)
R1
Adds the bytes or words in the range and outputs the result to two words.
C: 1st control
word
R1: 1st word in
range
D: 1st destination
word
FCS(180)
C
R1
D
C units
Calculation
FCS value
ASCII conversion
R1
Calculates the ASCII FCS value for the specified range.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...