beautypg.com

4 angle functions, Definitions, Programming trigonometric functions – HEIDENHAIN TNC 640 (34059x-05) User Manual

Page 305: Angle functions, Angle functions 9.4

background image

Angle functions

9.4

9

TNC 640 | User's Manual
HEIDENHAIN Conversational Programming | 1/2015

305

9.4

Angle functions

Definitions

Sine:

sin

α = a / c

Cosine:

cos

α = b / c

Tangent:

tan

α = a / b = sin α / cos α

where

c is the side opposite the right angle

a is the side opposite the angle

α

b is the third side.

The TNC can find the angle from the tangent:
α = arctan (a / b) = 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 x a)

c =

√ (a

2

+ b

2

)

Programming trigonometric functions

Press the soft key to call the trigonometric functions. The TNC
then displays the soft keys that are listed in the table below.

Soft key

Function

FN 6: SINUS
e. g.

FN 6: Q20 = SIN-Q5

Define and assign the sinus of an angle in
degrees (°)

FN 7: COSINUS
e. g.

FN 7: Q21 = COS-Q5

Define and assign the cosine of an angle in
degrees (°)

FN 8: ROOT SUM OF SQUARES
e. g.

FN 8: Q10 = +5 LEN +4

Form and assign length from two values

FN 13: ANGLE
e. g.

FN 13: Q20 = +25 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