Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
TAN¶
Returns the tangent of an angle in radians.
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 tangent of IN, where IN is an angle expressed in radians. The result is undefined when IN is an odd multiple of pi/2.
Example¶
result := TAN(REAL#0.0); (* result = 0.0 *)
value := TAN(LREAL#0.7853982); (* value ~ 1.0 *)