EasyManuals Logo
Home>Omron>Computer Hardware>SYSMAC CP2E-N D Series

Omron SYSMAC CP2E-N D Series User Manual

Omron SYSMAC CP2E-N D Series
578 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 #100 background imageLoading...
Page #100 background image
5 I/O Memory
5-20
CP2E CPU Unit Software User’s Manual(W614)
Precautions for Correct UsePrecautions for Correct Use
Always set the value of an index register (IR) before using the index register. Operation will not
be dependable if an index register is used without first setting its value.
The value of an index register will not be dependable after an interrupt task is started. When
using an index register in an interrupt task, set the value using MOVR or MOVRW before using
the index register. (MOVRW is used for timer/counter PVs and MOVR is used for other values.)
Additional Information
When an Index Register is used as an operand without a “,” prefix, the instruction will operate
on the contents of the Index Register itself (a two-word or “double” value). Index Registers can
be directly addressed only in the instructions shown in the following table. Use these instruc-
tions to operate on the Index Registers as pointers.
The Index Registers cannot be directly addressed in any other instructions, although they can
usually be used for indirect addressing.
z Direct Addressing
z Precautions
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 pos-
sible 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-Pro-
grammer.
Additional Information
The contents of an index register used inside a function block may be corrupted when the func-
tion block is called. Always save the contents of the index register before calling the function
block and then restore the contents after leaving the function block. Set the required contents in
the index register inside the function block.
Instruction group Instruction name Mnemonic
Data Movement
Instructions
MOVE TO REGISTER MOVR(560)
MOVE TIMER/COUNTER PV TO REGISTER MOVRW(561)
DOUBLE MOVE MOVL(498)
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)
Save
Restore
Instructions using the index
register
Function
block
Instructions using the index
register
[MOVL IR0 Temporary internal address]
P_On
P_On
[MOVL Temporary internal address IR0]
Set the required contents in the
index register inside the function
block definition.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP2E-N D Series and is the answer not in the manual?

Omron SYSMAC CP2E-N D Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP2E-N D Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals