EasyManua.ls Logo

Delta DVP-EX2 - Page 213

Delta DVP-EX2
1006 pages
Print Icon
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...
DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-92
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
114
MUL16
MUL32
P
16-bit Multiplication
32-bit Multiplication
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
MUL16, MUL16P:7 steps
MUL32, MUL32P:13
steps
S
1
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
Operands:
S
1
: Multiplicand S
2
: Multiplicator D: Product
Explanations:
1. MUL16 and MUL16P are 16-bit instructions. MUL32 and MUL32P are 32-bit instructions.
2. The signed binary value in S
1
is multiplied by the signed binary value in S
2
, and the product is
stored in D. Notice that it is applicable to normal algebraic regulations.
3. If the sign bit is 0, it represents a positive value. If the sign bit is 1, it represents a negative value.
4. The models which are supported are DVP-ES2/EX2 v. 3.22, DVP-SS2 v. 3.20, DVP-SA2/SX2 v.
2.66, and DVP-SE v.1.60 (and above).
5. 16-bit binary multiplication
b15................ b0
X
=
b15................ b0
b15 is a sign bit. b15 is a sign bit.
b15 is a sign bit.
S
1
D
S
2
b15................ b0
16-bit value×16-bit value=16-bit value
If D is a bit device, users can use K1~K4, and form 16 bits. D only occupies 16 bits.
6. 32-bit binary multiplication
X
=
+1
b31 is a sign bit
b31 is a sign bit
b31 is a sign bit
S
1
S
1
+1
S
2
S
2
+1
D
D
b31.......b16
b15.........b0
b31.......b16
b15.........b0
b31.......b16
b15.........b0
32-bit value×32-bit value=32-bit value
If D is a word device, users can use K1~K8, and forms 32 bits. D only occupies 32 bits.

Table of Contents

Related product manuals