8.8.12 SIN
FB/FC
SIN is used to find the sine of a number and the result is output to Out. The
FC
unit of In is radian.
Parameters
Parameter
Meaning
name
Radians to
In
process
Operation
Out
result
Bit 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
SIN is used to calculate the sine 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.
Explanation
SIN
EN
In
Input/
Output
Input
Radians to process
Output
Operation result
Integer
●
●
●
●
●
Out
1
3
-
0
-
- 2
- 2
2
2
-1
Chapter 8 Logic Instructions
ENO
Ou t
Description
Depends on the data type of
the variable that the input
parameter is connected to.
-1.00000000000000
~ 1.00000000000000
Real
number
●
●
●
●
●
:
(
i n radi ans data
In Angle
(
:
Out Result Sine
In
3
2
2
2
Applicable model
DVP15MC11T
Valid range
Time, date
●
●
)
)
8-79
8_