Mitsubishi FX3U Series Programming Manual page 606

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
For example, when a character string "-123.45" is specified in
stored in
b15
+0
S
+1
+2
+3
2) Character string to be converted
a) Number of characters of character string and the numeric range when the decimal point is ignored
Number of all characters (digits)
Number of characters (digits) of decimal part
Numeric range when decimal point is ignored
b) Character types used in characters to be converted
Sign
Decimal point
Number
3)
stores the number of all digits. The number of all digits indicates the number of all characters
D
1
(including the number, sign and decimal point).
4)
+1 stores the number of digits of the decimal part. The number of digits of the decimal part indicates
D
1
the number of all characters after the decimal point "." (2EH).
5)
stores 16-bit binary data converted from a character string with the decimal point ignored.
D
2
In the character string located after
number except "0" is ignored in conversion into 16-bit binary data.
-
1 2
3
Ignored
604
and
as shown below.
D
D
1
2
b8 b7
31H(1)
2DH(-)
33H(3)
32H(2)
34H(4)
2EH( )
00H
35H(5)
It indicates the end of the character string.
Positive numeric value
Negative numeric value "–" (2D
Number of all
digits
Number of digits
4 5
of decimal part
16-bit binary
data
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
b0
- 1 2 3
2 to 8
0 to 5 and smaller than "number of all digits -3"
−32768 to +32767
Example: 12345.6 → 123456
Character type
"Space" (20
)
H
)
H
"." (2E
)
H
"0" (30
) to "9" (39
)
H
H
, "space" (20H) or "0" (30H) put between the sign and the first
S
8
2
0
0
0 1 2
-12345
Sign
Ignored
and later, the conversion result is
S
+0
D
1
+1
4 5
D
2
Description
Number of all
digits
Number of digits
of decimal part
16-bit binary
data
7
2
-12345
7
4
12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents