The Trigonometric functions folder

Application

In the Trigonometric functions folder of the Insert NC function window, the control provides the functions FN 6 to FN 8 and FN 13.

You can use these functions to calculate trigonometric functions for purposes such as programming variable triangular contours.

Description of function

The Trigonometric functions folder contains the following functions:

Icon

Function

FN 6: Sine

Example: FN 6: Q20 = SIN –Q5

Q20 = sin(–Q5)

Calculate and assign the sine of an angle in degrees

FN 7: Cosine

Example: FN 7: Q21 = COS –Q5

Q21 = cos(–Q5)

Calculate and assign the cosine of an angle in degrees

FN 8: Root of the sum of squares

Example: FN 8: Q10 = +5 LEN +4

Q10 = (52+42)

Calculate and assign the length based on two values (e.g., to calculate the third side of a triangle).

FN 13: angle

Example: FN 13: Q20 = +25 ANG –Q1

Q20 = arctan(25/–Q1)

Calculate and assign the angle from the opposite side and the adjacent side using arctan or from the sine and cosine of the angle (0 < angle < 360°)

To the left of the equal sign, define the variable to which the result should be assigned.

To the right of the equal sign, you can use fixed or variable values. The variables and numerical values in the equations can be entered with an algebraic sign.

Definition

Side or trigonometric function

Meaning

a

Opposite side

The side opposite to angle α

b

Adjacent side

The side adjacent to angle α

c

Hypotenuse

The longest side of the triangle, opposite to the right angle

Sine

sin α = opposite side/hypotenuse

sin α = a/c

Cosine

cos α = adjacent side/hypotenuse

cos α = b/c

Tangent

tan α = opposite side/adjacent side

tan α = a/b or tan α = sin α/cos α

Arc tangent

α = arctan(a/b) or α = arctan(sin α/cos α)

Example

a = 25 mm

b = 50 mm

α = arctan(a/b) = arctan 0.5 = 26.57°

Furthermore:

a²+b² = c² (where a² = a*a)

c = (a2+b2)

11 Q50 = ATAN ( +25 / +50 )

Calculate angle α

12 FN 8: Q51 = +25 LEN +50

Calculate side length c