472
ESTR, ESTRP
[Operation]
(2) The following program reads the character string data stored from D20 to D24 as an integer, converts it to a BIN value,
and stores it at D0 when X0 is ON.
[Ladder Mode]
[List Mode]
[Operation]
: 32-bit floating decimal point data to be converted or head number of the devices where the data is stored (real number)
: Head number of the devices where display designation for the numerical value to be converted is stored (BIN 16 bits)
: Head number of the devices where the converted character string will be stored (character string)
*1:
Available only in multiple Universal model QCPU and LCPU
F
unct
i
on
(1) Converts the 32-bit floating decimal point data designated by to a character string according to the display designation
specified by , and stores the result into the area starting from the device number designated by .
(2) The post-conversion data differs depending on the display designation designated by .
7.11.11 ESTR, ESTRP
Conversion from floating-point data to character string
data
7.11.11
ESTR, ESTRP
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
*1
––
––
––
––
––
––
––
––
––
––
––
––
––
D21
D22
D23
2D
H
(
)
31
H
(1)
36
H
(6)
2
E
H
(
.
)
b15
b8b7
b0
35
H
(5)
3
4
H
(
4
)
D20
00
H
165
4
D0
6
2
D10
D11
T
ota
l
number
of
d
i
g
i
ts
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
00
H
Set
Step
I
nstruct
i
on
De
vi
ce
D21
D22
D23
20
H
(space)
37
H
(7)
39
H
(9)
31
H
(1)
b15
b8 b7
b0
30
H
(0)
30
H
(0)
D20
00
H
10
3
D10
D11
T
ota
l
number
of
d
i
g
i
ts
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
00
H
2
E
H
(
.
)
36
H
(6)
31
H
(1)
31
H
(1)
D2
4
D25
7 9 1 0 0 6 1 1
D1
D0
Set
Basic
Process
High
performance
Redundant Universal
LCPU
Ver.
Command
Command
E
S
T
RP
ESTRP
ESTR
E
S
T
R
D
D
S2
S2
S
S1
S1
S2
D
S1
D2
D
S1
S2
D
S2
1: Exponent format
Total number of digits
+1
0: Decimal point format
Number of digits in decimal fraction
+2
Setting is possible in the range from 2 to 24.
S2
S2
S2
The con
v
erted data differs depending
on the format selected at .
S2