Mitsubishi MELSEC-Q/L Programming Manual page 477

Table of Contents

Advertisement

(a) The total number of digits that can be designated by
When the number of decimal fraction digits is "0"
.........................Number of digits (max.: 24)
When the number of decimal fraction digits is other than "0"
.........................Number of digits (max.: 24)
(b) The number of digits of dicimal fraction part that can be designated by
However, the number of digits in the decimal fraction portion should be equal to or less than the total number of
digits minus 7.
(c) The converted character string data is stored at the area starting from the device number
1) If the 32-bit floating decimal point type real number data is positive in value, the sign before the integer will be
stored as ASCII code "20
2) The integer portion is fixed to one digit.
20
(space) will be stored between the integer and the sign.
H
S2
S2
+1
S2
+2
S1
-1 2. 3
3) If the decimal fraction part of the 32-bit floating point type real number is out of the range of the digits of the
decimal fraction part, the lower decimal values will be rounded off.
S2
S2
+1
S2
+2
S1
+1
-1 2. 3 4 5 6 7
4) If the number of digits of the decimal fraction part 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
+1
S2
+2
S2
S1
-1 2. 3 4 5 6 7
If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2E
stored.
5) The ASCII code "2C
positive in value, and the code "2D
6) The exponent portion is fixed at 2 digits.
If the exponent portion is only 1 digit, the ASCII code "30
portion of the number.
S2
S2
+1
+2
S2
S1
+1
-1 2 . 3
7) The value "00
" is automatically stored at the end of the converted character string.
H
2
(Number of decimal fraction digits + 7)
" (space), and if it is a negative value, the sign will be stored as "2D
H
1
12
4
S1
+1
4 5 6 7
1
12
4
S1
1
12
4
+1
S1
" (+) will be stored as the sign for the exponent portion of the value if the exponent is
H
" (-) will be stored if the exponent is a negative value.
H
Total number of digits (12)
1
12
4
-
1
.
2 3 4
S1
4 5 6 7
+1 is as shown below:
S2
+2 is from 0 to 7.
S2
Total number of digits (12)
Fixed to 1 digit
.
-
1
2 3 4
6 E + 0 1
Filled with 20
(space) codes
H
Total number of digits (12)
-
1
.
2 3 4
6 6 7 E +
0 1
Number of digits
These are cut
in decimal fraction (4)
Total number of digits (12)
.
2 3 4
6 E +
0 1
-
1
Number of digits
in decimal fraction (4)
Automatically added
" (0) will be stored between the sign and the exponent
H
Fixed to 2 digits
6 E + 0 1
Filled with
30
(0) code
H
ESTR, ESTRP
as indicated below:
D
" (-).
H
" (.) will
H
" (.) will not be
H
475
1
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents