Double Word (32-Bit) Data; For Real Number Data (Floating-Point Data) - Mitsubishi Electric MELSEC-Q QnPHCPU Programming Manual

Table of Contents

Advertisement

2 STRUCTURE AND COMBINATIONS OF PROCESS CONTROL
INSTRUCTIONS

2.2.3 Double word (32-bit) data

Double word data is 32-bit numeric data.
• Decimal constant....................K-2147483648 to K2147483647
• Hexadecimal constant............H00000000 to HFFFFFFFF
When using double word data, specify the word device to be used in the lower-order 16 bits.
The 32-bit data is stored into the (specified word device number) and ((specified word device
number)
Example) When D10 is specified for double word data, D10 and D11 are used.

2.2.4 For real number data (floating-point data)

The data required for operations and the operation results are 32-bit floating-point data.
Floating-point data is displayed as follows using 2 word devices.
1. [Fixed-point part]
The bit configuration when the floating-point data is expressed internally and its meaning are as
follows.
b31
b30
b23 to b30
Exponent part
b31
Fixed-point part sign
• Fixed-point part sign
0: Positive
1: Negative
• Exponent part
The n from b23 to b30's BIN value is as follows.
b23 to b30
Non-numeric
n
• Fixed-point part
POINT
• The monitor function of GX Developer allows you to monitor the real number data of the
QnPHCPU/QnPRHCPU.
• The real number setting range is 0,
• To represent 0, set 0 in all of b0 to b31.
2 - 3
1).
D11
(BW1) H
2 [Exponent part]
to
b23
b22
to
This shows the fixed-point part sign in b31.
This shows the 2
FF
FE
FD
H
H
H
127
126
data
This shows the value of XXXXXX... in the 23 bits, b0 to b22, when 1.XXX
XXX... is represented in binary.
D10
(BW1) L
b16
b15
b0 to b22
Fixed-point part
n
's n and b23 to b30.
81
80
7F
7E
H
H
H
H
2
1
0
-1
-126
2
|value|
2
MELSEC-Q
to
b0
02
01
00
H
H
H
Non-numeric
-125 -126
data
128
.
2 - 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q qnprhcpu

Table of Contents