Advanced Function Instruction
7-130
FUN 204 P
FMUL
FLOATING POINT NUMBER MULTIPLICATION
FUN 204 P
FMUL
Sa: Multiplicand
Sb: Multiplier
D : Destination register to store the results
of the multiplication
Sa, Sb, D may combine with V, Z, P0~P9 to
serve indirect addressing
HR ROR DR K XR
Range
Operand
R0
∣
R383
9
R5000
∣
R8071
D0
∣
D4095
Floating
point
number
V、Z
P0~P9
Sa ○ ○ ○ ○ ○
Sb ○ ○ ○ ○ ○
D ○ ○* ○ ○
Description
z The format of floating point number of Fatek-PLC follows the IEEE-754 standard. For detail explanation of
the format please refer to 5.3 (Numbering System)…page
5-9.
z Performs the multiplication of the data specified at Sa and Sb and writes the results to a specified register D
when the multiplication control input "EN" =1 or "EN↑" ( P instruction) from 0 to 1. If the result exceed the
range that the floating point number can be expressed(
±3.4*10
38
) then the error flag FO0 will be set to 1
and the D register will be intact.
Sa :
Sb :
D :
ERR
EN
204P.FMUL
R10
M10
R12
R14
DR10 1 2 3 . 4 5
Floating Point Number :
Floating Point Number :
DR10
4 2 F 6 E 6 6 6 H
4 4 2 9 A 2 8 F H
DR14 4 7 A 3 9 A E 2 H
DR12 6 7 8 . 5 4 DR12
×