Advanced Function Instruction
7-131
FUN 205 P
FDIV
FLOATING POINT NUMBER DIVISION
FUN 205 P
FDIV
Sa: Dividend
Sb: Divisor
D : Destination register to store the results
of the division
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 division of the data specified at Sa and Sb and writes the result to the registers specified by
register D when the division 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
X5
205P.FDIV
R0
R2
R4