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

Omron SYSMAC CP2E-E D Series User Manual

Omron SYSMAC CP2E-E 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 #76 background imageLoading...
Page #76 background image
4 Understanding Programming
4-32
CP2E CPU Unit Software User’s Manual(W614)
4-7 Specifying Offsets for Addresses
When an address is specified for an instruction operand, it is possible to change the specified address
by specifying in brackets an offset for the specified address.
z Bit Addresses
The bit address is offset by the amount specified by n (number of bits) from A (start bit address).
Start Bit Address
It is possible to specify the start bit address with a bit address or with a symbol (except the NUMBER
data type cannot be used).
Offsetting is possible for all addresses except the DM Areas.
When specifying symbols, make the symbol table setting as the array variation. The number of
arrays will be the maximum number of offset + 1 bit at least.
The I/O comment for the start bit address is displayed.
Offset
The offset can be specified as a decimal constant, word address (but CIO Area addresses cannot
be specified), or a one-word symbol (i.e., symbols with the following data types: INT, UINT, WORD,
CHANNEL).
Words in the Auxiliary Area (A) can only be specified as a decimal constant.
If a word address is specified, the contents of the specified word is used as the offset.
If the offset exceeds bit 15 in the specified word, offsetting will continue from bit 00 in the next word.
If the offset is specified indirectly, make sure that the final bit address does not exceed the upper
limit of the memory area by using input comparison or other instruction.
4-7-1 Overview
When the start address
is CIO 0.00 and W0 is
&2, 2 is added,
resulting in CIO 0.02.
When the start
address is D100 and
W1 is &3, 3 is added,
resulting in D103.
An offset of 12 is
added to the start
address of D100,
resulting in D112.
An offset of 4 is added
to the start address of
CIO 10.00, resulting in
CIO 10.04.
Examples of
Specifying Bit
Address Offsets
Examples of
Specifying Word
Address Offsets
0.00[W0]
10.00[4]
MOV
MOV
Word
Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Number of bits to offset: +n
A
[n]
Offset
Starting bit address
Starting bit address A

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron SYSMAC CP2E-E D Series Specifications

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

Related product manuals