Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 679

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

• If the decimal part of the single-precision real number data is not stored within the range of the number of digits in the decimal part, the lower decimal digits
are rounded off.
(s2)
1
(s2)+1
12
(s2)+2
4
(s1)+1
(s1)
-
1
2 . 3 4 5 6 7
(1) Total number of digits
(2) Number of digits in the decimal part
(3) Rounded down.
• If the number of digits in the decimal part is set to a value other than 0, 2EH (.) is automatically stored at the position of the specified number of digits in the
decimal part plus 1. If the number of digits in the decimal part is 0, "2EH" (.) is not stored.
(s2)
1
(s2)+1
12
(s2)+2
4
(s1)+1
(s1)
-
1
2 . 3 4 5 6 7
(1) Total number of digits
(2) Number of digits in the decimal part
(3) Automatically added.
• As sign data in the exponent part, 2BH (+) is stored if the exponent is positive, and 2DH (-) is stored if it is negative.
• The exponent part is fixed to two digits. When the exponent part is one digit, 30H(0) is stored between the exponent part and sign.
(s2)
1
(s2)+1
12
4
(s2)+2
(s1)+1
(s1)
2 . 3 4 5 6 7
-
1
(1) Total number of digits
(2) Fixed to 2 digits
• The value "00H" is automatically stored at the end of the converted character string.
• When an input value is set using the engineering tool, a rounding error may occur. Refer to the following for the precautions
on setting input values using the engineering tool.
Page 49 Precautions
(1)
-
1 .
2 3 4 6 6 7 E +
0 1
(2)
(3)
(1)
.
-
1
2 3 4 6 E + 0 1
(2)
(3)
(1)
(2)
.
-
1
2 3 4 6 E + 0 1
30H(0)
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
7
677

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents