Mitsubishi Electric MELSEC FX3U Programming Manual page 654

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
• When the binary data acquired by conversion is outside the following range (error code: K6706)
16-bit operation
32-bit operation
• When "00H" is not present in the location from
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
652
Setting range
−32768 to 32767
−2,147,483,648 to 2,147,483,647
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
to the final device number (error code: K6706)
S
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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents