Mitsubishi MELSEC Q Series Programming Manual page 593

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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
S2
S2
+1
S2
+2
S1
-1 . 2 3 4 5 6
5) The value "00
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
area starting from
S2
1
+1
S2
12
+2
S2
4
-
Sign
(integer part)
S1
+1
S1
-1 2 . 34 5 6 7
32-bit floating-point real number
(space)" will be stored between the sign and the integer part.
H
0
8
2
+1
S1
" is automatically stored at the end of the converted character string.
H
E
.
Sign (integer part)
Sign (exponent part)
Automatically added
12.34567, the operation results would be stored in the
in the following manner:
D
1
.
2 3 4 6 E
+
0 1
Sign
(exponent part)
Total number of digits
-
1
. 2 3
Number of digits
in decimal fraction
Filled with 20
H
(space) codes
b15
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
D
+3
(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
20
(space)
D
H
D
2E
(.)
+1
H
D
33
(3)
+2
H
D
36
(6)
+3
H
2C
(+)
D
+4
H
31
(1)
D
+5
H
00
D
+6
H
Automatically added
ESTR(P)
1
2
3
4
6
b8b7
b0
6
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
7
ASCII code for the
(total number of digits -6)th digit
45
(E)
H
8
ASCII code for the
(total number of digits -10)th digit
00
H
b0
2D
(-)
H
31
(1)
H
32
(2)
H
34
(4)
H
45
(E)
H
30
(0)
H
7-219

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents