EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 42

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
9
Programming Concepts Section 1-1
Specifying
indirect DM
addresses in
BCD Mode
The offset from the beginning of the area is
specified. The contents of the address will be
treated as BCD data (0000 to 9999) to specify
the word address in Data Memory (DM). Add
an asterisk (*) at the front to specify an indirect
address in BCD Mode.
Specifying a
register
directly
An index register (IR) or a data register (DR) is
specified directly by specifying IR@ (@: 0 to
15) or DR@ (@: 0 to 15).
IR0
Stores the PLC
memory
address for
CIO 10 in IR0.
IR1
Stores the PLC
memory
address for
CIO 10 in IR1.
Operand Description Notation Application
examples
*D@@@@@
D
00000 to 9999
(BCD)
Contents
*D200
0 1 0 0
Specifies D100.
Content
s
Add an asterisk (*).
BCD: 100
MOV(021)
#1
*D200
MOVR(560)
1.02
IR0
MOVR(560)
10
IR1
Operand Description Notation Application examples
Specifying
an indirect
address
using a reg-
ister
Indirect
address
(No offset)
The bit or word with the PLC memory
address contained in IR@ will be speci-
fied.
Specify ,IR@ to specify bits and words
for instruction operands.
,IR0
,IR1
Loads the bit with the PLC memory
address in IR0.
Stores #0001 in the word with the PLC
memory in IR1.
Constant
offset
The bit or word with the PLC memory
address in IR@ + or – the constant is
specified.
Specify +/– constant ,IR@. Constant off-
sets range from –2048 to +2047 (deci-
mal). The offset is converted to binary
data when the instruction is executed.
+5,IR0
+31,IR1
Loads the bit with the PLC memory
address in IR0 + 5.
Stores #0001 in the word with the PLC
memory address in IR1 + 31
,IR0
MOV(021)
#1
,IR1
+5,IR0
MOV(021)
#1
+31 ,IR1

Table of Contents

Related product manuals