EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 460

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.12 Floating Point
458
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
3. In the case of exponential type
The number of all digits that can be specified by +1 is as follows. (Maximum: 24 digits)
When the number of digits below decimal point is "0" . . . . . . . . . . . .No. of digits 6
When the number of digits below decimal point is other than "0". . . .No. of digits (decimal digits + 7)
Decimal digits that can be specified by +2 is 0 to 7 digits. Please set within the range of decimal digits
(total digits - 7).
For example, in the case of all digits of 12 and decimal digits of 4, when -12.34567 is specified, the data after
is stored as follows.
Exponential type
All digits
Number of digits
below decimal point
E
Sign (integer part)
+1
+2
Sign
(exponential part)
Added
automatically.
ASCII code of digit number
(all digits specified value - 1)
ASCII code of digit number
(all digits specified value - 5)
(Decimal part)
ASCII code of digit number
(all digits specified value - 7)
(Decimal part)
ASCII code of the sign
ASCII code of digit number
(all digits specified value - 2)
ASCII code of digit number
(all digits specified value - 6)
(Decimal part)
0000H
b15
+1
+2
+3
+4
b8 b7 b0
To be stored automatically at the end of character string.
ASCII code of the sign
(exponential part)
ASCII code of digit number
(all digits specified value - 11)
(exponential part)
45H(E)
ASCII code of digit number
(all digits specified value - 10)
(exponential part)
+5
+6
+1
Binary floating decimal point (real number)
ASCII code of
decimal point (.) (2EH)
ASCII code of digit number
(all digits specified value - 4)
(Decimal part)
d
s1
s2
d
d
d
d
d
d
s2
s2
s1
1
12
4
2 3 4 6 E + 0 1
Sign (integer part)
+1
+2
1
Sign (exponential part)
20H (space)
2EH(.)
0000H
b15
+1
+2
+3
+4
b8 b7 b0
To be stored automatically at the end of character string.
33H(3)
36H(6)
2DH(-)
31H(1)
32H(2)
34H(4)
2BH(+)
31H(1)
45H(E)
30H(0)
+5
+6
+1
Binary floating decimal point (real number)
-12.34567
All digits
Number of digits
below decimal point
2 digits fixed
d
s1
s2
d
d
d
d
d
d
s2
s2
s1

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals