Omron SYSMAC CS Series Instruction & Reference Manual page 533

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

Advertisement

SRCH
Instruction
DATA SEARCH
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
First control word
R1
First word in range
Cd
Comparison data
C: First control word
15
C
15
14
C+1
000
0000
Output selection
0: Does not output number of matches to DR0.
1: Outputs number of matches to DR0.
 Operand Specifications
Word addresses
Area
CIO
WR
HR
C
R1
OK
OK
OK
Cd
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SRCH
@SRCH
Block program areas
Step program areas
OK
OK
Description
0
W: Number of words in range
&1 to &65535 (decimal) or
#0001 to #FFFF (hex)
0
0000
0000
0
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Searches for a word of data within a range of
181
words.
SRCH
SRCH(181)
C: First control word
C
R1: First word in range
R1
Cd
Cd: Comparison data
Subroutines
OK
Data type
UDINT
UINT
WORD
R1: First word in range
15
R1
to
R1+(W–1)
Note C and C+1, R1 and R1+W-1 must be in the
same data area.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
---
OK
OK
---
OK
OK
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
2
Variable
1
0
Search range
---
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
3
TR
bits
---
---
499

Advertisement

Table of Contents
loading

Table of Contents