Mitsubishi Electric MELSEC FX3U Programming Manual page 516

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
• The number of digits of the decimal part which can be specified by
However, the following must be satisfied, "Number of digits of decimal part ≤ (Total number of digits - 7)"
For example, when the total number of digits is "12", the number of digits of the decimal part is "4", and
"-12.34567" is specified, data is stored in
S
2
+1
S
2
+2
S
2
Sign (integer part)
+1
S
1
−12.34567
Binary floating point
(real number)
• The character string data after conversion is stored in the devices
- For the sign of the integer part, "20H (space)" is stored when the binary floating point data is positive,
and "2DH (-)" is stored when the data is negative.
- The integer part is fixed to 1 digit.
"20H (space)" is stored between the integer part and the sign.
S
2
+1
S
2
+2
S
2
S
1
−12.34567
- If the decimal part of the binary floating point data cannot be accommodated in the number of digits of
the decimal part, low-order digits of the decimal part are rounded.
S
2
+1
S
2
+2
S
2
S
1
−12.34567
- When the number of digits of the decimal part is set to any value other than "0", "2EH (.)" is
automatically stored in "specified number of digits of decimal part + 1"th digit.
When the number of digits of the decimal part is "0", "2EH (.)" is not stored.
S
2
+1
S
2
+2
S
2
S
1
−12.34567
- For the sign of the exponent part, "2BH (+)" is stored when the exponent is positive, and "2DH (-)" is
stored when the exponent is negative.
514
1
Total number
of digits
12
Number of
digits of
4
decimal
part
1
2 3 4 6 E + 0 1
Fixed to 2 digits
Sign (exponent part)
S
1
1
12
Fixed to 1 digit
4
+1
S
1
1
12
4
+1
S
1
1
12
4
+1
S
1
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
and later as shown below:
D
b15
D
+1
D
+2
D
+3
D
+4
D
+5
D
+6
D
0000H is automatically stored at the end of the
Total number of digits (12)
1
2 3 4 6 E +
0
1
"20H (space)" is stored.
Total number of digits (12)
1
2 3 4 6
6 7
E +
Number of digits of
Cut by rounding.
decimal part (4)
Total number of digits (12)
1
2 3 4 6 E +
0
1
Number of digits of
decimal part (4)
Automatically added.
18 Floating Point – FNC110 to FNC139
+2 is from 0 to 7.
S
2
b8 b7
20H space
2DH(-)
2EH(.)
31H(1)
33H(3)
32H(2)
36H(6)
34H(4)
2BH(+)
45H(E)
31H(1)
30H(0)
0000H
character string.
and later as shown below:
D
0
1
b0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents