HEIDENHAIN TNC 620 User Manual page 382

Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

9
Programming Q parameters
9.12 Programming examples
Example: Convex sphere machined with end mill
Program run
This program requires an end mill.
The contour of the sphere is approximated by many
short lines (in the Z/X plane, defined in Q14). The
smaller you define the angle increment, the smoother
the curve becomes.
You can determine the number of contour cuts
through the angle increment in the plane (defined in
Q18).
The tool moves upward in three-dimensional cuts.
The tool radius is compensated automatically
%SPHERE G71 *
N10 D00 Q1 P01 +50*
N20 D00 Q2 P01 +50*
N30 D00 Q4 P01 +90*
N40 D00 Q5 P01 +0*
N50 D00 Q14 P01 +5*
N60 D00 Q6 P01 +45*
N70 D00 Q8 P01 +0*
N80 D00 Q9 P01 +360*
N90 D00 Q18 P01 +10*
N100 D00 Q10 P01 +5*
N110 D00 Q11 P01 +2*
N120 D00 Q12 P01 +350*
N130 G30 G17 X+0 Y+0 Z-50*
N140 G31 G90 X+100 Y+100 Z+0*
N150 T1 G17 S4000*
N160 G00 G40 G90 Z+250*
N170 L10.0*
N180 D00 Q10 P01 +0*
N190 D00 Q18 P01 +5*
N200 L10.0*
N210 G00 G40 Z+250 M2*
N220 G98 L10*
N230 D01 Q23 P01 +Q11 P02 +Q6*
N240 D00 Q24 P01 +Q4*
N250 D01 Q26 P01 +Q6 P02 +Q108*
N260 D00 Q28 P01 +Q8*
N270 D01 Q16 P01 +Q6 P02 -Q10*
N280 G54 X+Q1 Y+Q2 Z-Q16*
N290 G73 G90 H+Q8*
N300 G98 L1*
N310 I+0 J+0*
382
Center in X axis
Center in Y axis
Starting angle in space (Z/X plane)
End angle in space (Z/X plane)
Angle increment in space
Sphere radius
Starting angle of rotational position in the X/Y plane
End angle of rotational position in the X/Y plane
Angle increment in the X/Y plane for roughing
Allowance in sphere radius for roughing
Set-up clearance for pre-positioning in the spindle axis
Feed rate for milling
Workpiece blank definition
Tool call
Retract the tool
Call machining operation
Reset allowance
Angle increment in the X/Y plane for finishing
Call machining operation
Retract the tool, end program
Subprogram 10: Machining operation
Calculate Z coordinate for pre-positioning
Copy starting angle in space (Z/X plane)
Compensate sphere radius for pre-positioning
Copy rotational position in the plane
Account for allowance in the sphere radius
Shift datum to center of sphere
Account for starting angle of rotational position in the plane
Pre-position in the spindle axis
Set pole in the X/Y plane for pre-positioning
HEIDENHAIN | TNC 620 | ISO Programming User's Manual | 9/2016

Advertisement

Table of Contents
loading

Table of Contents