Specifying Operands - Omron CJ2 - 02-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Specifying Operands

Operand
Specifying bit
The word and bit numbers are specified
addresses
directly to specify a bit (input bits).
@@@@.@@
*1
Specifying word
The word number is specified directly to
addresses
specify the 16-bit word.
@@@@
Specifying offsets for bit
In brackets, specify the number of bits
addresses
to offset the specified starting bit
address.
@@@@.@@ [@@]
A symbol can also be specified for the
starting bit address. Only Holding,
Work, DM, and EM Area addresses can
be used regardless of whether a physi-
cal address or symbol is used.
A constant or word address in I/O mem-
ory can be used for the offset. If a word
address is specified, the contents of the
word is used directly as the offset.
Specifying offsets for
In brackets, specify the number of bits
word addresses
to offset the specified starting bit
address.
@@@@.@@ [@@]
A symbol can also be specified for the
starting word address. Only Holding,
Work, DM, and EM Area addresses can
be used regardless of whether a physi-
cal address or symbol is used.
A constant or word address in I/O mem-
ory can be used for the offset. If a word
address is specified, the contents of the
word is used directly as the offset.
*1 The same addresses are used to access timer/counter Completion Flags and Present Val-
CJ2 CPU Unit Software User's Manual
Description
Bit number
(00 to 15)
Indicates the word address.
Indicates the word address.
Offset
Constant 0 to 15 or word
address in I/O memory
Starting bit address
Offset
Constant 0 to 15 or word
address in I/O memory
Starting word address
ues. There is also only one address for a Task Flag.
5 Understanding Programming
Notation
1.02
Bit number (02)
Word number: 1
3
Word number: 3
D200
Word number: 200
10.00[2]
Number of bits to
10.02
offset the address
Starting bit address
WO
10.00[
]
Number of bits to
10.02
offset the address
(W0 = &2)
Starting bit address
D0[2]
Number of words to
D2
offset address
Starting word address
D0[
WO
]
Number of words to
offset address
D2
(W0 = &2)
Starting word address
Application examples
1.02
MOV 3 D200
10.00[2]
MOV 3 D0[200]
5-69
5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents