You are here: Core Reference > Coding > Logic > ATAN

ATAN

Function Name

ATAN

Description

Converts a REAL or LREAL input into an arc tangent (inverse tangent). The arc sine value is the output and is also a REAL or LREAL.

Arguments

Input 1 {REAL or LREAL}.

For more information on the data types for the inputs and outputs, see Data Type Hierarchy.

Returns

Output {REAL or LREAL}. This value is in radians.

Example:

Function Block Diagram - ATAN:

In this example, the input of 5 is provided by the CurrentValueFormatted property of a point. The ATAN function converts the value into an arc tangent value of 1.37340076694502 and this is used as the output.

ST Program - ATAN:

The syntax for an ATAN function in an ST Program is:

  • Output := ATAN (Input 1);

Where Output and Input 1 are defined as variables earlier in the ST program. The Input 1 variable represents a REAL or LREAL type of value (the output is the same type of value as Input 1).


ClearSCADA 2015 R2