EasyManua.ls Logo

Xinje XD5 - Division [DIV]

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...
121
<16 bits Operation>
MUL D0 D2 D4
X0
S S2· D·
The contents of the two source devices are multiplied together and the result is stored at the
destination device in the format of 32 bits. As the above chart: when (D0)=8, (D2)=9, (D5,
D4) =72.
The result’s highest bit is the symbol bit: positive (0), negative (1).
In the above example, when X0 is ON, the instruction will be executed in every scanning
period.
<32 bits Operation >
X1
DMUL D0 D2 D4
S S2· D·
When use 32 bits operation, the result is stored at the destination device in the format of 64
bits.
Even use word device, 64 bits results can’t be monitored.
Please change to floating value operation for this case.
4-6-4Division [DIV]
1. Summary
Divide two numbers and store the result
Division [DIV]
16 bits
DIV
32 bits
DDIV
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands
Function
Data Type
S1
The divide operation data address
16 bits / 32 bits, BIN
S2
The divide operation data address
16 bits /32 bits, BIN
D
The result address
16 bits /32 bits, BIN
BIN BIN BIN
(D0) × (D2) → (D5, D4)
16 bits 16 bits → 32 bits
BIN BIN BIN
(D1, D0) × (D3, D2) (D7, D6, D5, D4)
32 bits 32 bits → 64 bits

Table of Contents

Related product manuals