EasyManua.ls Logo

Delta VP3000 Series - Page 320

Delta VP3000 Series
714 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...
Chapter 7 Second Development PlatformVP3000
311
API Instruction code Operand Function
22 D MUL P S
1
, S
2
, D BIN multiplication
Type
Operand
Bit devices Word devices
16-bit instruction (7 steps)
MUL
C
ontinuous
execution
type
MULP
Pulse
execution
type
32-bit instruction (13 steps)
DMUL
C
ontinuous
execution
type
DMULP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
D
Caution for using operand
In 16-bit instruction, operand D occupies 2 consecutive devices.
Description
S
1
: Multiplicand
S
2
: Multiplicator
D: Product
This instruction multiplies S
1
by S
2
in BIN format and stores the result in D.
In 16-bit BIN multiplication,
When D serves as a bit device, it can designate K1–K4 and construct a 16-bit result, occupying
consecutive 2 groups of 16-bit data.
Example
The 16-bit D0 is multiplied by the 16-bit D10 and brings forth a 32-bit product. The higher 16
bits are stored in D21 and the lower 16-bit are stored in D20. ON / OFF of the most left bit
indicates the positive / negative status of the result value.
X0
D0 D10
D20
MUL
D0 D10
K8M0
MUL

Table of Contents

Related product manuals