Advanced Function Instruction
7 -1 3 6
FUN 209
P
FSIN
SIN TRIGONOMETRIC INSTRUCTION
FUN 209
P
FSIN
S : Source register to be taken SIN
D : Register for storing result
(SIN value)
S, 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
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 operation control "EN" = 1 or "EN
↑
" (
P
instruction) from 0 to 1, take the SIN value of the angle data
specified by the S register and store the result into the register D~D+1 in floating point number format. The
valid range of the angle is from –18000 to +18000, unit in 0.01 degree.
z
If the S value is not within the valid range, then the S value error flag "ERR" will be set to 1, and do not
execute the operation.
X0
EN
S :
D :
ERR
209P.FSIN
R100
3000
z
At left, the example program gets the SIN value of 30,
and stores the results the register DR100.