Advanced Function Instruction
7 -1 3 8
FUN 211
P
FTAN
TAN TRIGONOMETRIC INSTRUCTION
FUN 211
P
FTAN
S : Source register to be taken TAN
D : Register for storing result
(TAN 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 COS 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.
EN
S :
D :
ERR
M0
211P.FTAN
R0
D50
z
At left, the example program gets the TAN value of 45,
and stores the results the register DD50.