Omron CS1G/H-CPUxxH Instructions Manual page 663

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Table Data Processing Instructions
3-17-8 DATA SEARCH: SRCH(181)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
642
Searches for a word of data within a range of words.
In CS1-H, CJ1-H, and CJ1M CPU Units, this instruction can be run in the
background. Refer to the CS/CJ Series Programmable Controllers Program-
ming Manual for details on background execution.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
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.
15
C
15
14
C+1
000 0000
Output selection
0: Does not output number of
matches.
1: Outputs number of matches.
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.)
Note R1 and R1+C–1 must be in the same data area.
SRCH(181)
C
C: First control word
R1
R1: First word in range
Cd
Cd: Comparison data
Step program areas
OK
0
Number of words in range
0
0000
0000
0
Output selection
0000 hex: Does not output number of
matches.
8000 hex: Outputs number of matches.
15
R1
Search range
to
---
R1+(C–1)
Section 3-17
SRCH(181)
@SRCH(181)
Not supported.
Subroutines
Interrupt tasks
OK
OK
0

Advertisement

Table of Contents
loading

Table of Contents