ATAN (arctangent)
The ATAN instruction calculates the arctangent of a Real value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the
Micro810
LC10, Micro820
L20E, Micro850
L50E, and Micro870
L70E controllers.ATAN

Parameter | Parameter Type | Data Type | Description |
|---|---|---|---|
EN | Input | BOOL | When set to true, the instruction is enabled.
|
IN | Input | REAL | Any Real value. |
ATAN | Output | REAL | Arctangent of the input value (in set [-PI/2 .. +PI/2]) = 0.0 for invalid input. |
ENO | Output | BOOL | Enables output. Applies to ladder diagram programs. |
ATAN examples
ATAN function block diagram example

ATAN ladder diagram example

ATAN structured text example

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

Provide Feedback