![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268762.webp)
723
Table Data Processing Instructions
Section 3-17
3-17-8 DATA SEARCH: SRCH(181)
Purpose
Searches for a word of data within a range of words.
In CS1D CPU Units for Single-CPU Systems and CS1-H, CJ1-H, and CJ1M
CPU Units, this instruction can be run in the background. Refer to the
CS/CJ
Series Programmable Controllers Programming Manual
for details on back-
ground execution.
Ladder Symbol
Variations
Applicable Program Areas
Operands
C and C+1: Control words
C specifies the number of words in the range and bit 15 of C+1 indicates
whether or not to output the number of matches to DR00.
Note
C and C+1 must be in the same data area.
R1: First word in range
R1 specifies the first word in the search range. The words from R1 to R1+(C–
1) are searched for the desired data. (C is the number of words set in C.)
SRCH(181)
C
R1
Cd
C
: First control word
R1
: First word in range
Cd
: Comparison data
Variations
Executed Each Cycle for ON Condition
SRCH(181)
Executed Once for Upward Differentiation
@SRCH(181)
Executed Once for Downward Differentiation
Not supported.
Immediate Refreshing Specification
Not supported.
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
15
0
C
15
0
14
C+1
000
0000
0000
0000
0
Output selection
Output selection
0000 hex: Does not output number of
matches.
8000 hex: Outputs number of matches.
Number of words in range
0: Does not output number of
matches.
1: Outputs number of matches.
R1
R1+(C–1)
15
0
---
to
Search range
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...