Arithmetic instructions Chapter 5
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 79
COS_LREAL calculates the cosine of a Long Real value.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, execute current computation.
When EN = FALSE, there is no computation.
IN Input LREAL Any Long Real value.
COS_LREAL Output LREAL Cosine of the input value (in set [-1.0 .. +1.0]).
ENO Output BOOL Enable out.
COS_LREAL function language example
Function block diagram
Ladder diagram