Omron CJ2 CPU UNIT SOFTWARE User Manual page 530

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

Appendices
Instruction
Mnemonic
Code
SET
SETR
635
RECORD
@SETR
LOCATION
GET
GETR
636
RECORD
@GETR
NUMBER
DATA
SRCH
181
SEARCH
@SRCH
SWAP
SWAP
637
BYTES
BYTES
FIND MAXI-
MAX
182
MUM
@MAX
DOUBLE
MAXL
174
FIND MAXI-
@MAXL
MUM
A-46
Symbol/Operand
Writes the location of the specified record (the internal I/O
SETR(635)
memory address of the beginning of the record) in the
N
specified Index Register.
R
Table number (N)
D
N: Table number
R: Record number
Record
D: Destination
number (R)
Index Register
Returns the record number of the record at the internal I/O
GETR(636)
memory address contained in the specified Index Register.
N
IR
D
N: Table number
IR
IR: Index Register
D: Destination
word
Searches for a word of data within a range of words.
SRCH(181)
C
R1
R1
Cd
C: 1st control word
R1: 1st word in
range
Cd: Comparison
R1+(C−1)
data
Switches the leftmost and rightmost bytes in all of the words
SWAP(637)
in the range.
N
R1
R1
N: Number of
words
R1: 1st word in
range
Finds the maximum value in the range.
MAX(182)
C
R1
R1
D
C: 1st control word
R1: 1st word in
R1+(W−1)
range
D: Destination
word
Treats the number of data items specified by C as double-word
MAXL(174)
table data beginning from the first word in the range specified by
R1, and outputs the maximum value in the table to D+1 and D.
C
R1
D
C: 1st control word
R1: 1st word in
range
D: 1st destination
word
Function
Internal I/O
memory address
SETR(635) writes the internal I/O
memory address (m) of the first word
R
of record R to Index Register D.
Table number (N) Internal I/O
memory address
GETR(636) writes
the record number
Record number
of the record that
(R)
includes I/O
memory address
(m) to D.
n
Internal I/O
memory address
Search
Cd
C
Match
Byte position is swapped.
Internal I/O
memory address
C words
Max.
value
CJ2 CPU Unit Software User's Manual
Execution
Location
condition
Output
Required
Output
Required
Output
Required
Output
Required
N
Output
Required
Output
Required

Advertisement

Table of Contents
loading

Table of Contents