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.8 Examples for Exercise<br />

Ellipse<br />

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

X coordinate calculation: X = a . cos α<br />

Y coordinate calculation: Y = b . sin α<br />

a, b : Semimajor and semiminor axes of the<br />

ellipse<br />

α : Angle between the leading axis and<br />

the connecting line from P to the<br />

center of the ellipse<br />

Process:<br />

The points of the ellipse are calculated and<br />

connected by many short lines. The more<br />

points that are calculated and the shorter<br />

the lines between them, the smoother the<br />

curve.<br />

The machining direction can be varied by<br />

changing the entries for start and end angles.<br />

The input parameters are listed below in blocks<br />

N10 to N120 of the part program.<br />

Part program<br />

%376015 G71 * ........................................................ Load data<br />

N10 D00 Q01 P01 +50 * ........................................... X coordinate for center of ellipse<br />

N20 D00 Q02 P01 +50 * ........................................... Y coordinate for center of ellipse<br />

N30 D00 Q03 P01 +50 * ........................................... Semiaxis in X<br />

N40 D00 Q04 P01 +20 * ........................................... Semiaxis in Y<br />

N50 D00 Q05 P01 +0 * ............................................. Start angle<br />

N60 D00 Q06 P01 +<strong>360</strong> * ......................................... End angle<br />

N70 D00 Q07 P01 +40 * ........................................... Number of calculating steps<br />

N80 D00 Q08 P01 +0 * ............................................. Rotational position<br />

N90 D00 Q09 P01 +10 * ........................................... Depth<br />

N100 D00 Q10 P01 +100 * ....................................... Plunging feed rate<br />

N110 D00 Q11 P01 +350 * ....................................... Milling feed rate<br />

N120 D00 Q12 P01 +2 * ........................................... Setup clearance Z<br />

N130 G30 G17 X+0 Y+0 Z-20 * ................................. Definition of workpiece blank<br />

N140 G31 G90 X+100 Y+100 Z+0 *<br />

N150 G99 T1 L+0 R+2.5 *<br />

N160 T1 G17 S2500 *<br />

N170 G00 G40 G90 Z+100 * ..................................... Retract in Z<br />

N180 L10,0 * ............................................................. Call subprogram ellipse<br />

N190 G00 Z+100 M02 * ............................................ Retract in Z, end of main program<br />

Y<br />

Y<br />

–a<br />

X 2<br />

Y´<br />

Y1<br />

α 2<br />

Y´<br />

Q5<br />

b<br />

Y 2<br />

–b<br />

αS<br />

α 1<br />

DR–<br />

DR+<br />

P<br />

X 1<br />

a<br />

X´<br />

X<br />

α0=αE<br />

Q4<br />

X´<br />

X<br />

Continued...<br />

7-17

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

Saved successfully!

Ooh no, something went wrong!