[TGNMFNCT] Trigonometric functions
Function block TGNMFNCT calculates various trigonometric functions based on the configured calculation mode.
TGNMFNCT calculates for one input value the sine, cosine, tangent or their inverse function, arcsine, arccosine or arctangent as the output value.
Input calculation mode [CalcMod] determines the type of trigonometric function used in TGNMFNCT.
Calculation mode | Trigonometric function |
|---|---|
1 | Out=Sinus(In) |
2 | Out=Cosinus(In) |
3 | Out=Tangens(In) |
4 | Out=Arcus Sinus(In)=Sinus-1(In) |
5 | Out=Arcus Cosinus(In)=Cosinus-1(In) |
6 | Out=Arcus Tangens(In)=Tangens-1(In) |
The input value [In] of a trigonometric functions uses the unit Radiant (rad).
The output value [Out] of a trigonometric function has no physical unit.
The input value [In] of a trigonometric inverse function f-1(In) has no physical unit.
The output value [Out] of a trigonometric inverse function f-1(In) uses the unit Radiant (rad).
Input | Description | Data type | Default value |
|---|---|---|---|
In | Sine | Real | 0.0 [rad] |
Cosine | Real | 0.0 [rad] | |
Tangent | Real | 0.0 [rad] | |
Arc sine | Real | 0.0 -1.0…1.0 | |
Arc cosine | Real | 0.0 -1.0…1.0 | |
Arc tangent | Real | 0.0 | |
CalcMod | Calculation mode The type of trigonometric function. | Integer | 1: Sine 1…6 |
1: Sine | |||
Output | Description | Data type | Default value |
|---|---|---|---|
Out | Output | Real | - |
Result of the trigonometric function f(In): | - | - | |
Sine | Real | 0.0 -1.0…1.0 | |
Cosine | Real | 0.0 -1.0…1.0 | |
Tangent | Real | 0.0 | |
Result of the trigonometric function f-1(In): | - | - | |
Arc sine | Real | 0.0 [rad]
| |
Arc cosine | Real | 0.0 [rad] 0.0…π [rad] | |
Arc tangent | Real | 0.0 [rad]
|
Input | Description | Data type | Illegal value range | Output value |
|---|---|---|---|---|
In | Input for Arcus Sinus | Real | <-1.000 |
|
Real | >1.000 | | ||
Input for Arcus Cosinus | Real | <-1.000 | Π [rad] | |
Real | >1.000 | 0.0 | ||
Input for Arcus Tangens | Real | <= -3.403 E38 |
| |
Real | >= 3.403 E38 | |
Error | Cause of fault | Correcting the fault |
|---|---|---|
The result at output [Out] corresponds to the minimum permissible Real value: [Out] = - 3.402 E38 | The impermissible value for the calculation mode [CalcMod]: <1 or >6 | Set the permissible input values: [CalcMod]: 1…6 |