Using Real Number Data - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

3 CONFIGURATION OF INSTRUCTIONS

3.2.4 Using real number data

Real number data is 32-bit floating decimal point data used with basic instructions and application
instructions.
Only word devices are capable of storing real number data.
Instructions which deal with real numbers designate devices which are used for the lower 16 bits
of data. Real numbers are stored in the 32 bits which make up (designated device number) and
(designated device number + 1).
M0
REMARK
1) In sequence programs, real numbers are designated by E
Floating decimal point data uses two word devices and is expressed in the following manner:
1. [Variable part] × 2 [exponent part]
The bit configuration and meaning of the internal representation of floating decimal point data is as
follows:
b31
b30
b23 to b30
Exponent part
b31
Sign for variable part
• Sign for variable part
• Exponent part
b23 to b30
n
Nonnumeric
• Exponent part
3 - 8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
EMOV R100
D0
to
b23
b22
to
The sign for the variable part is represented at b31.
0: Positive
1: Negative
n
The n of 2
Depending on the BIN value of b23 to b30, the value of n is as follows.
FF
FE
FD
H
H
H
127
126
The 23 bits from b0 to b22, represents the XXXXXX... at binary
1.XXXXXX....
POINT
• The CPU module floating decimal point data can be monitored using the
monitoring function of a peripheral device.
• When this is expressed as 0, all data from b0 to b31 will be 0.
• The setting range of real numbers is 0 and ±2
The 2 points D0 and D1 (32 bits) are used
The 2 points R100 and R101
(32 bits) are used
Real number data transfer
b16
b15
b0 to b22
Variable part
is represented from b23 to b30.
81
80
7F
7E
H
H
H
H
2
1
0
-1
-126
MELSEC-Q/QnA
.
to
b0
02
01
00
H
H
H
-125 -126
Nonnumeric
128
| value | < 2
.
3 - 8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents