
386
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
• 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.
• 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.
• 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.
• If the number of digits in the decimal part is set to other than 0, "2EH" (.) is automatically stored at the position before the specified number of digits. If
the number of digits in the decimal part is 0, "2EH" (.) is not stored.
• For the sign of the exponent part, "2BH (+)" is stored when the exponent is positive, and "2DH (-)" is stored when the exponent is negative.
• The exponent part is fixed to 2 digits. When the exponent part is 1 digit, "30H (0)" is stored after the sign of the exponent part.
• The value "00H" is automatically stored at the end of the converted character string.
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)
Total number of digits
"0000H" is automatically stored at the end of the character string.
Single-precision real number
Sign (integer part)
Sign (exponent part)
20H (space)
Fixed to 2 digit
Number of digits
of decimal part
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)
Fixed to 1 digit
Total number of digits
"20H (space)" is stored.
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
-
Total number of digits
Number of digits of decimal part
These values are rounded down.
12
4
1
1
-
2 . 3 4 5 6 7
(s2)+1
(s2)+2
(s2)
(s1)+1
(s1)
2 3 4 6 E + 0 1
1
-
.
Total number of digits
Number of digits of decimal part
Added automatically
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)
Total number of digits
"30H (0)" is stored.
Fixed to 2 digit
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......