Mitsubishi Electric FX3G SERIES Programming Manual page 625

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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.
X000
b15
D20
31H(1)
D21
2EH(.)
D22
34H(4)
D23
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
b15
D20
37H(7)
D21
31H(1)
D22
30H(0)
D23
36H(6)
D24
31H(1)
D25
FNC201
D20
VALP
b8 b7
b0
2DH(-)
36H(6)
35H(5)
00H
"00H" is stored here.
FNC201
D20
DVALP
b8 b7
b0
20H(space)
39H(9)
30H(0)
2EH(.)
31H(1)
00H
"00H" is stored here.
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
D10
D0
END
D0
-1654
D10
6
Number of all digits
D11
2
Number of digits of decimal part
D10
D0
END
D1
D0
D0
7910
0611
D10
10
Number of all digits
D11
3
Number of digits of decimal part
21
22
23
24
25
26
27
28
29
30
623

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents