Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 950

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

• In "Sign data (integer part)", "20H (space)" is stored when the input value is positive, and "2DH (-)" is stored when the input value is negative.
• The 6th and later digits of the decimal part are rounded.
(s)
-12.345678
REAL
(1): Total number of digits (13 digits)
(2): Number of digits of decimal part (5)
(3): These digits are rounded off.
• "30H (0)" is stored in the decimal part when the number of significant figures is small.
(s)
-12.34
REAL
(1): Total number of digits (13 digits)
(2): Number of digits of decimal part (5)
(3): "30H (0)" is stored.
• In "Sign data (exponent part)", "2BH (+)" is stored when the input value is positive, and "2DH (-)" is stored when the input value is negative.
• "30H (0)" is stored in the tens place of the exponent part when the exponent part consists of 1 digit.
(s)
-12.3456
REAL
(1): Total number of digits (13 digits)
(2): Number of digits of exponent part (2)
(3): "30H (0)" is stored.
• "00H" is automatically stored at the end (7th word) of the character string.
18 TYPE CONVERSION FUNCTIONS
948
18.37 Converting REAL to STRING
(d)
(1)
7
-
1
.
2
3
4
5
6 6
7 8 E + 0 1
(2)
(3)
(d)
(1)
-
1
.
2
3
4
0
0 E + 0 1
(3)
(2)
(d)
(1)
(2)
-
1
.
2
3
4
5
6 E + 0 1
(3)

Hide quick links:

Advertisement

loading