EasyManua.ls Logo

Delta VP3000 Series - Page 353

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 Platform VP3000
344
API Instruction code Operand Function
122 D EMUL P S
1
, S
2
, D
Binary floating-point number
multiplication
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (13 steps)
DEMUL
Continuous
execution
type
DEMULP
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
See the specification of each model for the scope of device’s usage.
Description
S
1
: Multiplicand
S
2
: Multiplicator
D: Product
The content of the register that S
1
designates multiplies the content of the register that S
2
designates, and its product is stored in the register that D designates. This multiplication is
performed in the form of binary floating-point numbers.
If S
1
or S
2
is a designated constant K or H, the instruction will convert the constant into a
binary floating-point value before the multiplication.
S
1
and S
2
can designate the same register. In this case, if the instruction is specified as
“continuous execution type” instruction (pulse execution type DEMULP is generally used) and
the drive contact is ON, the register will be multiplied once in every scan.
Example
Example 1
When X1 = ON, multiply the binary floating-point number (D1, D0) and (D11, D11), and store
the product to the register that (D21, D20) designate.
X1
DEMUL D0 D10 D20
Example 2
When X2 = ON, multiply K1234 (convert to binary floating-point number automatically) and the
binary floating-point numbers (D1, D0), and stores the result in (D11, D10).
X2
DEMUL D0K1234 D10

Table of Contents

Related product manuals