Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual page 167

Programmable controllers
Table of Contents

Advertisement

Table Data Processing Instructions
Instruction
Symbol/Operand
Mnemonic
Code
SWAP BYTES
SWAP(637)
SWAP
@SWAP
637
N: Number of
words
R1: 1st word in
range
FIND MAXIMUM
MAX(182)
MAX
@MAX
182
C: 1st control
word
R1: 1st word in
range
D: Destination
word
FIND MINIMUM
MIN(183)
MIN
@MIN
183
C: 1st control
word
R1: 1st word in
range
D: Destination
word
SUM
SUM(184)
SUM
@SUM
184
C: 1st control
word
R1: 1st word in
range
D: 1st destination
word
FRAME CHECK-
FCS(180)
SUM
FCS
@FCS
180
C: 1st control
word
R1: 1st word in
range
D: 1st destination
word
Switches the leftmost and rightmost bytes in all of the words in the
range.
Byte position is swapped.
N
R1
R1
Finds the maximum value in the range.
C
R1
R1
D
R1+(W−1)
Finds the minimum value in the range.
C
R1
R1
D
R1+(W−1)
Adds the bytes or words in the range and outputs the result to two
words.
C
R1
D
R1+(W−1)
)
Calculates the ASCII FCS value for the specified range.
C
R1
R1
D
Calculation
Function
Internal I/O
memory address
C words
Max.
value
Internal I/O
memory address
C words
Min. value
R1
C units
ASCII conversion
FCS value
Section 3-15
Location
Execution
condition
Output
Required
N
Output
Required
Output
Required
Output
Required
Output
Required
127

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 12-2009 and is the answer not in the manual?

Questions and answers

Table of Contents