
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
383
7
Converting single-precision real number to character string
ESTR(P)/DESTR(P)
These instructions convert the single-precision real number data stored in the device specified by (s1) into a character string
according to the display specification stored in the device specified by (s2) and later, and store the string in the device
specified by (d) and later.
The ESTR(P) instructions can also be used as DESTR(P).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1
T, ST, C cannot be used.
Processing details
• These instructions convert the single-precision real number data stored in the device specified by (s1) into a character
string according to the display specification stored in the device specified by (s2) and later, and store the string in the device
specified by (d) and later. A real number can be directly specified as (s1).
• The data after conversion varies depending on the display specification stored in (s2).
Ladder diagram
Structured text
ENO:=ESTR(EN,s1,s2,d);
ENO:=ESTRP(EN,s1,s2,d);
Operand
Description
Range
Data type
Data type (label)
(s1)
Single-precision real number data to be converted or the start
number of the device where data is stored
0, 2
-126
<|(s1)|<2
128
Single-precision real
number
Single-precision real
number
(s2)
Head device number storing the display specification of a
numeric value to be converted
The device specified in (s2) and following 2 devices are used.
16-bit signed binary
ANY16
(d)
Head device number for storing the converted data
Character string
Character string
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(d)
(s1)
(s2)
(d)
(s2)+1
(s2)+2
(s2)
Total number of digits
0: Decimal part format
1: Exponent format
Number of digits of decimal part
2 to 24 can be set.
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......