Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 659

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
RSORT
Instruction
UNSIGNED ONE-WORD
RECORD SORT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
First control word
S1
First word of first record to sort
D1
First word of sorting results
D2
Destination index register
S: First word of first record to sort
15
S
C: First control word
15
C
15
C+1
15
C+2
622
Mnemonic
Variations
RSORT
@RSORT
Block program areas
Step program areas
OK
OK
Description
0
0
Number of records:
1 to 32768 decimal
(maximum: 32,768)
0
Record length (in words):
1 to 1024 decimal
(maximum: 1,024)
0
Sort data offset (in words):
0 to 1023 decimal
Function
code
Sorts the records in the specified table according
203
to the data (1 word) at the specified position in the
records.
RSORT
RSORT(203)
C
C: First control word
S
S: First word of first record to sort
D1: First word of sorting results
D1
D2
D2: Destination index register
Subroutines
Interrupt tasks
OK
15
14
C+3
0 0 0 0 0 0 0 0 0 0 0 0 0 0
Always 0.
0: Disable split sort
1: Enable split sort
15
14
C+4
0 0 0 0 0 0 0 0 0 0 0
Always 0.
Index register output designation
0: Do not output
1: Output
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Data type
Size
WORD
87
WORD
Variable
WORD
1
DWORD
2
1
0
0
0: Ascending
1: Descending
4 3
0
0
Setting to end sorting
0 hex: Disabled
1 hex: Enabled for end data
2 hex: Enabled for end PLC
memory address

Advertisement

Table of Contents
loading

Table of Contents