beautypg.com

10 .1 0 pr og ra m m ing exam ple s – HEIDENHAIN TNC 410 ISO Programming User Manual

Page 382

background image

356

10 Programming: Q Parameters

1

0

.1

0 Pr

og

ra

m

m

ing

Exam

ple

s

Example: Ellipse

Program sequence

n

The contour of the ellipse is approximated by
many short lines (defined in Q7). The more
calculating steps you define for the lines, the
smoother the curve becomes.

n

The machining direction can be altered by
changing the entries for the starting and end
angles in the plane:
Clockwise machining direction:
starting angle > end angle
Counterclockwise machining direction: starting
angle < end angle

n

The tool radius is not taken into account.

%ELLIPSIS G71 *

N10 D00 Q1 P01 +50 *

Center in X axis

N20 D00 Q2 P01 +50 *

Center in Y axis

N30 D00 Q3 P01 +50 *

Semiaxis in X

N40 D00 Q4 P01 +30 *

Semiaxis in Y

N50 D00 Q5 P01 +0 *

Starting angle in the plane

N60 D00 Q6 P01 +360 *

End angle in the plane

N70 D00 Q7 P01 +40 *

Number of calculating steps

N80 D00 Q8 P01 +30 *

Rotational position of the ellipse

N90 D00 Q9 P01 +5 *

Milling depth

N100 D00 Q10 P01 +100 *

Feed rate for plunging

N110 D00 Q11 P01 +350 *

Feed rate for milling

N120 D00 Q12 P01 +2 *

Set-up clearance for pre-positioning

N130 G30 G17 X+0 Y+0 Z-20 *

Define the workpiece blank

N140 G31 G90 X+100 Y+100 Z+0 *

N150 G99 T1 L+0 R+2.5 *

Define the tool

N160 T1 G17 S4000 *

Tool call

N170 G00 G40 G90 Z+250 *

Retract the tool

N180 L10.0 *

Call machining operation

N190 G00 Z+250 M2 *

Retract in the tool axis, end program

X

Y

50

50

30

50