A-1-16 Tracking Instructions - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
Code
FRAME
FCS
180
CHECKSUM
@FCS
A-1-16
Tracking Instructions
Instruction
Mnemonic
Code
Unsigned
RSRCH
360
One-word
(<),
+
Record
361
<, <=, =, >,
Search
(<=),
>=
Instructions
362
(=),
@RSRCH
363
+
(>),
<, <=, =, >,
364
>=
(>=)
Unsigned
RSRCH2
370
Two-word
(<),
+
Record
371
<, <=, =, >,
Search
(<=),
>=
Instructions
372
(=),
@RSRCH2
373
+
(>),
<, <=, =, >,
374
>=
(>=)
Unsigned
RSRCH4
380
Four-word
(<),
+
Record
381
<, <=, =, >,
Search
(<=),
>=
Instructions
382
(=),
@RSRCH4
383
+
(>),
<, <=, =, >,
384
>=
(>=)
CJ2 CPU Unit Software User's Manual
Symbol/Operand
Calculates the FCS value for the specified range and outputs the
FCS(180)
value in ASCII.
C
R1
D
C: 1st control word
R1: 1st word in
range
D: 1st destination
word
Symbol/Operand
An Unsigned One-word Record Search Instruction searches the
RSRCH
data (1 word) specified by S2, beginning from the table specified
C
by S1. When a record matching the specified condition is found, its
record number and data are output to D1 onwards. When an index
S1
register is specified for D2, the address of the matching record is
S2
output to that index register. To not use an index register output,
D1
set #00000000 for D2.
D2
C: 1st control word
S1: 1st word of first
record to search
S2: Search data
D1: 1st destination
word
D2: Destination index
register
An Unsigned Two-word Record Search Instruction searches the
RSRCH2
data (2 words) specified by S2, beginning from the table specified
C
by S1. When a record matching the specified condition is found, its
record number and data are output to D1 onwards. When an index
S1
register is specified for D2, the address of the matching record is
S2
output to that index register. To not use an index register output,
D1
set #00000000 for D2.
D2
C: 1st control word
S1: 1st word of first
record to search
S2: 1st word of
search data
D1: 1st destination
word
D2: Destination
index register
An Unsigned Four-word Record Search Instruction searches the
RSRCH4
data (4 words) specified by S2, beginning from the table specified
C
by S1. When a record matching the specified condition is found, its
record number and data are output to D1 onwards. When an index
S1
register is specified for D2, the address of the matching record is
S2
output to that index register. To not use an index register output,
D1
set #00000000 for D2.
D2
C: 1st control word
S1: 1st word of first
record to search
S2: Search data
D1: 1st destination
word
D2: Destination
index register
Function
Function
Appendices
Execution
Location
condition
Output
Required
Execution
Location
condition
Output
Required
Output
Required
Output
Required
A-49

Advertisement

Table of Contents
loading

Table of Contents