Arctangent of x. ATAN (x) returns the arctangent of x (operand one) in radians.
Syntax:
'external reference' := ATAN(Real value);
Example:
VAR T63; T64; T17; T18; (* Temporary values *) END_VAR; T63 := .5; T64 := -.5; T17 := ATAN(T63); T18 := ATAN(T64);
The above example shows T63 set to the value of .5 and T64 set to the value of -.5. T17 is set to the result of ATAN(T63), which is 0.4636476090008 and T18 is set to the result of ATAN(T64), which is -0.4636476090008.