Specifying Instruction Operands - Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Programming Concepts
1-1-5

Specifying Instruction Operands

Operand
Specifying bit
The word and bit numbers are specified
addresses
directly to specify a bit (input bits).
@@@@.@@
Word address
Note The same addresses are used to
access timer/counter Completion Flags
and Present Values. There is also only
one address for a Task Flag.
Specifying
The word number is specified directly to spec-
word
ify the 16-bit word.
addresses
@@@@
Word address
Specifying
The offset from the beginning of the area is
indirect DM
specified. The contents of the address will be
addresses in
treated as binary data (00000 to 32767) to
Binary Mode
specify the word address in Data Memory
(DM). Add the @ symbol at the front to specify
an indirect ad-dress in Binary Mode.
Contents
D
8
Example: The address of word W5 (bits 00 to 15) in the Work Area is given
as shown below.
W5
Word address
Example: The address of word D200 (bits 00 to 15) in the DM Area is given
as shown below.
D200
Word address
Description
Bit number
(00 to 15)
@D@@@@@
00000 to 32767
(0000 to 7FFF hex)
Notation
1.02
Bit number: 02
Word number: CIO 1
3
Word number: 3
D200
Word number: D200
@D300
Contents
0 1 0 0
Hexadecimal 256
Specifies D256.
Add the @ symbol.
Section 1-1
Application
examples
1.02
MOV(021)
3
D200
MOV(021)
#1
@D300

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents