COSD: Floating Point Cosine of an Angle (in Degrees)
(Original Document)
Function Description
The COSD EF performs the cosine function on a floating point value of an angle in degrees and stores the result in an array.
Representation in ST
Cosine:=COSD(degrees);
Parameters
Input Parameter/ Output Parameter
Name
Data Type
Address Range
Meaning
IN
DEG
ArrUInt2
%IW, %MW
floating point value indicating the value of an angle in degrees
DEG stores a floating point value indicating the value of an angle in degrees.
The magnitude of this value must be < 65536.0; if not:
  • The cosine is not computed.
  • An invalid result is returned.
OUT
RESULT
ArrUInt2
%MW
cosine of the value DEG