EasyManua.ls Logo

Omron SYSMAC CS/CJ Series

Omron SYSMAC CS/CJ Series
383 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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)

Table of Contents

Related product manuals