7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
561
7
Conversion from floating-point data to character string data
ESTR(P)
*1 Applicable for the Universal model QCPU, LCPU.
• Converts the 32-bit floating decimal point data designated by (S1) to a character string according to the display designation
specified by (S2), and stores the result into the area starting from the device number designated by (D).
• The post-conversion data differs depending on the display designation designated by (S2).
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
• Basic model QCPU: The serial number (first five digits) is "04122" or later.
(S1): 32-bit floating decimal point data to be converted or head number of the devices where the data is stored (real number)
(S2): Head number of the devices where display designation for the numerical value to be converted is stored (BIN 16 bits)
(D): Head number of the devices where the converted character string will be stored (character string)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S1)
*1
(S2)
(D)
Basic
Process
High
performance
Redundant
Universal
LCPU
Ver.
ESTRP
ESTRP
ESTR
ESTR
D
D
S2
S2
S1
S1
Command
Command
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 converted data differs depending
on the format selected at .
S2