EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Conversion from bin 16-Bit Data to Floating-Point Data (Double Precision), Conversion from bin 32-Bit Data to Floating-Point Data (Double Precision)

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.3 Data Conversion Instructions
275
6
Conversion from BIN 16-bit data to floating-point data (double
precision), conversion from BIN 32-bit data to floating-point data
(double precision)
FLTD(P), DFLTD(P)
Processing details
FLTD
Converts 16-bit BIN data designated by (S) to 64-bit floating decimal point type real number, and stores at device number
designated by (D).
BIN values between -32768 to 32767 can be designated by (S).
DFLTD
Converts 64-bit BIN data designated by (S) to 32-bit floating decimal point type real number, and stores at device number
designated by (D).
BIN values between -2147483648 to 2147483647 can be designated by (S)+1 and (S).
Operation error
There is no operation error in the FLT(P) or DFLT(P) instruction.
(S): 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)
(D): Head number of the devices where the converted 64-bit floating decimal point data will be stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S) 
(D) 
Universal
LCPU
Basic
High
performance
Process
Redundant
P
Command
Command
S D
S D
FLTD, DFLTD
FLTDP, DFLTDP
indicates an instruction symbol of FLTD/DFLTD.
BIN 16 bits
S
+3
64-bit floating-point
real number
D
+2
D
D
+1
D
BIN 32 bits
Upper 16 bits Lower 16 bits
+1
S S
+3
64-bit floating-point
real number
D
+2
D D
+1
D

Table of Contents

Related product manuals