TAN_LREAL (tangent Long Real)

The TAN_LREAL instruction calculates the tangent 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.
TAN_LREAL
TAN_LREAL
TAN_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
Cannot be equal to PI/2 modulo PI.
TAN_LREAL
Output
LREAL
Tangent of the input value = 1E+38 for invalid input.
ENO
Output
BOOL
Enables output. Applies to ladder diagram programs.

TAN_LREAL examples

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