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 #187 background imageLoading...
Page #187 background image
5-95
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-8 Specifying Address Offsets
5
5-8-1 Overview
5-8 Specifying Address Offsets
When an address is specified in an instruction operand, it is possible to change the specified address
by specifying an offset for in brackets after 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 for STRING
or NUMBER data types). Offsetting is possible only for addresses in the H, W, DM, and EM Areas.
I/O comments indicate the I/O comments for this start bit address.
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 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 by using input comparison or other instruction.
If the number of offset bits exceeds the memory area of the start bit address, the final bit address will
be in the next memory area in the order determined by the actual PLC memory addresses. (For
information on the arrangement of area in the memory map, refer to A-4 Memory Map of PLC Mem-
ory Addresses.
5-8-1 Overview
Examples of Specifying
Word Address Offsets
When the start address is
D0.0 and W0 is &2, 2 is
added, resulting in D0.2.
Examples of Specifying
Bit Address Offsets
An offset of 4 is added to
the start address of 10.0,
resulting in 10.4.
When the start address is
D100 and W1 is &3, 3 is
added, resulting in D103.
An offset of 12 is added
to start address of D100,
resulting in D112.
Start bit address
Start bit address: A
Offset (number of bits): n
15 14 13 12 11 10 9 6 3 0
A[n]
87 4512
Bit
Word
Offset (number of bits)

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