Data Register (D) - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

9.2.12

Data register (D)

(1) Definition
The data register (D) is a memory in which numeric data (-32768 to 32767, or 0000
stored.
(2) Bit structure of the data register
(a) Bit structure and read/write unit
One point of the data register consists of 16 bits, and data can be read or written in units of 16 bits.
Data register data are handled as signed data.
In the case of the hexadecimal notation, 0000
represents a sign bit, decimal values that can be specified are -32768 to 32767.
(b) When using a 32-bit instruction for the data register
For a 32-bit instruction, two consecutive points of the data register (D
processing.
The lower 16 bits correspond to the data register number (Dn) specified in the sequence program,
and the higher 16 bits correspond to the specified data register number + 1.
When D12 is specified in the DMOV instruction, D12 represents the lower 16 bits and D13
Example
represents the higher 16 bits.
Data of -2147483648 to 2147483647 or 0
The most significant bit in a 32-bit structure is a sign bit.)
register. (
(3) Retention of stored data
The data stored in the data register are held until other different data are stored.
Note that the stored data are initialized when the CPU module is powered off or reset.
b15
Dn
Most significant bit represents a sign bit.
Figure 9.37 Bit structure of the data register
H
DMOV
K500000 D12
Figure 9.38 Data transfer with a 32-bit instruction and storage location
H
to
to FFFF
can be stored. However, because the most significant bit
H
and D
n
Processing target: D12, D13
D13
Upper 16 bits Lower 16 bits
to FFFFFFFF
can be stored in a two-point area of the data
H
CHAPTER9 DEVICES
to FFFF
) can be
H
H
b0
) are the target of the
n+1
D12
9 - 31
9
2
3
4
5
6
7
8

Advertisement

Table of Contents
loading

Table of Contents