EasyManua.ls Logo

FATEK FBs-2DA - Page 291

FATEK FBs-2DA
348 pages
Print Icon
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...
Advanced Function Instruction
7-127
FUN201 D P
FÆ I
CONVERSION OF FLOATING POINT NUMBER TO INTEGER
FUN201 D P
FÆ I
S :
ENConversion control
Ladder symbol
201DP.F I
D :
ERR Range Error
S : Starting register of Integer to be converted
D : Starting register to store the result of conversion
HR ROR DR K XR
Range
Operand
R0
∣
R383
9
R5000
∣
R8071
D0
∣
D4095
16 bit
OR
32 bit
V、Z
P0~P9
S ○ ○ ○ ○
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 conversion control "EN" = 1 or "EN↑" ( P instruction) has a transition from 0 to 1, will convert the
floating point data from S~S+1 32bits register into D register( integer data ).
z If the value exceeds the valid range of destination, then do not carry out this instruction, and set the
range-error flag “ERR” as 1 and the D register will be intact.
X2
EN
201P.F I
R20
S :
D10
D :
ERR