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 #77 background imageLoading...
Page #77 background image
4-33
4 Understanding Programming
CP2E CPU Unit Software User’s Manual(W614)
4-7 Specifying Offsets for Addresses
4
4-7-1 Overview
Examples:
z Word Addresses
The word address is offset by the amount specified by n (number of offset words) from A (start word
address).
Start Word Address
It is possible to specify the start word address with a word address or with a symbol (except the
NUMBER data type cannot be used).
Offsetting is possible only for addresses in the Holding, Word, and DM Areas.
The I/O comment for the start bit address is displayed.
When specifying symbols, make the symbol table setting as the array variation. The number of
arrays will be the maximum number of offset + 1 word at least.
Offset
The offset can be specified as a decimal constant, word address (but CIO Area addresses cannot
be specified), or one-word symbol (i.e., symbols with the following data types: INT, UINT, WORD,
CHANNEL).
If a word address or symbol 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.
Examples:
10.0 [2]
10.02
10.02
a [2]
10.02
10.00 [W0]
a[b]
Offset; symbol b = &2
Start bit address; symbol a = 10.0
10.02
Offset when W0 = &2
(word address in I/O memory)
Start bit address
(bit address in I/O memory)
Offset (decimal value)
Start bit address; symbol a = 10.0
(bit symbol named a)
Offset (decimal value)
Start bit address
(bit address in I/O memory)




Word
Bit 15 14 13 12 11 10 9 8 7 6 5 0
Start word address
Offset
A
[n]
4321

A
+n
D0[2]
D2
D2
a [2]
D2
[W0]
a[b]
Offset;
symbol b(one-word symbol) = &2
Start word address;
symbol a (one-word symbol) = D0
D2
Offset (decimal value)
Start word address
(word address in I/O memory)
Offset; W0 = &2
(word address in I/O memory)
Start bit address
(bit address in I/O memory)
Offset (decimal value)
Start word address;
symbol a (one-word symbol) = D0
D0





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