![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262101.webp)
5-21
5 I/O Memory
CP2E CPU Unit Software User’s Manual(W614)
5-9 D
a
ta Re
giste
rs
(DR)
5
5-9
Data Registers (DR)
The sixteen Data Registers (DR0 to DR15) are used to offset the PLC memory addresses in Index Reg-
isters when addressing words indirectly. The Data Registers can be used to specify an offset to add to
an Index Register when addressing words indirectly.
The content of Data Registers cannot be accessed (read or written) from the CX-Programmer.
Index register numbers range from DR0 to DR15.
z
Forcing Bit Status
The value in a Data Register can be added to the PLC memory address in an Index Register to
specify the absolute memory address of a bit or word in I/O memory. Data Registers contain signed
binary data, so the content of an Index Register can be offset to a lower or higher address.
Normal instructions can be use to store data in Data Registers.
Data Registers cannot be force-set or force-reset.
Example
The following examples show how Data Registers are used to offset the PLC memory addresses in
Index Registers.
LD
DR0 ,IR0
Adds the contents of DR0 to the contents of IR0 and
loads the bit at that PLC memory address.
MOV
#0001
DR0 ,IR1
Adds the contents of DR0 to the contents of IR1 and
writes #0001 to that PLC memory address.
Overview
Notation
Range
Details
DR
Index regi
s
ter n
u
m
b
er: 13
Index regi
s
ter de
s
ign
a
tor: DR
13
Set to a
b
ase
v
al
u
e
w
ith MOVR(560) or
MOVR
W
(561).
Set
w
ith a reg
u
lar
instr
u
ction.
Pointer
I/O Memory
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......