Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 533
Trigonometric Instructions (SIN, COS, TAN, ASN, ASIN, ACS, ACOS, ATN, ATAN) Chapter 14
Fault Conditions: None
Execution:
Relay Ladder
Function Block
Example: Calculate the sine of value and place the result in result.
Relay Ladder
Structured Text
result := SIN(value);
Function Block
Condition Action
Prescan The rung-condition-out is set to false.
Rung-condition-in is false The rung-condition-out is set to false.
Rung-condition-in is true The controller calculates the sine 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.
Iinstruction first run No action taken.
EnableIn is cleared EnableOut is cleared.
EnableIn is set The instruction executes.
EnableOut is set.
Postscan No action taken.