1 Introduction to Motion Control Instructions
4
Exponent Expression
From the previous equation, e-127 = 6. Therefore e = 133.
The number 133 is 10000101 as a binary number. This expresses the exponent.
5
Mantissa Expression
Numbers following the decimal point in 1.010110101 are 010110101.
This number is expressed using 23 bits, but here there are insufficient digits. Therefore zeros
are added. The 23-bit figure becomes f.
Therefore f = 01011010100000000000000.
Therefore, -86.625 is expressed as shown in the following figure.
REAL data (32 bits)
Valid Ranges
The valid ranges of REAL and LREAL are shown in the following table.
Data type
REAL
LREAL
REAL −3.402823e+38
LREAL −1.79769313486231e+308
−∞
Special Numbers
Positive infinity, negative infinity, +0, -0, and nonnumeric data are called special numbers.
Nonnumeric data is data that cannot be expressed in floating-point decimal format. They are not
treated as numbers.
Mathematically, +0 and -0 both mean the same as 0, but in data processing it is treated differently.
A detailed explanation is given later.
The sign "s", exponent "e", and mantissa "f" for special numbers take on the following values.
1-14
Sign
Exponent
1 10000101
01011010100000000000000
31 30
23 22
-∞
Negative numbers
-∞
-3.402823e+38 to -1.175495e-38
-1.79769313486231e+308 to
-∞
-2.22507385850721e-308
REAL −1.175495e−38
LREAL −2.22507385850721e−308
Mantissa
0
0
Positive number
+1.175495e-38 to +3.402823e
0
+38
+2.22507385850721e-308 to
0
+1.79769313486231e+308
REAL +3.402823e+38
LREAL +1.79769313486231e+308
0
REAL +1.175495e−38
LREAL +2.22507385850721e−308
NY-series Motion Control Instructions Reference Manual (W561)
+∞
+∞
+∞
+∞