10 .6 pr ogr amming examples, Example: groups of holes – HEIDENHAIN iTNC 530 (340 49x-04) ISO programming User Manual
Page 520
Advertising

520
10 Programming: Subprograms and Program Section Repeats
1
0
.6 Pr
ogr
amming Examples
Example: Groups of holes
Program sequence
Approach the groups of holes in the main
program
Call the group of holes (subprogram 1)
Program the group of holes only once in
subprogram 1
%UP1 G71 *
N10 G30 G17 X+0 Y+0 Z-40 *
N20 G31 G90 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+2.5 *
Tool definition
N40 T1 G17 S3500 *
Tool call
N50 G00 G40 G90 Z+250 *
Retract the tool
N60 G200 DRILLING
Cycle definition: Drilling
Q200=2
;SET-UP CLEARANCE
Q201=-30
;DEPTH
Q206=300
;FEED RATE FOR PLNGNG
Q202=5
;PLUNGING DEPTH
Q210=0
;DWELL TIME AT TOP
Q203=+0
;SURFACE COORDINATE
Q204=2
;2ND SET-UP CLEARANCE
Q211=0
;DWELL TIME AT DEPTH
X
Y
15
60
100
100
75
10
45
20
20
5
Z
Y
-20
-15
1
2
3
Advertising