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...
3. Instructions
628
CS/CJ/NSJ Series Instructions Reference Manual (W474)
C: First control word
D1: First destination word
D2: Destination index register
z Operand Specifications
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
C
OK OK OK OK OK OK OK OK OK OK ---
---
--- OK
--- --- --- ---
S1
S2
D1
D2 --- --- --- --- --- --- --- --- --- --- OK OK ---
C
0
15
C+1
0
15
C+2
0
15
0
C+4
C+5
C+6
C+7
15
Setting to End Search Disabled
C+4: Always 0.
C+5: Always 0.
C+6: Always 0.
C+7: Always 0.
End Data Enabled
C+4 to C+7: End data
(0000 0000 0000 0000 to FFFF FFFF FFFF FFFF hex)
Store the end data in the following order starting from C+4:
Lowest 16 bits, lower 16 bits, higher 16 bits, highest 16 bits.
End PLC Memory Address Enabled
C+4: Lower word of PLC memory address
C+5: Upper word of PLC memory address
C+6: Always 0.
C+7: Always 0.
C+3
0
15
03478
15 14
0000000
Number of records:
1 to 8192 decimal (maximum: 8,192)
Record length (in words):
4 to 1024 decimal (maximum: 1,024)
Search data offset (in words):
0 to 1010 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.
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