Cosine of x. COS (x) returns the cosine of x (operand one expressed in radians). When x is greater than or equal to 2.98*108 or less than or equal to -2.98*108, a loss of significance in the result occurs and COS returns an indefinite value.
Syntax:
'external reference' := COS(Real value);
Example:
VAR T63; T64; T17; T18; (* Temporary values *) END_VAR; T63 := .5; T64 := 15.803; T17 := COS(T63); T18 := COS(T64);
The above example shows T63 set to the value of .5 and T64 set to the value of 15.803. T17 is set to the result of COS(T63), which is 0.8775825618904 and T18 is set to the result of COS(T64), which is -0.9954874077853.