Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 669

Table of Contents

Advertisement

C: First control word
15
C
15
C+1
15
C+2
15
14
C+3
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0: Disable split sort
1: Enable split sort
15
14
C+4
0 0 0 0 0 0 0 0 0 0 0
Index register output designation
0: Do not output
1: Output
15
C+5
C+6
Searching with the Setting to End the Sort Disabled
C+5: Always 0.
C+6: Always 0.
Searching with End Data Enabled to End the Sort
C+5: Sort end data
(0000 0000 to FFFF FFFF hex)
C+6: Sort end data (0000 0000 to FFFF FFFF hex)
Searching with PLC Memory Address Enabled to End the Sort
C+5: Lower word of end PLC memory address
C+6: Upper word of end PLC memory address
15
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
C+7 to C+86
D1: First word of sorting results
15
D1
D2: Destination index register
IR**
D2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0
Number of records: 1 to 16384 decimal (maximum: 16,384)
0
Record length (in words): 2 to 1024 decimal (maximum: 1,024)
0
Sort data offset (in words): 0 to 1022 decimal
1
0
0
Always 0.
0: Ascending
1: Descending
4 3
0
0
Always 0.
Setting to end sorting
0 hex: Disabled
1 hex: Enabled for end data
2 hex: Enabled for end PLC memory address
0
0
System word area
Always clear C+7 to 0 before starting to sort records.
0
Number of records that were sorted
This word contains the number of records that were sorted.
0
One higher than the PLC memory address of the last word in
the range of records that was sorted. If index register output is
not specified in D+4, then 0000 0000 hex is stored in D2.
3. Instructions
3
633

Advertisement

Table of Contents
loading

Table of Contents