In The Case Of Double Word (32-Bit) Data; In The Case Of Real Number Data (Floating-Point) Data - Mitsubishi MELSEC-Q series Programming Manual

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

2.2.3

In the case of 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) + 1).
Example) When D10 is specified for double word data, D10 and D11 are used.
2.2.4

In the case of 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] × 2 [Exponent part]
The bit configuration when the floating-point data is expressed internally and its meaning are as follows.
b31
b30
b31
Sign
• Fixed-point part sign This shows the fixed-point part sign in b31.
0: Positive
1: Negative
• Exponent part This shows the 2
The n from b23 to b30's BIN value is as follows.
b23 to b30
n
• Fixed-point part This shows the value of XXXXXX... in the 23 bits, b0 to b22, when 1.XXX XXX... is represented in binary.
• The real number setting range is 0, ± 2
• To represent 0, set 0 in all of b0 to b31.
20
D11
(BW1)H
to
b23
b22
b23 to b30
Exponent
n
's n and b23 to b30.
FF
FE
FD
H
H
H
Non-numeric
127
126
data
D10
(BW1)L
to
b16
b15
b0 to b22
Mantissa
81
80
7F
7E
H
H
H
2
1
0
-1
-126
128
 |value| < ± 2
.
to
02
01
00
H
H
H
Non-numeric
-125 -126
data
b0
H

Advertisement

Table of Contents
loading

Table of Contents