SIN block
Short summary
Name |
SIN |
→POU type |
|
Category |
|
Conform to →IEC-standard |
no restrictions |
Graphical interface |
|
Available since |
|
Functionality
The trigonometric function sine is called: The block returns the sine of the value connected to the inpu t . The sine value is returned in radians.
Inputs, return value
|
Identifier |
Description |
|
Inputs: |
IN |
REAL, LREAL |
input in radians |
Return value: |
– |
REAL, LREAL |
|
Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.
Example for usage within ST-editor
PROGRAM Test
VAR
result : REAL;
END_VAR
result := SIN(IN :=
1000.0
); (* The variable
'result'
evaluates to
'0.82688'
. *)
END_PROGRAM
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.