TAN (tangent)
The TAN instruction calculates the tangent of a Real value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
TAN

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
|
IN | Input | REAL | Cannot be equal to PI/2 modulo PI. |
TAN | Output | REAL | Tangent of the input value = 1E+38 for invalid input. |
ENO | Output | BOOL | Enables output. Applies to ladder diagram programs. |
TAN examples
TAN function block diagram example

TAN ladder diagram example

TAN structured text example

(* ST Equivalence: *) tangent := TAN (angle); result := ATAN (tangent); (* result is equal to angle*)
Results

Provide Feedback