384
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
â– Decimal point format
• When 0 is specified in (s2), the decimal point format is applied.
• When the number of decimal part digits is 0, the number of digits that can be specified by (s2)+1 is "the number of digits (24
at a maximum)  2". For other than 0, the number of digits that can be specified by (s2)+1 is "the number of digits (24 at a
maximum)  (the number of decimal point digits + 3)".
• 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 3.
• For example, when the total number of digits is "8", the number of digits of the decimal part is "3", and "-1.23456" is
specified, data is stored in (d) and later as shown below:
(s2)+1
(s2)+2
b15 b8 b7 b0
0000H
(d)+4
(d)+3
(d)+2
(d)+1
(d)
(s2)
.
(s1)+1 (s1)
Total number of digits
"0000H" is automatically stored at the end of the character string.
ASCII code for sign
Sign
Single-precision real number
Decimal point format
Number of digits of
decimal part
ASCII code in "(Value
specifying number of all digits
- 1)"th digit
ASCII code in "(Value
specifying number of all digits
- 3)"th digit
ASCII code in "(Value
specifying number of all digits
- 2)"th digit
ASCII code in "(Value
specifying number of all digits
- 5)"th digit (decimal part)
ASCII code (2EH) for decimal
point (.)
ASCII code in "(Value
specifying number of all digits
- 7)"th digit (decimal part)
ASCII code in "(Value
specifying number of all digits
- 6)"th digit (decimal part)
1-.23
1-.23 4 56
5
(s1)+1 (s1)
(s2)+1
(s2)+2
(s2)
0
8
3
b15 b8 b7 b0
(d)+4
(d)+3
(d)+2
(d)+1
(d)
0000H
2DH(-)
31H(1)
32H(2)
35H(5)
2EH(. )
33H(3)
Total number of digits
"0000H" is automatically stored at the end of the character string.
Sign
Single-precision real number
20H (space)
20H (space)
Number of digits
of decimal part