CODESYS ATAN

ATAN is an IEC operator in the CODESYS Development System that returns the arctangent of a number. The result is computed in radians. It can be written in ST (for example q := ATAN(0.5);) or placed as a block in FBD.

Source checked3/3 values · 2026-10-26

Specification

2 sources
Languageiec 61131 3
CodeATAN
Syntaxq := ATAN(0.5);
DialectCODESYS

Study notes

  • The result is computed in radians, not degrees.
  • Input variables that measure the angle in radians may be any numeric basic data type.
  • Output variables are permitted to be REAL or LREAL only.
  • Worked example: ATAN(0.5) gives the result 0.463648.
↑↓ navigate↵ openesc close