621
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC274
Ex-Device
Inverter Comms
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