3. Instructions
624
CS/CJ/NSJ Series Instructions Reference Manual (W474)
RSRCH2<, RSRCH2<=, RSRCH2=,
RSRCH2>, RSRCH2>=
Applicable Program Areas
Operands
S1: First word of first record to search
S2: First search data word
Instruction Mnemonic Variations
Function
code
Function
Unsigned Two-word Record
Search Instructions
RSRCH2<
RSRCH2<=
RSRCH2=
RSRCH2>
RSRCH2>=
@RSRCH2<
@RSRCH2<=
@RSRCH2=
@RSRCH2>
@RSRCH2>=
370
371
372
373
374
An Unsigned Two-word Record Search Instruction
searches the specified table of records for a record with
the specific data (2 words) in the specified location.
When a record matching the specified condition is
found, its record number and data are output.
Symbol
RSRCH2<, RSRCH2<=, RSRCH2=, RSRCH2>, RSRCH2>=
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
C First control word WORD 6
S1 First word of first record to search WORD Variable
S2 First word of search data DWORD 2
D1 First destination word WORD Variable
D2 Destination index register DWORD 2
C
S1
S2
D1
D2
Symbol
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
0
15
S2+1
S2
0
15
S2: Search data lower word
S2+1: Search data upper word