141
<64 bits>
FLTD
D10
D14
S·
D·
X0
Convert BIN integer to binary floating point. As the constant K, H will auto convert by the
floating operation instruction, so this FLT instruction can’t be used.
The inverse transformation instruction is INT.
FLTD can change the 64 bits integer to 32 bits floating value.
FLT D0 D10
X0
D0 is integer 20, after executing the instruction, D10 is floating value 20.
Note: Before using floating number operation instructions such as EADD, ESUB, EMUL,
EDIV, EMOV and ECMP, make sure that all operation parameters are floating number.
4-8-3
.
Float point converts to integer [INT]
1. Summary
Floating point converts to integer [INT]
16 bits
INT
32 bits
DINT
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands Function
Data Type
S
Source soft element address
16 bits/32 bits, BIN
D
Target soft element address
16 bits/32 bits, BIN
3. Suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS; the word combined by bits.
(D13,D12,D11,D10) → (D15,D14)
BIN integer Binary float point
Operand
System
Constant Module
D
*
FD
TD
*
CD
*
DX
DY
DM
*
DS
*
K /H
ID
QD
S
●
●
D
●
Word
Содержание XD Series
Страница 1: ...XD XL series PLC User manual Instruction WUXI XINJE ELECTRIC CO LTD Data No PD05 20201022 3 5 ...
Страница 210: ...209 ...
Страница 314: ...313 B Double click the middle part to modify ...