475
ESTR, ESTRP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.1
1
ESTR, ESTRP
(a) The total number of digits that can be designated by +1 is as shown below:
When the number of decimal fraction digits is "0"
.........................Number of digits (max.: 24) 2
When the number of decimal fraction digits is other than "0"
.........................Number of digits (max.: 24) (Number of decimal fraction 7)
(b) The number of digits of dicimal fraction part that can be designated by +2 is from 0 to 7.
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 as indicated below:
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
H
" (space), and if it is a negative value, the sign will be stored as "2D
H
" (-).
2) The integer portion is fixed to one digit.
20
H
(space) will be stored between the integer and the sign.
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.
4) If the number of digits of the decimal fraction part has been set at any value other than "0", "2E
H
" (.) will
automatically be stored at the position before the first of the specified number of digits.
If the number of digits in the decimal fraction part of the number is "0", the ASCII code "2E
H
" (.) will not be
stored.
5) The ASCII code "2C
H
" (+) will be stored as the sign for the exponent portion of the value if the exponent is
positive in value, and the code "2D
H
" (-) will be stored if the exponent is a negative value.
6) The exponent portion is fixed at 2 digits.
If the exponent portion is only 1 digit, the ASCII code "30
H
" (0) will be stored between the sign and the exponent
portion of the number.
7) The value "00
H
" is automatically stored at the end of the converted character string.
S2
S2
D
12
4
+2
Filled
w
ith 20
H
(space) codes
1
+1
+1
2 3 4
Fixed to 1 digit
6 E + 0 1
1
-
.
Total number of digits (12)
-1 2. 3
4 5 6 7
S2
S1
S2
S2
S1
12
4
+2
These are cut
1
+1
+1
2 3 4
Total number of digits (12)
6 6 7 E +
1
-
.
-1 2. 3 4 5 6 7
0 1
Number of digits
in decimal fraction (4)
S2
S1
S1
S2
S2
12
4
+2
Automatically added
1
+1
+1
2 3 4
Total number of digits (12)
6 E +
1
-
.
-1 2. 3 4 5 6 7
0 1
Number of digits
in decimal fraction (4)
S2
S1
S1
S2
S2
12
4
+2
Filled
w
ith
30
H
(0) code
1
+1
+1
2 3 4
Fixed to 2 digits
6 E + 0 1
1
-
.
Total number of digits (12)
-1 2 . 3
4 5 6 7
S2
S1
S2
S2
S1