M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
ESTR, ESTRP: Conversion from floating-point data to character string data
Setting
Bit devices
data
X
Y
M
L
F
S1
S2
D
[Instruction symbol] [Execution condition]
ESTR
ESTRP
Setting data
Setting data
32-bit floating-point data to be converted, or the first number of the device where
S1
the floating-point data is stored.
The first number of the device storing the display designation for the numerical val-
S2
ue to be converted.
D
The first number of the device to store the converted character string.
Functions
ESTR
Converts the 32-bit floating-point real number data designated by (S1) to a character string according to the display desig-
nation designated by (S2), and stores the result in the area starting from the device number designated by (D).
The converted data differs depending on the display designation designated by (S2).
0: Decimal point format
S2
1: Exponential format
Total number of digits
S2+1
Number of digits in decimal
S2+2
fraction
When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
IB-1501667-B
Usable devices
B SB
T SM V
T
C
○
○
○
○
○
○
Command
Command
Meaning
The converted data differs
depending on the format
selected at S2.
...
Setting is possible in the
range from 2 to 24.
Con-
Word devices
stant
D
R/ZR W SW SD
Z
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
332
Digit
Pointer
designa-
Index
tion
E
P
○
○
indicates the sign "ESTR".
S1 S2
D
P
S1 S2
D
Data type
Real number
BIN 16 bits
Character string