M800V/M80V Series PLC Programming Manual (1/2)
6 Explanation of Instructions and Functions
6.3 Data Designation Method
Precautions
Precautions when an input value of a single/double-precision real number is set with a programming tool are shown below.
[Single-precision real number]
Since single-precision real number data is processed with 32-bit single-precision in a programming tool, the number of
significant digits is approximately 7. Therefore, the input value of the single-precision real number exceeds 7 digits, the value
is rounded to 7 digits. If the rounded value exceeds the range of -2147483648 to 2147483647, an operation error occurs.
(Example 1)
When "2147483647" is set for the input value
The 8th digit "6" is rounded. The value is treated as "2147484000".
(Example 2)
When "E1.1754943562" is set for the input value
The 8th digit "3" is rounded. The value is treated as "E1.175494".
[Double-precision real number]
Since double-precision real number data is processed with 64-bit double-precision in a programming tool, the number of
significant digits is approximately 15. Therefore, an input value of the double-precision real number data exceeds 15 digits,
the value is rounded to 15 digits. If the rounded value exceeds the range of -2147483648 to 2147483647, an operation error
occurs.
(Example 1)
When "2147483646.12345678" is set for the input value
The 16th digit "6" is rounded. The value is treated as "2147483646.12346".
(Example 2)
When "E1.7976931348623157+307" is set for the input value
The 16th digit "5" is rounded. The value is treated as "E1.79769313486232+307".
105
IB-1501667-B