EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 617

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
584
Table Data Processing Instructions Section 3-16
Examples When CIO 0.01 is ON in the following example, GETR(636) finds the record
number of the record that contains the PLC memory address in Index Regis-
ter IR11 and writes this record number to D1000.
3-16-8 DATA SEARCH: SRCH(181)
Purpose Searches for a word of data within a range of words.
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 DR0.
IR
0.01
D1000
D1000
to
Table number 10
Record number: 0
Record number 3
PLC memory
address
Record containing
address 10000.
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 014
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.

Table of Contents

Related product manuals