
The Function Block ATAN calculates the Arctangent.
Note: The Function Block uses radians. See Function Block DEG2RAD and RAD2DEG.
A value with a number is expected at the input. The value of a string is attempted to be converted into a number. The Boolean value TRUE is converted into a 1.
Note: Also see the article String Conversion to Numbers, if you are working with strings.
The output returns the Arctangent as an Integer. In case of error, the value NAN (Not a Number) is returned.