30.07.2013 Views

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

User's Manual ISO TNC 360 (260020xx, 280490xx) - heidenhain

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7 Programming with Q Parameters<br />

7.3 Trigonometric Functions<br />

Overview<br />

<strong>TNC</strong> <strong>360</strong><br />

Sine, cosine and tangent are the terms for the ratios of the sides of right<br />

triangles. Trigonometric functions simplify many calculations.<br />

For a right triangle,<br />

Sine: sin α = a / c<br />

Cosine: cos α = b / c<br />

Tangent: tan α = a / b = sin α / cos α<br />

Where<br />

• c is the side opposite the right angle<br />

• a is the side opposite the angle α<br />

• b is the third side<br />

The angle can be derived from the tangent:<br />

α = arctan α = arctan (a / b) = arctan (sin α / cos α)<br />

Example: a = 10 mm<br />

b = 10 mm<br />

α = arctan (a / b) = arctan 1 = 45°<br />

Furthermore: a 2 + b 2 = c 2 (a 2 = a . a)<br />

c = a 2 + b 2<br />

D06: SINE<br />

e.g. N10 D06 Q20 P01 –Q05 *<br />

Calculate the sine of an angle in degrees (°) and<br />

assign it to a parameter<br />

D07: COSINE<br />

e.g. N10 D07 Q21 P01 –Q05 *<br />

Calculate the cosine of an angle in degrees (°) and<br />

assign it to a parameter<br />

D08: ROOT SUM OF SQUARES<br />

e.g. N10 D08 Q10 P01 +5 P02 +4 *<br />

Take the square root of the sum of two squares, and<br />

assign it to a parameter<br />

D13: ANGLE<br />

e.g. N10 D13 Q20 P01 +10 P02 –Q01 *<br />

Calculate the angle from the arc tangent of two sides or from<br />

the sine and cosine of the angle, and assign it to a parameter<br />

α<br />

c a<br />

b<br />

Fig. 7.3: Sides and angles on a right triangle<br />

7-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!