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

Table of Contents

Advertisement

0 0 0 8
Number of records = 8
C: D0
Record length = 5 words
0 0 0 5
C+1: D1
Search data offset = 2 words
0 0 0 2
C+2: D2
Index register output designation: Output
8 0 0 1
C+3: D3
Search method = Linear, Setting to end search = Effective end data
0 0 0 0
C+4: D4
End data = 0000 hex
0 0 0 0
C+5: D5
Always 0000 hex.
Step 1: Corresponding records output using the RSRCH= instruction.
0.0
P EQ
P CY
Step 2: Records moved forward with the XFER instruction to fill in the space of the matching record.
W0.0
CS/CJ/NSJ Series Instructions Reference Manual (W474)
RSRCH=
First control word: D0
D0
First word of first record: D1000
D1000
Search data: 0006 hex
First destination word: D100
#0006
Destination IR: IR0
D100
IR0
W0.0
Matching record found.
W0.1
Matching record not found.
Number of records
1
&7
D100
Record number of matching record
W0
Number of transferred records
*U
Record length
&5
Number of transferred records
W0
Number of transferred words
W1
XFER
W1
Number of words: Words for all records
5,IR0
First source word: First word of matching record + Record length
,IR0
First destination word: First word of matching record
3. Instructions
Record number of matching record
611
3

Advertisement

Table of Contents
loading

Table of Contents