ACOS
Function Name |
ACOS |
---|---|
Description |
Converts a REAL or LREAL input into an arc cosine (inverse cosine). The arc cosine value is the output and is also a REAL or LREAL. |
Arguments |
Input 1 {REAL or LREAL}. This value has to be between 0 and 1. For more information on the data types for the inputs and outputs, see Data Type Hierarchy. |
Returns |
Output {REAL or LREAL}. This value is in radians. |
Example:
Function Block Diagram - ACOS:
In this example, the input of 0.431 is provided by the CurrentValueFormatted property of a point. The ACOS function converts the value into an arc cosine value of 1.12519562771659 and this is used as the output.
ST Program - ACOS:
The syntax for an ACOS function in an ST Program is:
Output := ACOS (Input 1);
Where Output and Input 1 are defined as variables earlier in the ST program. The Input 1 variable represents a REAL or LREAL type of value (the output is the same type of value as Input 1).