4 trigonometric functions, 4 tr ig onometr ic f unctions – HEIDENHAIN TNC 310 (286 140) User Manual

Page 176

Advertising
background image

10 Programming: Q Parameters

164

1

0.4

Tr

ig

onometr

ic F

unctions

b

c

a

α

Function

Soft key

FN6: SINE
Example: FN6: Q20 = SIN–Q5
Calculate the sine of an angle in
degrees (°) and assign it to a parameter.

FN7: COSINE
Example: FN7: Q21 = COS–Q5
Calculate the cosine of an angle in
degrees (°) and assign it to a parameter.

FN8: ROOT-SUM OF SQUARES
Example: FN8: Q10 = +5 LEN +4
Calculate and assign length from
two values

FN13: ANGLE
Example: FN13: Q20 = +10 ANG–Q1
Calculate the angle from the arc tangent
of two sides or from the sine and cosine
of the angle (0 < angle < 360°) and
assign it to a parameter.

The TNC displays the following program blocks:

16 FN0: Q5 = +10

17 FN3: Q12 = +Q5

* +7

10.4 Trigonometric Functions

Sine, cosine and tangent are terms designating the ratios of sides of
right triangles. For a right triangle, the trigonometric functions of the
angle

a are defined by the following equations:

Sine:

sin

a = a / c

Cosine:

cos

a = b / c

Tangent: tan

a = a / b = sin a / cos a

where

c is the side opposite the right angle

a is the side opposite the angle

a

b is the third side.

The TNC can find the angle from the tangent

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

Example:

a = 10 mm

b = 10 mm

a = arctan (a / b) = arctan 1 = 45°

Furthermore:

a

2

+ b

2

= c

2

(where a

2

= a x a)

c =

Ö (a

2

+ b

2

)

Programming trigonometric functions
Press the TRIGONOMETRY soft key to call the trigonometric
functions. The TNC then displays the soft keys that are listed in the
table at right.

Programming: See „Example: Programming fundamental operations“.

Advertising
This manual is related to the following products: