Fnc 49 - Flt / Conversion To Floating Point - Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
12.10 FNC 49 – FLT / Conversion to Floating Point
Outline
This instruction converts a binary integer into a binary floating point (real number).
1. Instruction format
FNC 49
D
FLT
P
2. Set data
Operand type
S
S
1
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
S
1
D
Explanation of function and operation
1. 16-bit operation (FLT and FLTP)
The binary integer data of
].
D
D
1
Command
input
2. 32-bit operation (DFLT and DFLTP)
The binary integer data of [
[
D
D
+1,
D
D
].
1
1
Command
input
Related instruction
Instruction
INT(FNC129)
Caution
1. It is not necessary to convert a constant (K or H) into floating point value.
The value of a K or H specified in each instruction for binary floating point (real number) operation is
automatically converted into binary floating point (real number). It is not necessary to convert such a constant
using by FLT instruction.
(K and H cannot be specified in RAD, DEG, EXP and LOGE instructions.)
Mnemonic
16-bit Instruction
5 steps FLT
FLTP
Data register number storing binary integer
Data register number storing binary floating point (real number)
Digit Specification
D
S
is converted into binary floating point (real number), and stored to [
1
FNC 49
S
D
FLT
D
S
+1,
D
S
] is converted into binary floating point (real number), and stored to
1
1
FNC 49
S
D
DFLT
It is inverse of FLT instruction, and converts binary floating point into binary integer.
12 Data Operation – FNC 40 to FNC 49
12.10 FNC 49 – FLT / Conversion to Floating Point
Operation Condition
32-bit Instruction
Continuous
9 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Index
Unit
V Z Modify K H
→ (
S
D
+ 1,
Binary
Binary floating point
integer
(real number)
) → (
S
S
D
(
+ 1,
Binary integer
Binary floating point
(real number)
Description
Mnemonic
Operation Condition
Continuous
DFLT
Operation
Pulse (Single)
DFLTP
Operation
Data type
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
D
)
D
+1,
)
11
12
13
14
Pointer
15
P
16
D
D
+1,
1
17
18
19
20
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents