Data Search: Srch(181) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Table Data Processing Instructions

3-17-8 DATA SEARCH: SRCH(181)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
722
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.
SRCH(181)
C
R1
Cd
Variations
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.)
C: First control word
R1: First word in range
Cd: Comparison data
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Step program areas
OK
0
Number of words in range
0
0000
0000
0
15
R1
Search range
to
R1+(C–1)
Section 3-17
SRCH(181)
@SRCH(181)
Not supported.
Subroutines
Interrupt tasks
OK
OK
Output selection
0000 hex: Does not output number of
matches.
8000 hex: Outputs number of matches.
0
---

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents