EasyManua.ls Logo

Inovance H3U Series - Page 111

Inovance H3U Series
737 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...
110
4
4 Instructions4.4.1 Four Arithmetic Operations
Function
Two binary oating-point numbers are multiplied together.
S1 and S2 are respectively the multiplicand and multiplier of a binary oating point multiplication.
D is the unit that stores the product of a binary oating point multiplication.
If the constant K or H is used as the operand S1 or S2, the value is converted to a binary oating-point
number before the multiplication operation.
The zero ag M8020 is set if the result of the calculation is 0.
The carry ag M8022 is set if the absolute value of the calculation result is greater than the maximum
oating-point value.
The borrow ag M8021 is set if the absolute value of the calculation result is less than the minimum
oating-point value.
Example:
DEMUL D2 D4 D10
X12
DS1 S2
DEMULP D20 K3 D20
X13
When X12 = ON, the product of multiplying the binary oating-point number in (D3, D2) by that in (D5, D4)
is stored in (D11, D10).
When X13 switches from OFF to ON, the binary oating-point number in (D21, D20) is multiplied by 3 and
the result is stored in (D21, D20) The constant K3 is changed to a binary oating-point number before the
multiplication operation.
If the unit that stores the product is the same as the multiplicand or multiplier storage unit, use the DEMULP
instruction of the pulse execution type. If the continuous execution type is used, calculation is performed
upon every program scan.
EDIV: Binary oating point division
Overview
The EDIV instruction divides one binary oating-point number by another.
EDIV S1 S2 D
Binary floating
point division
Applicable model:
H3U
S1 Dividend Dividend of a binary oating point division 32-bit instruction
(13 steps)
DEDIV: Continuous
execution
DEDIVP: Pulse
execution
S2 Divider Divider of a binary oating point division
D Quotient
Head address of units that store the quotient of a binary
oating point division

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals