456
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
• When the number of decimal part digits is 0, the number of digits that can be specified by (s2)+1 is "the number of digits (24
at a maximum)
6". For other than 0, the number of digits that can be specified by (s2)+1 is "the number of digits (24 at a
maximum) > (the number of decimal point 7)".
• The number of digits in the decimal part that can be specified by (s2)+2 is 0 to 7. Note that the number of digits in the
decimal part must be equal to or smaller than the total number of digits minus 7.
• For example, when the total number of digits is "12", the number of digits of the decimal part is "4", and "-12.34567" is
specified, data is stored in (d) and later as shown below:
• The converted character string data are stored in the device areas specified by (d) and later as shown below.
(1): Total number of digits
(2): Number of digits of decimal part
(3): Fixed to 2 digit
(4): Sign (integer part)
(5): Sign (exponent part)
(6): Single-precision real number
(7): "0000H" is automatically stored at the end of the character string.
• As sign data of the integral part, "20H" (space) is stored if the single-precision real number is positive, and "2DH" (-) is stored if the data is negative.
• The integer part is fixed to 1 digit. "20H (space)" is stored between the integer part and the sign.
(1): Total number of digits
(2): Fixed to 1 digit
(3): "20H (SP)" is stored.
• If the decimal part of the single-precision real number data cannot be accommodated in the number of digits of the decimal part, lower digits of the
decimal part are rounded.
(1): Total number of digits
(2): Number of digits of decimal part
(3): These values are rounded down.
b15
b8 b7
b0
0000H
(d)+4
(d)+3
(d)+6
(d)+5
(d)+2
(d)+1
(d)
E
45H (E)
(s2)+1
(s2)+2
(s2)
1
12
4
1
-
. 2 3
4 5 6
(s1)+1
(s1)
7
1
-
. 2 3 4 6
+
1
0
2DH(-)
31H(1)
2EH(.)
33H(3)
32H(2)
34H(4)
36H(6)
2BH(+)
31H(1) 30H(0)
(1)
(2)
(7)
(6)
(4)
(5)
20H (SP)
(3)
12
4
1
2 3 4 6 E + 0 1
1
-
.
1
-
2 . 3 4 5 6 7
(s2)+1
(s2)+2
(s2)
(s1)+1
(s1)
(2)
(1)
(3)
12
4
1
1
-
2 . 3 4 5 6 7
(s2)+1
(s2)+2
(s2)
(s1)+1
(s1)
2 3 4 6 6 7 E +
1 .
0 1
-
(1)
(2)
(3)
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: ......