Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 617

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Table Data Processing Instructions
Examples
3-16-8 DATA SEARCH: SRCH(181)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
584
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.
0.01
IR
D1000
Searches for a word of data within a range of words.
SRCH(181)
C
R1
Cd
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
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 DR0.
15
C
Number of words in range
15
14
C+1
000 0000
0000
Output selection
0: Does not output number of
matches.
1: Outputs number of matches.
PLC memory
address
Table number 10
Record number: 0
to
Record number 3
D1000
C: First control word
R1: First word in range
Cd: Comparison data
Step program areas
Subroutines
OK
0
0
0000
0
Output selection
0000 hex: Does not output number of
matches.
8000 hex: Outputs number of matches.
Section 3-16
Record containing
address 10000.
SRCH(181)
@SRCH(181)
Not supported.
Interrupt tasks
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents