Mitsubishi Electronics FX3G User Manual

Page of 964
499
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.5 FNC117 – EVAL / Character String to Floating Point Conversion
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
b) In the case of exponent format
• 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.
When "2DH (-)" is specified as the sign, a character string is converted into a negative value.
• When "2BH (+)" is specified as the sign in the exponent format or when the sign is omitted, a character string is 
converted into a positive exponent.
When "2DH (-)" is specified as the sign, a character string is converted into a negative exponent.
• When "20H (space)" or "30H (0)" exists between numbers except the first "0" in a character string specified by 
, "20H" or "30H" is ignored during conversion.
• When "30H (0)" exists between a number and "E" in a character string in the exponent format, "30H" is ignored 
during conversion.
• A character string can consist of up to 24 characters.
"20H (space)" and "30H (0)" in a character string are counted as one character respectively.
b15
b8 b7
b0
+1
+2
+3
+4
+5
+6
Rounded.
+1
Binary floating point
(real number)
−1.35034E−2
20H(.)
2EH(.)
00H
35H(5)
33H(3)
2DH(-)
31H(1)
33H(3)
30H(0)
31H(1)
45H(E)
32H(2)
34H(4)
32H(2)
30H(0)
2DH(-)
5 0 3
3
4
2 E
1
1
0 2
Up to 6 digits are
securely equivalent.
   
S
b15
b8 b7
b0
+1
+2
+3
Ignored.
+1
Binary floating point
(real number)
−1.231
20H(space)
31H(1)
32H(2)
31H(1)
2DH(-)
30H(0)
2EH(.)
33H(3)
2 3 1
1
0
+4
00H
b15
b8 b7
b0
Ignored.
+1
−1.0453E+3
20H(space)
2EH(.)
34H(4)
33H(3)
2DH(-)
31H(1)
30H(0)
35H(5)
2BH(+)
33H(3)
30H(0)
45H(E)
4 5 3
0
E
0 3
+
1
00H