EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 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
Page #245 background imageLoading...
Page #245 background image
6-39
6 I/O Memory Areas
CJ2 CPU Unit Software User’s Manual
6-19 Index Registers
6
z Direct Addressing
The SRCH(181), MAX(182), and MIN(183) instructions can output the PLC memory address of the
word with the desired value (search value, maximum, or minimum) to IR0. In this case, IR0 can be
used in later instructions to access the contents of that word.
z Precautions
• Do not use Index Registers until a PLC memory address has been set in the register. The pointer
operation will be unreliable if the registers are used without setting their values.
• The values in Index Registers are unpredictable at the start of an interrupt task. When an Index
Register will be used in an interrupt task, always set a PLC memory address in the Index Register
with MOVR(560) or MOVRW(561) before using the register in that task.
• Index Registers are processed independently in each task, so they do not affect each other. For
example, IR0 used in Task 1 and IR0 used in Task 2 are different. Consequently, each Index Reg-
ister task has 16 Index Registers.
• It is possible to read the Index Register for only the last task executed within the cycle from the
CX-Programmer. If using Index Registers with the same number to perform multiple tasks, it is
only possible with the CX-Programmer to read the Index Register value for the last task performed
within the cycle from the multiple tasks. Nor is it possible to write the Index Register value from the
CX-Programmer.
z Sharing Index Registers
The following setting can be made from the PLC Properties Dialog Box in the CX-Programmer to
control sharing index and data registers between tasks.
To share index registers between all tasks, clear the selection of the Use IR/DRs independently per
task Check Box in the PLC Properties Dialog Box.
Instruction group Instruction name Mnemonic
Data Movement Instruc-
tions
MOVE TO REGISTER MOVR(560)
MOVE TIMER/COUNTER PV TO REGISTER MOVRW(561)
DOUBLE MOVE MOVL(498)
DOUBLE DATA EXCHANGE XCGL(562)
Table Data Processing
Instructions
SET RECORD LOCATION SETR(635)
GET RECORD NUMBER GETR(636)
Tracking Instructions Unsigned One-word Record Search Instructions RSRCH
(360 to 364)
UNSIGNED ONE-WORD RECORD SORT RSORT(203)
Increment/Decrement
Instructions
DOUBLE INCREMENT BINARY ++L(591)
DOUBLE DECREMENT BINARY − −L(593)
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)
Symbol Math Instructions DOUBLE SIGNED BINARY ADD WITHOUT CARRY +L(401)
DOUBLE SIGNED BINARY SUBTRACT WITHOUT
CARRY
−L(411)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals