3. Instructions
618
CS/CJ/NSJ Series Instructions Reference Manual (W474)
RSRCH<, RSRCH<=, RSRCH=,
RSRCH>, RSRCH>=
Applicable Program Areas
Operands
S1: First word of first record to search
S2: Search data
Instruction Mnemonic Variations
Function
code
Function
Unsigned One-word Record
Search Instructions
RSRCH<
RSRCH<=
RSRCH=
RSRCH>
RSRCH>=
@RSRCH<
@RSRCH<=
@RSRCH=
@RSRCH>
@RSRCH>=
360
361
362
363
364
An Unsigned One-word Record Search Instruction
searches the specified table of records for a record
with the specific data (1 word) in the specified location.
When a record matching the specified condition is
found, its record number and data are output.
Symbol
RSRCH<, RSRCH<=, RSRCH=, RSRCH>, RSRCH>=
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 Search data WORD 1
D1 First destination word WORD Variable
D2 Destination index register DWORD 2
C
S1
S2
D1
D2
C: First control word
S1: First word of first record to search
S2: Search data
D1: First destination word
D2: Destination index register
Symbol
S1
0
15
S2
0
15
Search data