EasyManua.ls Logo

Xinje XD5 - Floating Number Operation

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...
156
Operands
Function
Data Type
S
Soft element address need coding
16bits/32bits, BIN
D
Soft element address to save coding result
16bits/32bits, 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.
D10GBIN D100
X0
S· D·
0 0 0 0 0 1 0 0 1 0 1 0 0 0 1 1
0 0 0 0 0 1 1 0 1 1 1 1 0 0 1 0
D10b15
b15 b0
b0
D100
Transform the gray code to binary value.
GBIN has 32 bits mode DBIN, which can transform 32 bits binary value.
Range is 0~32,767 (16 bits instruction); 0~2,147,483,647 (32 bits instruction).
4-9Floating number Operation
Mnemonic
Function
Chapter
ECMP
Floating Compare
4-9-1
EZCP
Floating Zone Compare
4-9-2
EADD
Floating Add
4-9-3
ESUB
Floating Subtract
4-9-4
EMUL
Floating Multiplication
4-9-5
EDIV
Floating Division
4-9-6
ESQR
Floating Square Root
4-9-7
Operand
System
Constant
Module
D
*
FD
TD
*
CD
*
DX
DY
DM
*
DS
*
K /H
ID
QD
S
D
Word
Description
Source (GRY) target (BIN)
From the left second bit of D10, XOR
each bit with the value after decoding,
as the bit value after decoding (the left
bit will not change). The
transformation value will be stored in
D100.
S·

Table of Contents

Related product manuals