Data type Special number Sign s Exponent e Mantissa f
REAL
+∞ 0 255 0
-∞ 1 255 0
+0 0 0 0
-0 1 0 0
Nonnumeric data --- 255 Not 0
LREAL
+∞ 0 2047 0
-∞ 1 2047 0
+0 0 0 0
-0 1 0 0
Nonnumeric data --- 2047 Not 0
Subnormal Numbers
Numbers that are very close to 0 (with very small absolute values) cannot be expressed using the
floating-point decimal format.
Subnormal numbers were introduced to expand the validity of numbers near 0.
Subnormal numbers can be used to express numbers whose absolute values are smaller than
numbers expressed in the normal data format.
Additional Information
Values expressed in the normal data format are called normalized numbers or normal numbers.
Numbers with exponent e = 0 and mantissa f ≠ 0 are considered subnormal numbers and their val-
ues are expressed in the following manner
.
• REAL Data
Number = (-1)
s
2
-126
(f × 2
-23
)
• LREAL Data
Number = (-1)
s
2
-1022
(f × 2
-52
)
Example: Expressing 0.75 x 2
-127
as REAL Data
1 Setting the Sign
The number is positive, so s = 0.
2 Binary Expression
The number 0.75 is 0.1
1 as a binary number.
3 Mantissa Calculation
From (0.1
1)
2
× 2
-127
= 2
-126
(f × 2
-23
), f = (0.11)
2
× 2
22
.
4 Mantissa Expression
From the previous equation, f = 01
100000000000000000000.
Therefore, 0.75 × 2
-127
is expressed as shown in the following figure.
1 Introduction to Motion Control Instructions
1-15
NY-series Motion Control Instructions Reference Manual (W561)
1-2 Basic Information on Motion
Control Instructions
1
1-2-3 Motion Control Instruction Locations