Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
ACOS¶
Returns the arc cosine (inverse cosine) of a numeric input.
IEC 61131-3 |
Section 2.5.1.5.2 |
Support |
Not yet supported |
Signatures¶
# |
Input (IN) |
Return Type |
Support |
|---|---|---|---|
1 |
|
|
Not yet supported |
2 |
|
|
Not yet supported |
Description¶
Returns the arc cosine of IN in radians. The input must be in the range [-1.0, 1.0]. The result is in the range [0, pi].
Example¶
result := ACOS(REAL#1.0); (* result = 0.0 *)
value := ACOS(LREAL#0.0); (* value ~ 1.5707963 *)