948
18 TYPE CONVERSION FUNCTIONS
18.37 Converting REAL to STRING
• "00H" is automatically stored at the end (7th word) of the character string.
• 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.
(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.
(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.
(1): Total number of digits (13 digits)
(2): Number of digits of exponent part (2)
(3): "30H (0)" is stored.
REAL
-12.345678
(2)
(3)
(1)
5
4
3
2
.
1
-
66
7
7 8 E + 0 1
(d)
(s)
REAL
-12.34
(3)
(2)
(1)
(d)
(s)
0
4
3
2
.
1
-
0 E + 0 1
REAL
-12.3456
(3)
(2)
(1)
(d)
(s)
5
4
3
2
.
1
-
6 E + 0 1
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......