Omron CJ2 CPU UNIT SOFTWARE User Manual page 182

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

Advertisement

5 Understanding Programming
Direct Addressing of Index Registers
The size of an index registers is two words per register for Index Registers IR0 to IR15, so use a
double-word instruction (with an "L" in the mnemonic).
Instruction group
Data Movement Instructions
Table Data Processing
Instructions
Tracking Instructions
Data Movement Instructions
Comparison Instructions
Increment/Decrement
Instructions
Symbol Math Instructions
Special Instructions
5-90
Instruction name
MOVE TO REGISTER
MOVE TIMER/COUNTER PV
TO REGISTER
SET RECORD LOCATION
GET RECORD NUMBER
Record Search Instructions
Record Sort Instructions
DOUBLE MOVE
DOUBLE DATA EXCHANGE
DOUBLE EQUAL
DOUBLE NOT EQUAL
DOUBLE LESS THAN
DOUBLE LESS THAN OR
EQUAL
DOUBLE GREATER THAN
DOUBLE GREATER THAN OR
EQUAL
DOUBLE COMPARE
DOUBLE INCREMENT BINARY ++L(591)
DOUBLE DECREMENT
BINARY
DOUBLE SIGNED BINARY
ADD WITHOUT CARRY
DOUBLE SIGNED BINARY
SUBTRACT WITHOUT CARRY
CONVERT ADDRESS FROM
CV
CONVERT ADDRESS TO CV
Mnemonic
Primary function
MOVR(560)
Stores the PLC memory
address of a bit or word in an
MOVRW(561)
Index Register.
SETR(635)
GETR(636)
Outputs the PLC memory
address stored in an Index
Register.
RSRCH@
Outputs the first PLC mem-
ory address of the matching
(Function
record to an Index Register.
codes: 360 to
364, 370 to
374, and 380
to 384)
RSORT@
Outputs one higher than the
PLC memory address of the
(Function
last address in the sorted
codes: 203
range to an Index Register.
205)
MOVL(498)
Transfers between Index
Registers. Used for
XCGL(562)
exchanges and comparisons.
=L(301)
< >L(306)
< L(311)
< =L(316)
>L(321)
>=L(326)
CMPL(060)
Changes the PLC memory
address in the Index Register
−−L(593)
by incrementing, decrement-
ing, or offsetting its content.
+L(401)
−L(411)
FRMCV(284)
Convert actual PLC memory
addresses between
CVM1/CV-series and CJ-
TOCV(285)
series addresses.
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents