ACOS_LREAL (arccosine Long Real)
The ACOS_LREAL instruction calculates the arc-cosine of a Long Real value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
ACOS_LREAL

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

ACOS_LREAL ladder diagram examples

ACOS_LREAL structured text examples

(* ST Equivalence: *) cosine := COS_LREAL (angle); result := ACOS_LREAL (cosine); (* result is equal to angle *)
Results

Provide Feedback