(Double Precision) - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

6.3.4
FLTD, FLTDP
Conversion from BIN 16-bit data to floating-point data

(Double precision)

DFLTD, DFLTDP
Conversion from BIN 32-bit data to floating-point data
(Double precision)
6.3.4
FLTD, FLTDP, DFLTD, DFLTDP
FLTD, DFLTD
FLTDP, DFLTDP
: Integer data to be converted to 64-bit floating decimal point data or head number of the devices where the integer data is stored (BIN 16/32 bits)
S
: Head number of the devices where the converted 64-bit floating decimal point data will be stored (real number)
D
Setting
Internal Devices
Data
Bit
Word
––
S
––
D
Function
FLTD
(1) Converts 16-bit BIN data designated by
designated by
.
D
(2) BIN values between -32768 to 32767 can be designated by
DFLTD
(1) Converts 32-bit BIN data designated by
designated by
.
D
(2) BIN values between -2147483648 to 2147483647 can be designated by
Operation Error
(1) There is no operation error in the FLT(P) or DFLT(P) instruction.
Program Example
(1) The following program converts the BIN 16-bit data at D20 to a 64-bit floating decimal point type real number and stores
the result at D0 to D3.
[Ladder Mode]
Command
Command
J
\
R, ZR
Bit
to 64-bit floating decimal point type real number, and stores at device number
S
S
BIN 16 bits
to 64-bit floating decimal point type real number, and stores at device number
S
S
+1
S
Upper 16 bits
Lower 16 bits
BIN 32 bits
[List Mode]
Step
FLTD, FLTDP, DFLTD, DFLTDP
High
Basic
performance
indicates an instruction symbol of
P
U
\G
Word
––
––
D
+3
D
+2
D
+1
D
64-bit floating-point
real number
.
S
D
D
D
+3
+2
+1
64-bit floating-point
real number
+1 and
S
S
Instruction
Device
Process
Redundant
Universal
LCPU
FLTD/DFLTD.
S
D
S
D
Constants
Zn
Other
K, H
––
––
––
D
.
1
2
3
4
6
7
8
237

Advertisement

Table of Contents
loading

Table of Contents