Xinje XD Series User Manual page 123

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

3. Suitable soft components
Operand
Word
S1
S2
D
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
Description
<16 bits operation >
X0
DIV
appoints the dividend soft component,
and the next address appoint the soft component of the result and the remainder.
In the above example, if input X0 is ON, devision operation is executed every scan cycle.
<32 bits operation >
The dividend is composed by the device appointed by
composed by the device appointed by
stored in the four sequential devices, the first one is appointed by
If the value of the divisor is 0, the instruction will be error.
The highest bit of the result and remainder is the symbol bit (positive:0, negative: 1). When
any of the dividend or the divisor is negative, then the result will be negative. When the
dividend is negative, then the remainder will be negative.
System
*
*
*
D
FD
TD
CD
DX
S1·
S2·
D0
D2
Dividend
Divisor
BIN
BIN
BIN
(D0) ÷ (D2) →
(D4) ┅ (D5)
16 bits
16 bits
16 bits
Dividend
Divisor
BIN
BIN
(D1, D0) ÷ (D3, D2)
32 bits
32 bits
and the next one. The result and the remainder are
Constant
*
*
DY
DM
DS
K /H
D4
Result
Remainder
BIN
16 bits
appoints the divisor soft component,
Result
Remainder
BIN
BIN
(D5, D4) ┅ (D7, D6)
32 bits
32 bits
and the next one. The divisor is
122
Module
ID
QD

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents