TAN block
Short summary
Name |
TAN |
→POU type |
|
Category |
|
Conform to →IEC-standard |
no restrictions |
Graphical interface |
|
Available since |
|
Functionality
The trigonometric function tangent is called: The block returns the tangent of the value connected to the inpu t . The tangent 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 := TAN(IN :=
1000.0
); (* The variable
'result'
evaluates to
'1.470324'
. *)
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.