962
18 TYPE CONVERSION FUNCTIONS
18.47 Converting STRING to REAL
• With regard to STRING type data, six digits excluding the sign, decimal point and exponent part are valid, and the 7th and
later digits are discarded during conversion.
• When 2BH (+) is specified as the sign in the floating point format or when the sign is omitted, a character string is converted
into a positive value. It is handled as negative value during conversion when the sign is set to 2DH (-).
• String data in the exponent format is handled as positive value during conversion when the sign of the exponent part is set
to 2BH (+) or when the sign is omitted. When 2DH (-) is specified as the sign, a character string is converted into a negative
value.
• When 20H (space) or 30H (0) exists between numbers except the first 0 in STRING type data, 20H or 30H is ignored during
conversion.
• When 30H (0) exists between a number and "E" in STRING type data (exponent format), 30H is ignored during conversion.
• When 20H (space) is contained in character string, 20H is ignored during conversion.
• Up to 24 characters can be input as STRING type data. 20H (space) and 30H (0) in a character string are counted as one
character respectively.
• A value input to (s) is the STRING type data value and within the following range.
• Exponent format
• Decimal point format
• Exponent format
• Decimal point format
• Exponent format
• Within the range of "30H" to "39H", "45H", "2BH", "2DH", "2EH", "20H" and "00H" in ASCII code
REAL
33H (3)
2EH (.)
30H (0)
35H (5)
34H (4)
33H (3)
2DH (-)
45H (E)
30H (0)
31H (1)
00H
31H (1)
2DH (-)
+1
+2
+3
+4
+5
+6
+0
High-order byte
Low-order byte
-1.35034E-10
E
4
3
0
5
3
.
1
-
- 1 0
(s)
(d)
REAL
-1.35034
3
0
5
3
1
-
4 1 2 0 2 3
.
REAL
-1.35034E-10
3
0
5
3
.
1
-
4 1 2 E - 1 0
REAL
-1.35034
5
3
.
1
0
-
0 3 4
REAL
-1.35034E-10
5
3
.
1
0
-
0 3 4 E - 1 0
REAL
-1.35034E-2
5
3
.
1
-
0 3 4 E - 0 2
Содержание 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: ......