Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 509

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

■Decimal point format
• When the character string specified by (s) is decimal point format, the operation is executed as follows.
b15
b8
b7
(s)
31H (1)
(s)+1
30H (0)
(s)+2
38H (8)
(s)+3
32H (2)
(s)+4
-
1
.
0 7 8 1 2
(1): Single-precision real number
• With regard to character string, six digits excluding the sign, decimal point and exponent part are valid, and the 7th and later
digits are discarded during conversion.
b15
b8
b7
(s)
20H (SP)
(s)+1
31H (1)
(s)+2
33H (3)
(s)+3
31H (1)
(s)+4
36H (6)
(s)+5
31H (1)
(s)+6
00H
-
1 . 3 0 1 5 6 8 1 2
(1): These values are discarded.
(2): Single-precision real number
• 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 (-).
• When 20H (space) or 30H (0) exists between numbers except the first 0 in a character string specified by (s), 20H or 30H is
ignored during conversion.
b15
b8
b7
(s)
20H (SP)
(s)+1
31H (1)
(s)+2
32H (2)
(s)+3
31H (1)
(s)+4
-
0
1 . 2 3 1
(1)
(1): Ignored
(2): Single-precision real number
■Exponent format
• When the character string specified by (s) is in exponent format, the operation is executed as follows.
b15
b8
b7
(s)
20H (SP)
(s)+1
2EH (.)
(s)+2
32H (2)
(s)+3
31H (1)
(s)+4
2BH (+)
(s)+5
30H (0)
(s)+6
-
1 . 3 2 0 1 E + 1 0
(1): Single-precision real number
b0
2DH (-)
2EH (.)
(d)+1
37H (7)
-
1
. 0
7
31H (1)
00H
b0
2DH (-)
20H (SP)
(d)+1
2EH (.)
-
1
. 3
30H (0)
35H (5)
38H (8)
32H (2)
(1)
b0
2DH (-)
30H (0)
(d)+1
2EH (.)
-
1
. 2
33H (3)
00H
b0
2DH (-)
31H (1)
(d)+1
33H (3)
- . 3
1
2
30H (0)
45H (E)
31H (1)
00H
(d)
8
1 2
(1)
(d)
0
1 5
6
(2)
(d)
3 1
(2)
(d)
0
1
E
+
1
0
(1)
8 APPLICATION INSTRUCTION
8.9 Real Number Instruction
8
507

Hide quick links:

Advertisement

loading