7.11 String Processing Instructions
7.11.11 Floating-point data to character string data conversion
7-195
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
ESTR
ESTR
(2) The post-conversion data differs depending on the display specification specified for
.
For example, when the total number of digits is 8, the number of digits for decimal fraction is
3, and 1.23456 is specified, the operation result would be stored to the devices following
as shown below.
(a) The total number of digits that can be specified for
+1 is as shown below.
When the number of digits for decimal fraction is 0
.................... Number of digits (max.: 24) 2
When the number of digits for decimal fraction is other than 0
..................... Number of digits (max.: 24) (Number of digits for decimal fr 3)
(b) The number of digits for decimal fraction that can be specified for
+2 is from 0 to 7.
However, the number of digits for decimal fraction must be smaller than or equal to the
total number of digits minus 3.
s
2
1
: Exponent format
Total num
b
er of
d
igits
[
1
]
[
0
]
0
: Floating-point format
Num
b
er of
d
igits in
d
ecimal fraction
[
2
]
The converte
d
d
ata
d
iffers
d
epen
d
ing
on the format selecte
d
at .
S
etting is possi
b
le in the range from
2
to
2
4.
s
2
s
2
s
2
s
2
When using floating
-
point format
ASC
II co
d
e for the sign
S
ign
00
H
A
utomaticall
y
store
d
at the
en
d
of character string
Floating-point real num
b
er
ASC
II co
d
e for the
(
total num
b
er of
d
igits -
2)
th
d
igit
ASC
II co
d
e for
d
ecimal point
(
.
)
(2
E
H
)
ASC
II co
d
e for the
(
total num
b
er of
d
igits -
6)
th
d
igit
ASC
II co
d
e for the
(
total num
b
er of
d
igits -
1)
th
d
igit
ASC
II co
d
e for the
(
total num
b
er of
d
igits -
3)
th
d
igit
ASC
II co
d
e for the
(
total num
b
er of
d
igits -
5)
th
d
igit
ASC
II co
d
e for the
(
total num
b
er of
d
igits -
7)
th
d
igit
.
d
s
1
d
d
d
d
Total num
b
er of
d
igits
[
1
]
[
0
] Floating-point format
Num
b
er of
d
igits in
d
ecimal fraction
[
2
]
s
2
s
2
s
2
+
1
+
2
+
3
+4
b15
b8b7
b0
d
8
3
[
2
]
1
S
ign
A
utomaticall
y
store
d
at the en
d
of character string
0
[
1
]
[
0
]
Floating-point real num
b
er
b15
b8 b7
b0
00
H
.
2 3 5
1
.
2 3
4
5 6
20
H
(
space
)
31
H
(1)
32
H
(2)
35
H
(5)
2
D
H
(
-
)
20
H
(
space
)
2
E
H
(
.
)
33
H
(3)
s
2
d
s
1
s
2
s
2
d
d
d
d
+
1
+
2
+
3
+4
-
-
s
2
s
2
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......