M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.3 Data Conversion Instructions
FLTD, FLTDP, DFLTD, DFLTDP: Conversion from BIN data to floating-point data (double precision)
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
FLTD, DFLTD
FLTDP, DFLTDP
Setting data
Setting data
Integer data for converting to 64-bit floating-point real number data, or the first
S
number of the device where integer data is stored.
The first number of the device to store the converted 64-bit floating-point real num-
D
ber data.
Functions
FLTD
Converts BIN 16-bit data designated by (S) to a 64-bit floating-point real number, and stores at the device designated by
(D).
S
BIN 16 bits
BIN values between -32768 to 32767 can be designated by (S).
DFLTD
Converts BIN 64-bit data designated by (S) to a 32-bit floating-point real number, and stores at the device designated by
(D).
S+1
S
Upper 16 bits
Lower 16 bits
BIN 32 bits
BIN values between -2147483648 to 2147483647 can be designated by (S+1) and (S).
Operation errors
There are no arithmetic errors associated with FLTD(P) or DFLTD(P) instructions.
Usable devices
B SB
T SM V
T
C
○
○
○
○
Command
Command
Meaning
D+3
D+2
D+1
D
64-bit floating-point real
number
D+3
D+2
D+1
64-bit floating-point real
number
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
○
○
○
○
○
○
○
○
○
○
○
○
indicates the signs "FLTD"/"DFLTD".
D
221
Digit
Pointer
designa-
Index
tion
H
P
○
○
○
S
D
P
S
D
Data type
BIN 16/32 bits
Real number
IB-1501667-B