8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
453
8
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);
FBD/LD
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
ANYREAL_32
(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_ARRAY
(Number of elements: 3)
(d)
Head device number for storing the converted data
Character string
ANYSTRING_SINGLE
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(d)
(1): 0: Decimal part format, 1: Exponent format
(2): Total number of digits
(3): Number of digits of decimal part
(4): 2 to 24 can be set.
(s1) (s2)
(d)
EN
ENO
d
s1
s2
(s2)+1
(s2)+2
(s2)
(2)
(1)
(3)
(4)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......