Processing Related To Index Registers - Omron SYSMAC CS/CJ Series Programming Manual

Table of Contents

Advertisement

Index Registers
Instruction group
Data Movement Instruc-
tions
Table Data Processing
Instructions
Data Movement Instruc-
tions
Comparison Instructions
Increment/Decrement
Instructions
Symbol Math Instructions DOUBLE SIGNED BINARY ADD WITH-
Special Instructions
6-2-3

Processing Related to Index Registers

Processing
Stack processing
Direct Addressing of Index Registers
Index Registers can be directly addressed only in the instructions shown in
the following table.
Instruction name
MOVE TO REGISTER
MOVE TIMER/COUNTER PV TO REG-
ISTER
SET RECORD LOCATION
GET RECORD NUMBER
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
DOUBLE DECREMENT BINARY
OUT CARRY
DOUBLE SIGNED BINARY SUBTRACT
WITHOUT CARRY
CONVERT ADDRESS FROM CV
CONVERT ADDRESS TO CV
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.
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
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.
Mnemonic
MOVR(560)
MOVRW(561)
SETR(635)
GETR(636)
MOVL(498)
XCGL(562)
=L(301)
< >L(306)
< L(311)
< =L(316)
>L(321)
>=L(326)
CMPL(060)
++L(591)
– –L(593)
+L(401)
–L(411)
FRMCV(284)
TOCV(285)
Purpose
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)
Section 6-2
Primary function
Stores the PLC memory address
of a bit or word in an Index Regis-
ter.
Outputs the PLC memory address
stored in an Index Register.
Transfers between Index Regis-
ters. Used for exchanges and
comparisons.
Changes the PLC memory
address in the Index Register by
incrementing, decrementing, or
offsetting its content.
Convert actual PLC memory
addresses between CV-series and
CS/CJ-series addresses.
(CS1-H, CJ1-H, or CJ1M CPU
Units only)
Instructions
255

Advertisement

Table of Contents
loading

Table of Contents