Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 657

Table of Contents

Advertisement

RSRCH4<, RSRCH4<=, RSRCH4=,
RSRCH4>, RSRCH4>=
Instruction
RSRCH4<
RSRCH4<=
Unsigned Four-word
RSRCH4=
Record Search Instructions
RSRCH4>
RSRCH4>=
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
First control word
S1
First word of first record to search
S2
First word of search data
D1
First destination word
D2
Destination index register
S1: First word of first record to search
15
S1
S2: First search data word
15
S2
S2+1
S2+2
S2+3
S2: Search data lowest word
S2+1: Search data lower word
S2+2: Search data upper word
S2+3: Search data highest word
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
@RSRCH4<
@RSRCH4<=
@RSRCH4=
@RSRCH4>
@RSRCH4>=
RSRCH4<, RSRCH4<=, RSRCH4=, RSRCH4>, RSRCH4>=
Block program areas
Step program areas
OK
OK
Description
0
0
S2
S2+1
S2+2
S2+3
Function
code
380
An Unsigned Four-word Record Search Instruction
381
searches the specified table of records for a record with
382
the specific data (4 words) in the specified location.
383
When a record matching the specified condition is
384
found, its record number and data are output.
Symbol
C: First control word
C
S1: First word of first record to search
S1
S2: First word of search data
S2
D1: First destination word
D1
D2
D2: Destination index register
Subroutines
Interrupt tasks
OK
The data would be set as follows to search for #0123456789ABCDEF.
# C D E F
# 8 9 A B
# 4 5 6 7
# 0 1 2 3
3. Instructions
Function
SFC action or
transition programs
OK
OK
Data type
Size
WORD
8
WORD
Variable
LWORD
4
WORD
Variable
DWORD
2
619
3

Advertisement

Table of Contents
loading

Table of Contents