Advanced Function Instruction
7-129
FUN 203 P
FSUB
FLOATING POINT NUMBER SUBTRACTION
FUN 203 P
FSUB
Sa: Minuend
Sb: Subtrahend
D : Destination register to store the results
of the subtraction
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 subtraction of the data specified at Sa and Sb and writes the results to a specified register D
when the subtract 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.
X0
Sa :
R0
Sb :
D :
ERR
203P.FSUB
EN
R4
R10