676
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
• The number of digits in the integral part of the 32-bit floating point real number data in the device specified by (s1) can be 1
to 16.
■Exponential format
• When 1 is specified in (s2), the exponential format is used.
• Total number of digits in the device specified by (s2)+1: When the number of digits in the decimal part is 0, total number of
digits (maximum of 24)2. When it is a value other than 0, total number of digits (maximum of 24)(number of digits in the
decimal part+7).
• The number of digits in the decimal part that can be specified by (s2)+2 is 0 to 7. Note that the number of digits in the
decimal part must be smaller than the total number of digits minus 7.
• The converted character string data are stored in the device areas specified by (d) and later as shown below.
• If the number of digits excluding the sign, decimal point, and decimal part from the total number of digits is greater than the number of digits in the integral part
of single-precision real number data, 20H (space) is stored between the sign and integral part.
(1) Total number of digits
(2) Number of digits in the decimal part
(3) Filled with 20Hs (spaces).
• The value "00H" is automatically stored at the end of the converted character string.
• As sign data in the integral part, 20H (space) is stored if the single-precision real number data is positive, and 2DH (-) is stored if the data is negative.
• The integral part is fixed to one digit. 20H (space) is stored between the integral part and sign.
(1) Total number of digits
(2) Fixed to 1 digit
(3) Filled with 20Hs (spaces).
1-.23
1-.23 4 56
(s1)+1 (s1)
(s2)+1
(s2)+2
(s2)
0
8
2
(2)
(1)
(3)
(s2)+1
(s2)+2
b15 b8 b7 b0
00H
(d)+4
(d)+3
(d)+6
(d)+5
(d)+2
(d)+1
(d)
(s2)
(s1)+1 (s1)
.
E
45H (E)
Total number of digits
Exponent format
Number of digits in the
decimal part
A null character, 00H, is automatically stored at the end of string.
Single-precision real number
ASCII code ((total number of
digits - 1)th digit)
ASCII code (decimal point (.))
(2EH)
ASCII code ((total number of
digits - 5)th digit)
ASCII code ((total number of
digits - 7)th digit)
ASCII code (sign data for
integral part)
ASCII code ((total number of
digits - 2)th digit)
ASCII code ((total number of
digits - 4)th digit)
ASCII code ((total number of
digits - 6)th digit)
ASCII code (sign data for
exponent part)
ASCII code ((total number of
digits - 11)th digit)
ASCII code ((total number of
digits - 10)th digit)
Sign for integral part Sign for exponent part
Automatically added.
12
4
1
2
3
4
6 E
+
0
11-
.
1-2.
3
4
56
7
(s2)+1
(s2)+2
(s2)
(s1)+1 (s1)
(2)
(1)
(3)