EasyManua.ls Logo

Omron CJ - PROGRAMMING MANUAL 12-2009 - Page 167

Omron CJ - PROGRAMMING MANUAL 12-2009
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
127
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 CHECK-
SUM
FCS
@FCS
180
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
N
R1
SWAP(637)
N: Number of
words
R1: 1st word in
range
N
R1
Switches the leftmost and rightmost bytes in all of the words in the
range.
Byte position is swapped.
MAX(182)
C
R1
D
C: 1st control
word
R1: 1st word in
range
D: Destination
word
R1
R1+(W1)
Finds the maximum value in the range.
Internal I/O
memory address
C words
Max.
value
MIN(183)
C
R1
D
C: 1st control
word
R1: 1st word in
range
D: Destination
word
R1
R1+(W1)
Finds the minimum value in the range.
Internal I/O
memory address
C words
Min. value
SUM(184)
C
R1
D
C: 1st control
word
R1: 1st word in
range
D: 1st destination
word
R1
)
R1+(W1)
Adds the bytes or words in the range and outputs the result to two
words.
FCS(180)
C
R1
D
C: 1st control
word
R1: 1st word in
range
D: 1st destination
word
R1
C units
Calculation
Calculates the ASCII FCS value for the specified range.
ASCII conversion
FCS value

Table of Contents

Related product manuals