Fnc116 - Estr / Floating Point To Character String Conversion - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
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
P
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 T C D R U \G
S
1
S
2
D
Explanation of function and operation
1. 32-bit operation (DESTR and DESTRP)
The contents (binary floating point data) of [
to the contents specified by
number can be directly specified as
Command
input
FNC116
DESTR
• The data after conversion varies depending on the display specification stored in
0: Decimal point
format
S
2
1: Exponent
format
Total number of
+1
S
2
Number of digits
+2
S
2
of decimal part
Mnemonic
16-bit Instruction
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
,
+1 and
S
S
2
2
.
S
1
S
S
D
1
2
The data after conversion varies
depending on the display
specification stored in
2 to 24 can be set.
digits
18 Floating Point – FNC110 to FNC139
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
13 steps
Description
Word Devices
Special
System User
Index
Unit
V Z Modify K H
+1,
] are converted into a character string according
S
S
1
1
+2, and then stored to devices
S
2
.
S
2
Mnemonic
Operation Condition
Continuous
DESTR
Operation
Pulse (Single)
DESTRP
Operation
Data Type
Real number (binary)
16-bit binary
Character string
Others
Con-
Real
Charac-
Pointer
stant
Number
ter String
E
" "
P
and later. A real
D
.
S
2
511
11
12
13
14
15
16
17
18
19
20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents