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...
625
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Tracking Instructions
3
RSRCH2<, RSRCH2<=, RSRCH2=,
RSRCH2>, RSRCH2>=
C: First control word
D1: First destination word
D2: Destination index register
C
0
15
C+1
0
15
C+2
0
15
0
C+4
C+5
15
C+3
0
15
03478
15 14
0000000
Number of records: 1 to 16384 decimal (maximum: 16,384)
Record length (in words): 2 to 1024 decimal (maximum: 1,024)
Search data offset (in words): 0 to 1022 decimal
Setting to end search
0 hex: Disabled
1 hex: Enabled for end data (only for linear searches)
2 hex: Enabled for end PLC memory address
Search method
0 hex: Linear (Searches records in order from the specified first record.)
1 hex: Split search, ascending
2 hex: Split search, descending
Index register
output designation
OFF: Do not output
ON: Output
Always 0.
Setting to End Search Disabled
C+4: Always 0.
C+5: Always 0.
End Data Enabled
C+4 and C+5: End data (0000 0000 to FFFF FFFF hex)
End PLC Memory Address Enabled
C+4: Lower word of PLC memory address
C+5: Upper word of PLC memory address
D1
0
15
D1+1
0
15
Matching record number
Contains the record number of the matching record.
(The first record is record 0.)
Matching record data
(All record data for record length.)
to
D2
0
IR**
The PLC memory address of the first word of the
matching record is stored in the specified index
register. If index register output is not specified in
C+3, then 0000 0000 hex is stored in D2.

Table of Contents

Related product manuals