![Omron CJ1G-CPU series Programming Manual Download Page 276](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489276.webp)
255
Index Registers
Section 6-2
Direct Addressing of Index Registers
Index Registers can be directly addressed only in the instructions shown in
the following table.
Note Instructions for double-length operands (i.e., those with “L” at the end) are
used for index registers IR0 to IR15 because each register contains two
words.
6-2-3
Processing Related to Index Registers
The CS/CJ-series CPU Unit’s Table Data Processing instructions complement
the functions of the Index Registers. These instructions can be broadly
divided into the stack-processing and table-processing instructions
Instruction group
Instruction name
Mnemonic
Primary function
Data Movement Instruc-
tions
MOVE TO REGISTER
MOVR(560)
Stores the PLC memory address
of a bit or word in an Index Regis-
ter.
MOVE TIMER/COUNTER PV TO REG-
ISTER
MOVRW(561)
Table Data Processing
Instructions
SET RECORD LOCATION
SETR(635)
GET RECORD NUMBER
GETR(636)
Outputs the PLC memory address
stored in an Index Register.
Data Movement Instruc-
tions
DOUBLE MOVE
MOVL(498)
Transfers between Index Regis-
ters. Used for exchanges and
comparisons.
DOUBLE DATA EXCHANGE
XCGL(562)
Comparison Instructions
DOUBLE EQUAL
=L(301)
DOUBLE NOT EQUAL
< >
L(306)
DOUBLE LESS THAN
<
L(311)
DOUBLE LESS THAN OR EQUAL
<
=L(316)
DOUBLE GREATER THAN
>
L(321)
DOUBLE GREATER THAN OR EQUAL
>
=L(326)
DOUBLE COMPARE
CMPL(060)
Increment/Decrement
Instructions
DOUBLE INCREMENT BINARY
++L(591)
Changes the PLC memory
address in the Index Register by
incrementing, decrementing, or
offsetting its content.
DOUBLE DECREMENT BINARY
– –L(593)
Symbol Math Instructions DOUBLE SIGNED BINARY ADD WITH-
OUT CARRY
+L(401)
DOUBLE SIGNED BINARY SUBTRACT
WITHOUT CARRY
–L(411)
Special Instructions
CONVERT ADDRESS FROM CV
FRMCV(284)
Convert actual PLC memory
addresses between CV-series and
CS/CJ-series addresses.
(CS1-H, CJ1-H, or CJ1M CPU
Units only)
CONVERT ADDRESS TO CV
TOCV(285)
Processing
Purpose
Instructions
Stack processing
Operate FIFO (first-in first-out) or
LIFO (last-in first-out) data tables,
and read, write, insert, delete, or
count data entries in data tables.
SSET(630), PUSH(632), FIFO(633),
LIFO(634) and, for CS1-H, CJ1-H, or
CJ1M CPU Units only, SREAD(639),
SWRITE(640), SINS(641), SDEL(642),
SNUM(638)
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...