Use trigonometric functions
- Last UpdatedJul 23, 2024
- 1 minute read
In a script, you can use the following functions to do trigonometric calculations.
|
Use |
To |
|---|---|
|
Sin() |
Calculate the sine of an angle. |
|
ArcSin() |
Calculate the arcus sine of a value or expression. |
|
Cos() |
Calculate the cosine of an angle. |
|
ArcCos() |
Calculate the arcus cosine of a value or expression. |
|
Tan() |
Calculate the tangent of an angle. |
|
ArcTan() |
Calculate the arcus tangent of a value or expression. |
Note: Trigonometric QuickScript functions in the InTouch HMI use angles in degrees (0 - 360). To work with radians instead you must perform the corresponding calculation before passing the parameter to the function or after retrieving the result from the function.