235
FLT, FLTP, DFLT, DFLTP
1
2
3
4
6
7
8
6.3 Data conversion instructions
6.3.3 FLT, FLTP, DFLT, DFLTP
: Integer data to be converted to 32-bit floating decimal point data or head number of the devices where the integer data is stored (BIN 16/32 bits)
:
Head number of the devices where the converted 32-bit floating decimal point data will be stored (real number)
*1: Available only in multiple Universal model QCPU and LCPU
Function
FLT
(1) Converts 16-bit BIN data designated by to 32-bit floating decimal point type real number, and stores at device number
designated by .
(2) BIN values between -32768 to 32767 can be designated by .
DFLT
(1) Converts 32-bit BIN data designated by to 32-bit floating decimal point type real number, and stores at device number
designated by .
(2) BIN values between -2147483648 to 2147483647 can be designated by +1 and .
6.3.3 FLT, FLTP Convers ion from BIN 16 -bit data to floa ting-point da ta
(Single pre cision)
DFLT, DFLTP Conversion from BIN 32-bit data to floating-point data
(Single pre cision)
6.3.3
FLT, FLTP, DFLT, DFLTP
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
*1
–– ––
Basic
Process
High
performance
Redundant
Universal
LCPU
Ver.
P
Command
Command
S D
S D
FLT, DFLT
FLTP, DFLTP
indicates an instruction symbol of FLT/DFLT.
S
D
S
D
S
D
32-bit floating-point
real number
+1
BIN 16 bits
S D D
S
S
D
BIN 32 bits
Upper 16 bits Lower 16 bits
32-bit floating-point
real number
+1 +1
DS S D
S S