564
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
■When using exponent format
For example, in a case where there are 12 digits in total, with 4 digits in the decimal fraction part, and the value designated is
-12.34567, the operation result would be stored in the area starting from (D) in the following manner:
• The total number of digits that can be designated by (S2)+1 is as shown below:
• The number of digits of decimal fraction part that can be designated by (S2)+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.
• 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 digits + 7)
ASCII code for the sign
b8b7 b0
Total number of digits
Number of digits in decimal fraction
+2
.
Sign (for integer)
+1
00H
Automatically stored at
the end of character sting
+2
+3
+4
+5
+6
Sign (for exponent)
E
Exponent format
+1
32-bit floating-point real number
Automatically added
+1
ASCII code for the
(total number of digits-2)th
digit
45H (E)
ASCII code for the
(total number of digits-4)th
digit
ASCII code for the
(total number of digits-6)th
digit
ASCII code for the
(total number of digits-10)th
digit
ASCII code for the
(total number of digits-1)th
digit
ASCII code for decimal
point (.) (2E
H)
ASCII code for the
(total number of digits-5)th
digit
ASCII code for the sign
(for exponent)
ASCII code for the
(total number of digits-7)th
digit
ASCII code for the
(total number of digits-11)th
digit
S1
S2
D
S2
S2
S1
D
D
D
D
D
D
b15
12
4
+2
.
Sign (for integer)
Automatically added
Sign (for exponent)
+
1
+1
32-bit floating-point real number
+1
b8 b7 b0
00
H
+1
+2
+3
+4
+5
+6
-12.34
1- 234 6 E 01
2D
H (-)
31
H (1)
32
H (2)
34
H (4)
45
H (E)
30
H (0)
20
H (space)
2E
H (.)
33
H (3)
36
H (6)
2C
H (+)
31
H (1)
S2
S1
D
D
D
D
D
D
D
S1
S2
S2
567
b15