7-223
ESTR(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.11 Conversion from floating decimal point to character string data (ESTR(P))
Program Example
(1) The following program converts the 32-bit floating point type real number data which had
been stored at R0 and R1 in accordance with the conversion designation that is being stored
at R10 to R12, and stores the result following D0 when X0 goes ON.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program converts the 32-bit floating decimal point type real number data which
had been stored at D0 and D1 in accordance with the conversion designation that is being
stored at R10 to R12, and stores the result following D10 when X1C goes ON.
[Ladder Mode] [List Mode]
[Operation]
Instruction Device
Step
7
3
R12
Number of digits
in decimal fraction
0
R11
R1
. 033
Total number of digits
Total number of digits
Number of digits
in decimal fraction
Conversion format
R10
.
03
2
7
4
570
R0
Space
0
Automatically stored
b8b7 b0
D1
D2
20H (space)
2E
H (.)
33
H (3)
00
H
20H (space)
30
H (0)
30
H (0)
33
H (3)
D0
b15
Instruction Device
Step
.
Automatically stored
Space
b15 b8b7 b0
00H
D11
D12
D13
D14
D15
D16
3274 6 E 0- 2
20H (space)
2E
H (.)
37
H (7)
36
H (6)
2D
H (-)
32
H (2)
12
4R12
1 (exponent format)
R11
D1
Total number of digits
Number of digits
in decimal fraction
Conversion format
R10
.
032
7
4
57
0
D0
8
Number of digits
in decimal fraction
20H (space)
33
H (3)
32
H (2)
34
H (4)
45
H (E)
30
H (0)
D10
Total number of digits