Mitsubishi Electronics FX3G User Manual

Page of 964
621
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
Program example
1) In the program below, the character string data stored in D20 to D22 is regarded as an integer value, converted
into a binary value, and stored in D0 when X000 is set to ON.
2) In the program below, the character string data stored in D20 to D24 is regarded as an integer value, converted
into a binary value, and stored in D0 when X000 is set to ON.
X000
FNC201
VALP
D10
D0
END
D20
-1654
6
2
b15
b8 b7
b0
D20
D21
D22
31H(1)
2EH(.)
2DH(-)
36H(6)
34H(4)
35H(5)
D23
D0
D10
D11
Number of all digits
Number of digits of decimal part
"00H" is stored here.
00H
X000
FNC201
DVALP
D10
D0
END
D20
10
3
b15
b8 b7
b0
D20
D21
D22
37H(7)
31H(1)
20H(space)
39H(9)
30H(0)
30H(0)
D23
D0
D10
D11
Number of all digits
Number of digits of decimal part
36H(6)
2EH(.)
31H(1)
31H(1)
D24
D25
7910      0611
D1
D0
"00H" is stored here.
00H