Omron SYSMAC CS Series Programming Manual page 235

Hide thumbs Also See for SYSMAC CS Series:
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-
6-2-3
Processing Related to Index Registers
Processing
Stack processing
Table pro-
Tables with one-word
cessing
records
(Range instructions)
Tables with multiple-word records
(Record-table instructions)
216
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
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 comple-
ment 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.
Basic pro-
Find values such as the check-
cessing
sum, a particular value, the maxi-
mum value, or minimum value in
the range.
Special pro-
Perform various other table pro-
cessing
cessing such as comparisons or
sorting.
Process data in records that are
several words long.
Mnemonic
MOVR(560)
Stores the PC memory address of
a bit or word in an Index Register.
MOVRW(561)
SETR(635)
GETR(636)
Outputs the PC memory address
stored in an Index Register.
MOVL(498)
Transfers between Index Regis-
ters. Used for exchanges and com-
XCGL(562)
parisons.
=L(301)
< >L(306)
< L(311)
< =L(316)
>L(321)
>=L(326)
CMPL(060)
++L(591)
Changes the PC memory address
in the Index Register by increment-
– –L(593)
ing, decrementing, or offsetting its
+L(401)
content.
–L(411)
Purpose
SSET(630), PUSH(632),
FIFO(633), and LIFO(634)
FCS(180), SRCH(181), MAX(182),
MIN(183), and SUM(184)
Combine Index Registers with
instructions such as SRCH(181),
MAX(182), MIN(183), and compar-
ison instructions.
Combine Index Registers with
instructions such as DIM(631),
SETR(635), GETR(636), and com-
parison instructions.
Section 6-2
Primary function
Instructions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents