Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 543
Trigonometric Instructions (SIN, COS, TAN, ASN, ASIN, ACS, ACOS, ATN, ATAN) Chapter 14
FBD_MATH_ADVANCED Structure
Description: The resulting value in the Destination is always greater than or equal to -Ï€/2 and
less than or equal to π/2 (where π = 3.141593).
Arithmetic Status Flags: Arithmetic status flags are affected.
Fault Conditions: None
Execution:
Relay Ladder
Function Block
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Source REAL Input to the math instruction.
Valid = any float
Output Parameter Data Type Description
EnableOut BOOL The instruction produced a valid result.
Dest REAL Result of the math instruction. Arithmetic status flags are set for this output.
Condition Action
Prescan The rung-condition-out is set to false.
Rrung-condition-in is false The rung-condition-out is set to false.
Rung-condition-in is true The controller calculates the arc tangent of the Source and places the result in the Destination.
The rung-condition-out is set to true.
Postscan The rung-condition-out is set to false.
Condition Action
Prescan No action taken.
Instruction first scan No action taken.
Instruction first run No action taken.
EnableIn is cleared EnableOut is cleared.
EnableIn is set The instruction executes.
EnableOut is set.
Postscan No action taken.