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)
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......