6 pr og ra m m ing exam ple s – HEIDENHAIN TNC 410 ISO Programming User Manual
Page 354

328
9 Programming: Subprograms and Program Section Repeats
9.6 Pr
og
ra
m
m
ing
Exam
ple
s
N100 G00 Z+250 M6 *
Tool change
N110 T2 G17 S4000 *
Call the drilling tool
N120 D0 Q201 P01 -25 *
New depth for drilling
N130 D0 Q202 P01 +5 *
New plunging depth for drilling
N140 L1.0 *
Call subprogram 1 for the entire hole pattern
N150 G00 Z+250 M6 *
Tool change
N160 T3 G17 S500 *
Tool call: reamer
N170 G201
Cycle definition: REAMING
Q200=2
set-up clearance
Q201=-15
Depth
Q206=250
Feed rate
Q211=0.5
Dwell time at depth
Q208=400
Retraction feed rate
Q203=+0
Coordinate of the workpiece surface
Q204=10 *
2nd set-up clearance
N180 L1.0 *
Call subprogram 1 for the entire hole pattern
N190 G00 Z+250 M2 *
End of main program
N200 G98 L1 *
Beginning of subprogram 1: Entire hole pattern
N210 G00 G40 G90 X+15 Y+10 M3 *
Move to starting point for group 1
N220 L2.0 *
Call subprogram 2 for the group
N230 X+45 Y+60 *
Move to starting point for group 2
N240 L2.0 *
Call subprogram 2 for the group
N250 X+75 Y+10 *
Move to starting point for group 3
N260 L2.0 *
Call subprogram 2 for the group
N270 G98 L0 *
End of subprogram 1
N280 G98 L2 *
Beginning of subprogram 2: Group of holes
N290 G79 *
Call cycle for 1st hole
N300 G91 X+20 M99 *
Move to 2nd hole, call cycle
N310 Y+20 M99 *
Move to 3rd hole, call cycle
N320 X-20 G90 M99 *
Move to 4th hole, call cycle
N330 G98 L0 *
End of subprogram 2
N340 END PGM UP2 MM