Advanced Function Instruction
7 -1 4 0
FUN 213
P
FABS
FLOATING POINT NUMBER ABSOLUTE VALUE
FUN 213
P
FABS
D : Register to be taken absolute value
D may combine with V, Z, P0~P9 to serve indirect
address application
HR
ROR
DR
K
XR
Range
Operand
R0
∣
R383
9
R5000
∣
R8071
D0
∣
D4095
Integer
16 Bit
number
V
、
Z
P0
~
P9
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
When operation control "EN" = 1 or "EN
↑
" (
P
instruction) from 0 to 1, calculate the absolute value of the
floating point number register specified by D, and write it back into the original D register.
R0
X0
EN
213P.
FABS
z
The instruction at left calculates the absolute
value of the DR0 register, and stores it back in
DR0.