DVP15MC11T Operation Manual
8.8.16 ACOS
FC
ACOS is used to get the arc cosine of a number and the result is output to
Out. The unit of Out is radian.
DVP15MC11T
Parameters
Meaning
Description Valid range
In
Number to
process
Input Number to process
Depends on the data type of
the variable that the input
parameter is connected to.
Out
Output Operation result 0 ~ π
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In
● ● ● ● ● ● ● ● ● ● ● ● ● ●
Out
●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
ACOS is used to calculate the arc cosine of the input parameter In and the result is output to Out.
Users can choose different data types for the input parameter in this instruction. But the data type of
the output parameter is restricted to LREAL. An error will occur during the compiling of the software
if the data type of the output parameter is not LREAL.
Out
In
2
0
1,0-1,0
In Input data Cosine: ( )
Out Arc cosine i n radians: ( )
π
π
8-88