13.7
Calculating the Cosine
COS
These functions output the cosine of an input value.
Structured text
d:=COS(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• These functions calculate the cosine of the REAL data type value (angle) input to (s), and output the operation result from
(d).
• When the input value is defined as A and the output value is defined as B, the relationship of A and B will be as follows:
B=COS A
• Input a REAL data type value to (s). Input a value (angle) in radians (angle×π/180).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
Error code
Description
3402H
The data specified by (s) is -0.
13 SINGLE VARIABLE FUNCTIONS
172
13.7 Calculating the Cosine
Description
Input
Output
Type
Data type
Input variable
ANY_REAL
Output variable
ANY_REAL