6 pr ogr amming examples – HEIDENHAIN iTNC 530 (606 42x-02) ISO programming User Manual
Page 272
272
Programming: Subprograms and Program Section Repeats
8.6 Pr
ogr
amming Examples
N100 G00 Z+250 M6 *
Tool change
N110 T2 G17 S4000 *
Call tool: drill
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 *
Call tool: reamer
N80 G201 REAMING
Cycle definition: REAMING
Q200=2
;SET-UP CLEARANCE
Q201=-15
;DEPTH
Q206=250
;FEED RATE FOR PLNGNG
Q211=0.5
;DWELL TIME AT DEPTH
Q208=400
;RETRACTION FEED RATE
Q203=+0
;SURFACE COORDINATE
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 %UP2 G71 *