Omron SYSMAC CS Series Instruction & Reference Manual page 578

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
C: First control word
15
C
15
C+1
15
C+2
15
15 14
8
7
C+3
0 0 0
0 0 0 0
Always 0.
Index register
output designation
OFF: Do not output
ON: Output
D1: First destination word
15
D1
15
D1+1
D2: Destination index register
IR**
D2
 Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
C
S1
OK
OK
OK
OK
S2
D1
D2
---
---
---
---
544
0
Number of records:
1 to 8192 decimal (maximum: 8,192)
0
Record length (in words):
4 to 1024 decimal (maximum: 1,024)
0
Search data offset (in words):
0 to 1010 decimal
4
3
0
0
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
0
Matching record number
Contains the record number of the matching record.
(The first record is record 0.)
0
Matching record data
to
(All record data for record length.)
0
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.
Indirect DM/EM
addresses
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
---
---
---
---
---
15
C+4
C+5
C+6
C+7
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.
Registers
Con-
stants
*DM
DR
IR
*EM
OK
---
---
---
---
OK
OK
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0
Flags
Pulse
TR
bits
bits
Indirect
TK
CF
using IR
OK
---
---
---
---
---

Advertisement

Table of Contents
loading

Table of Contents