542 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 14 Trigonometric Instructions (SIN, COS, TAN, ASN, ASIN, ACS, ACOS, ATN, ATAN)
Arc Tangent (ATN)
The ATN instruction takes the arc tangent of the Source value and stores the
result in the Destination (in radians).
Operands:
Relay Ladder
Structured Text
Use ATAN as a function. This function computes the arc tangent of source and
stores the result in dest.
See Structured Text Programming
for information on the syntax of expressions
within structured text.
Function Block
Operand: Type Format Description
Source SINT
INT
DINT
REAL
Immediate
Tag
Find the arc tangent of this value
Destination SINT
INT
DINT
REAL
Tag Tag to store the result
Operand Type Format Description
ATN tag FBD_MATH_ADVANCED Structure ATN structure