Fnc116 - Estr / Floating Point To Character String Conversion - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.4
FNC116 – ESTR / Floating Point to Character String Conversion
Outline
This instruction converts binary floating point data into a character string (ASCII codes) having a specified number of
digits.
On the other hand, STR (FNC200) instruction converts binary data into a character string (ASCII codes).
1. Instruction format
FNC 116
D
ESTR
2. Set data
Operand Type
S
1
S
2
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
1
S
2
D
Explanation of function and operation
1. 32-bit operation (DESTR and DESTRP)
The contents (binary floating point data) of [
contents specified by
be directly specified as
Command
input
FNC116
DESTR
• The data after conversion varies depending on the display specification stored in
0: Decimal point
S
2
1: Exponent
Total number of
+1
S
2
Number of digits
+2
S
2
492
Mnemonic
16-bit Instruction
P
Binary floating point data to be converted or device storing data
Head device number storing the display specification of a numeric value to be converted
Head device number storing converted character string
Digit Specification
S
,
S
+1 and
2
2
S
.
1
S
S
1
2
The data after conversion varies
format
depending on the display
specification stored in
format
2 to 24 can be set.
digits
of decimal part
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
→ For a character string, refer to Section 5.3.
→ For handling of floating point, refer to Subsection 5.1.3.
→ For STR (FNC200) instruction, refer to Section 26.1.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
T
C D R U \G
+1,
] are converted into a character string according to the
S
S
1
1
S
+2, and then stored to devices
2
D
.
S
2
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DESTR
13 steps
DESTRP
Real number (binary)
Character string
Others
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
D
and later. A real number can
S
.
2
Continuous
Operation
Pulse (Single)
Operation
Data Type
16-bit binary
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents