EasyManua.ls Logo

Xinje XD5 - Float Point Converts to Integer [INT]

Xinje XD5
389 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...
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-3Float 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

Table of Contents

Related product manuals