Specifying Data In Operands - Omron SYSMAC CP Series User Manual

Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

4 Understanding Programming
4-4-5

Specifying Data in Operands

Specifying Addresses
Operand
Specifying
The word address and bit number are speci-
bit
fied directly to specify a bit.
addresses
.
Word address
Specifying
The word address is specified directly to
word
specify a 16-bit word.
addresses
Word address
Specifying
In brackets, specify the number of bits to off-
offsets for bit
set the specified starting bit address.
addresses
.
Starting bit address
A symbol can also be specified for the start-
ing bit address. Only Holding, Work, and DM
Area addresses can be used regardless of
whether a physical address or symbol is
used.
A constant or word address in I/O memory
can be used for the offset. If a word address
is specified, the contents of the word is used
as the offset.
Specifying
In brackets, specify the number of words to
offsets for
offset the specified starting bit address.
word
[
addresses
Starting word address
A symbol can also be specified for the start-
ing word address. Only Holding, Work, and
DM Area addresses can be used regardless
of whether a physical address or symbol is
used.
A constant or word address in I/O memory
can be used for the offset. If a word address
is specified, the contents of the word is used
as the offset.
4-18
Description
Bit number
(00 to 15)
Offset Constant
0 to 15 or word
address in I/O memory
]
Offset Constant of 0 or
higher or word address in
I/O memory
Example
1
. 02
Bit number 02
Word address CIO 1
3
Word address CIO 3
D200
Word address D200
10.00[2]
Number of bits to offset the address
→Specify 10.02
Starting bit address
10.00 [W0]
Number of bits to offset the address
When W0 = &2→ Specify 10.02
Starting bit address
D0[2]
Number of words to offset the address
→Specify D2
Starting word address
D0 [W0]
Number of bits to offset the address
When W0 = &2→ Specify D2
Starting word address
CP2E CPU Unit Software User's Manual(W614)
Application
examples
1.02
MOV 3 D200
10.00[2]
MOV 3 D0[200]

Advertisement

Table of Contents
loading

Table of Contents