Mitsubishi MELSEC-Q/L Programming Manual page 476

Table of Contents

Advertisement

ESTR, ESTRP
3) If the number of digits following the decimal point has been set at any value other than "0", "2E
automatically be stored at the position before the first of the specified number of digits.
S2
S2
+1
S2
+2
If the number of digits in the decimal fraction part is "0", the ASCII code "2E
4) If the total number of digits, excluding the sign, the decimal point and the decimal fraction part, is greater than
the integer part of the 32-bit floating point type real number data, "20
and the integer part.
5) The value "00
H
When using exponent format
S2
Exponent format
S2
+1
Total number of digits
S2
+2
Number of digits in decimal fraction
S1
+1
S1
32-bit floating-point real number
For example, in a case where there are 12 digits is total, with 4 digits in the decimal fraction portion, and the value
designated is -12.34567, the operation results would be stored in the area starting from
S2
1
S2
+1
12
+2
4
S2
+1
S1
S1
-1 2 . 34 5 6 7
32-bit floating-point real number
474
0: Decimal point format
8 (Total number of digits)
2 (Number of digits in decimal fraction)
S1
+1
S1
-1 . 2 3 4 5 6
S2
0
S2
+1
8
S2
+2
2
S1
+1
S1
-1 . 2 3 4 5 6
" is automatically stored at the end of the converted character string.
E
.
Sign (integer part)
Sign (exponent part)
Automatically added
-
1
.
2 3 4 6 E
+
0 1
Sign
Sign
(integer part)
(exponent part)
Total number of digits
-
1
. 2 3
Number of digits
in decimal fraction
Automatically added
" (.) will not be stored.
H
(space)" will be stored between the sign
H
Total number of digits
-
1
. 2 3
Number of digits
in decimal fraction
Filled with 20
H
(space) codes
b15
b8b7
ASCII code for the
D
(total number of digits -1)th digit
ASCII code for decimal point (.)
+1
D
(2E
)
H
ASCII code for the
D
+2
(total number of digits -5)th digit
ASCII code for the
+3
D
(total number of digits -7)th digit
ASCII code for the sign
D
+4
(Exponent part)
ASCII code for the
D
+5
(total number of digits -11)th digit
D
+6
Automatically stored at
the end of character sting
b15
b8 b7
D
20
(space)
H
2E
(.)
D
+1
H
33
(3)
D
+2
H
36
(6)
D
+3
H
D
2C
(+)
+4
H
D
31
(1)
+5
H
00
D
+6
Automatically added
" (.) will
H
b0
ASCII code for the sign
ASCII code for the
(total number of digits -2)th digit
ASCII code for the
(total number of digits -4)th digit
ASCII code for the
(total number of digits -6)th digit
45
(E)
H
ASCII code for the
(total number of digits -10)th digit
00
H
in the following manner:
D
b0
2D
(-)
H
31
(1)
H
32
(2)
H
34
(4)
H
45
(E)
H
30
(0)
H
H

Advertisement

Table of Contents
loading

Table of Contents