9
DEVICE EXPLANATION
9
- 28
9.2 Internal User Devices
9.2.10 Data register (D)
9.2.10 Data register (D)
(1) Definition
Data registers are memory devices which store numeric data (-32768 to 32767, or
0000
H
to FFFF
H
).
(2) Bit configuration of data register
(a) Bit configuration and read and write units
Data registers, which consist of 16 bits per point, read and write data in 16-bit
units.
POINT
Data register data are handled as signed data.
For HEX (hexadecimal), 0000
H
to FFFF
H
can be stored. However, since the most
significant bit is a sign bit, the range of a value that can be specified is -32768 to
32767.
(b) When data register is used for 32-bit instruction
If the data registers are used for 32-bit instructions, the data will be stored in
registers Dn and Dn + 1. The lower 16 bits of data are stored at the data register
No. (Dn) designated in the sequence program, and the higher 16 bits of data are
stored in the designated register No. + 1 (Dn + 1). For example, if register D12 is
designated in the DMOV instruction, the lower 16 bits are stored in D12, and the
upper 16 bits are stored in D13.
Two data registers can store a range of numeric data from -2147483648 to
2147483647 or from 0
H
to FFFFFFFF
H
. (The most significant bit in a 32-bit
configuration is a sign bit.)
(3) Holding of stored data
The data stored in the data register is held until the other data is stored.
The data stored in the data register is initialized when the PLC is powered OFF or the
CPU module is reset.
Diagram 9.31 Bit configuration of data register
Diagram 9.32 Data transfer by 32-bit instruction and storage destination
Dn
b15
to
b0
The most significant bit is sign bit.
K500000 D12
DMOV
D13
D12
Processing object: D12, D13
Upper 16 bits Lower 16 bits
Содержание MELSEC QS Series
Страница 1: ......
Страница 2: ......
Страница 24: ...A 22 Memo ...
Страница 258: ...Index 3 Memo ...
Страница 263: ......
Страница 264: ......