Chapter 8 Logic Instructions 
8-91 
 
FC 
TAN is used to get the tangent of a number and the result is output to Out. 
The unit of In is radian. 
DVP15MC11T 
DVP15MC11T-06 
 
 
  Parameters 
Meaning 
Description  Valid range   
In 
Radians to 
process 
Input  Radians to process 
Depends on the data type of 
the variable that the input 
parameter is connected to. 
Out 
Operation 
result   
Output  Operation result 
Depends on the data type of 
the variable that the output 
parameter is connected to. 
 
 
Boolean 
Bit string  Integer 
Real 
number 
Time, date 
String 
BOOL 
BYTE 
WORD 
DWORD 
LWORD 
USINT 
UINT 
UDINT 
ULINT 
SINT 
INT 
DINT 
LINT 
REAL 
LREAL 
TIME 
DATE 
TOD 
DT 
STRING 
In     
●  ●  ●  ●  ●  ●  ●  ●  ●  ●  ●  ●  ●  ● 
         
Out                             
● 
Note:   
The symbol  ●  indicates that the parameter is allowed to connect to the variable or constant of the data 
type. 
  Function Explanation 
  TAN is used to calculate the tangent of the input parameter In and the result is output to Out. 
 
  
 
Out
In
-2
3
2
-2 2
3
2
22
-
1
-1
0
-
In
:  ( ) Angle in radians data
Out:
Result (Tangent)
π π π
π π
π π π