TG (86)
TG (86)
ID 86
Application: |
PLC |
SIM |
Group: MATH
Short description:
Trigonometric tangent function.
Inputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
R |
no |
alfa |
Real type input (in radians) |
Outputs (1):
no. |
type |
impulse |
mark |
notes |
1 |
R |
no |
tg |
Function output value |
Settings: none
Function operation:
The TG function performs the trigonometric tangent function. The alpha input is given a value expressed in radians. If this value exceeds the value range of an integer variable (-2147483648 ... 2147483647), the function returns 0, without signaling the limit exceeding. Due to the way numbers are written in the processor, values outside the function domain will not be detected. The limit violation can be detected using function no. 96 (see LIMITS (96)).
R registers and M markers used: none