ACOS (arccosine of source)
The ACOS instruction calculates the arc-cosine of a Real value. Input and output values are in radians.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
ACOS

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
|
IN | Input | REAL | The value must be within [-1.0 .. +1.0]. |
ACOS | Output | REAL | Arc-cosine of the input value (in set [-p1/2..+p1/2]) = 0 for invalid input. |
ENO | Output | BOOL | Enables output. Applies to ladder diagram programs. |
ACOS examples
ACOS function block diagram example

ACOS ladder diagram example

ACOS structured text example

(* ST Equivalence: *) cosine := COS (angle); result := ACOS (cosine); (* result is equal to angle *)
Results

Provide Feedback