HEIDENHAIN TNC 360 ISO Programming User Manual
Page 133

6
Subprograms and Program Section Repeats
TNC 360
6-10
Z
X
–3
–15
–20
100
20
20
15
75
6.4
Nesting
Example for exercise: Group of four holes at three positions (see page 6-4), but with three different tools
Machining sequence:
Countersinking - Pecking - Tapping
The drilling operation is programmed with cycle
G83: PECKING (see page 8-4) and cycle G84:
TAPPING (see page 8-6). The groups of holes
are approached in one subprogram, and the
machining is performed in a second subprogram.
Coordinates of the first hole in each group:
1
X = 15 mm
Y = 10 mm
2
X = 45 mm
Y = 60 mm
3
X = 75 mm
Y = 10 mm
Spacing between
holes
IX = 20 mm
IY = 20 mm
Hole data:
Countersinking
ZC =
3 mm
Ø = 7 mm
Pecking
ZP = 15 mm
Ø = 5 mm
Tapping
ZT = 10 mm
Ø = 6 mm
Part program
%S610I G71 * ............................................................ Begin program
N10 G30 G17 X+0 Y+0 Z–20 * .................................. Define the workpiece blank
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T25 L+0 R+2.5 * ......................................... Tool definition for pecking
N40 G99 T30 L+0 R+3 * ............................................ Tool definition for countersinking
N50 G99 T35 L+0 R+3.5 * ......................................... Tool definition for tapping
N60 T30 G17 S3000 * ................................................ Tool call for countersinking
N70 G83 P01 –2 P02 –3 P03 –3 P04 0
P05 100 * ................................................................... Cycle definition for pecking
N80 L1,0 * ................................................................. Call of subprogram 1
N90 T25 G17 S2500 * ................................................ Tool call for pecking
N100 G83 P01 –2 P02 –25 P03 –10 P04 0
P05 150 * ................................................................... Cycle definition for pecking
N110 L1,0 * ............................................................... Call of subprogram 1
N120 T35 G17 S100 * ................................................ Tool call for tapping
N130 G84 P01 –2 P02 –15 P03 0.1 P04 100 * .......... Cycle definition for tapping
N140 L1,0 * ............................................................... Call of subprogram 1
N150 Z+100 M02 * .................................................... Retract the tool; end of main program
N160 G98 L1 * ........................................................... Beginning of subprogram 1
N170 G00 G40 G90 X+15 Y+10 M03 * ..................... Move to hole group 1
N180 Z+2 * ................................................................ Pre-position in the infeed axis
N190 L2,0 * ............................................................... Call subprogram 2
N200 X+45 Y+60 * .................................................... Move to hole group 2
N210 L2,0 * ............................................................... Call subprogram 2
N220 X+75 Y+10 * .................................................... Move to hole group 3
N230 L2,0 * ............................................................... Call subprogram 2
N240 G98 L0 * ........................................................... End of subprogram 1
N250 G98 L2 * ........................................................... Beginning of subprogram 2
N260 G79 *
N270 G91 X+20 M99 * .............................................. Machine holes by sequentially activating the three cycles
N280 Y+20 M99 *
N290 X–20 G90 M99 *
N300 G98 L0 * ........................................................... End of subprogram 2
N9999 %S610I G71 *