EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS
1308 pages
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...
615
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Tracking Instructions
3
Tracking Instructions
0.0
W0.0
First control word: D300
First word of first record: D1000
First source results output word: D200
Designation IR: IR1
0.0
W0.0
W0.1
P EQ
P CY
First control word: D0
First word of first record: D1000
Search data: A200 0038 hex
First destination word: D100
Designation IR: Not output (0000 0000 hex)
End PLC memory address: IR1 (output by RSORT2).
Matching record found.
Matching record not found.
Processing
for matching
record
Step 1: The records are sorted in ascending order according to the delivery code using the RSORT2 instruction.
Step 2: The corresponding record is searched for using the RSRCH2= instruction with a split search.
C: D300
C+1: D301
C+2: D302
C+3: D303
C+4: D304
C+5: D305
C+6: D306
C+7: D307
to
C+86: D386
0008
0005
0003
0000
8001
FFFF
FFFF
Number of records = 8
Record length = 5 words
Sorting data offset = 3 words
Split sort setting = Disabled, Ascending
Index register output designation = Output, Setting to end sort = Enabled
End data = FFFF hex
End data = FFFF hex
C: D0
C+1: D1
C+2: D2
C+3: D3
C+4: D4
C+5: D5
0008
0005
0003
0012
0406
0001
RSORT2
RSRCH2
RSORT2
D300
D1000
D200
IR1
RSRCH2=
D0
D1000
A2000038
D100
#00000000
MOVL
IR1
D4
Number of records = 8
Record length = 5 words
Search data offset = 3 words
Index register output designation: Output
Search method = Split search/ascending, Setting to end search = Enabled for PLC memory address
PLC memory address of search end, lower word
PLC memory address of search end, upper word
System
work
area

Table of Contents

Related product manuals