ATAN_LREAL (arctangent Long Real)

The ATAN_LREAL instruction calculates the arctangent of a Long Real value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
ATAN_LREAL
ATAN_LREAL
ATAN_LREAL parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
When set to true, the instruction is enabled.
  • TRUE: Execute the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
IN
Input
LREAL
Any Long Real value.
ATAN_LREAL
Output
LREAL
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_LREAL examples

ATAN_LREAL function bock diagram example
ATAN_LREAL function bock diagram example
ATAN_LREAL ladder diagram example
ATAN_LREAL ladder diagram example
ATAN_LREAL structured text example
ATAN_LREAL structured text example
Results
Results
(* ST Equivalence: *) tangent := TAN_LREAL (angle); result := ATAN_LREAL (tangent); (* result is equal to angle*)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal