beautypg.com

4 angle functions (trigonometry), Definitions, Programming trigonometric functions – HEIDENHAIN TNC 320 (77185x-01) ISO programming User Manual

Page 254: Angle functions (trigonometry)

background image

Programming: Q Parameters

9.4

Angle functions (trigonometry)

9

254

TNC 320 | User's Manual for DIN/ISO Programming | 3/2014

9.4

Angle functions (trigonometry)

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 ANGLE FUNCTION soft key to call the trigonometric

functions. The TNC then displays the soft keys below.
Programming: Compare "Example: Programming fundamental

operations."

Function

Soft key

D06: SINE
e.g.

D06 Q20 P01 -Q5 *

Define and assign the sine of an angle in degrees

(°)
D07: COSINE
e.g.

D07 Q21 P01 -Q5 *

Define and assign the cosine of an angle in

degrees (°)
D08: SQUARE ROOT FROM SQUARE SUM
e.g.

D08 Q10 P01 +5 P02 +4 *

Form and assign length from two values
D13: ANGLE
e.g.

D13 Q20 P01 +10 P02 -Q1 *

Form and assign an angle with arctan from two

sides or with sine and cosine of the angle (0 <

angle < 360°)