HEIDENHAIN TNC 620 User Manual page 320

Hide thumbs Also See for TNC 620:
Table of Contents

Advertisement

8
Subprograms and program section repeats
8.6
Programming examples
Example: Groups of holes
Program run:
Approach the groups of holes in the main program
Call the group of holes (subprogram 1) in the main
program
Program the group of holes only once in subprogram
1
%SP1 G71 *
N10 G30 G17 X+0 Y+0 Z-40*
N20 G31 G90 X+100 Y+100 Z+0*
N30 T1 G17 S3500*
N40 G00 G40 G90 Z+250*
N50 G200 DRILLING
Q200=2
Q201=-30
Q206=300
Q202=5
Q210=0
Q203=+0
Q204=2
Q211=0
Q395=0
N60 X+15 Y+10 M3*
N70 L1,0*
N80 X+45 Y+60*
N90 L1,0*
N100 X+75 Y+10*
N110 L1,0*
N120 G00 Z+250 M2*
N130 G98 L1*
N140 G79*
N150 G91 X+20 M99*
N160 Y+20 M99*
N170 X-20 G90 M99*
N180 G98 L0*
N99999999 %UP1 G71 *
320
;SET-UP CLEARANCE
;DEPTH
;FEED RATE FOR PLNGNG
;PLUNGING DEPTH
;DWELL TIME AT TOP
;SURFACE COORDINATE
;2ND SET-UP CLEARANCE
;DWELL TIME AT DEPTH
;DEPTH REFERENCE
Tool call
Retract the tool
Define the DRILLING cycle
Move to starting point for group 1
Call the subprogram for the group
Move to starting point for group 2
Call the subprogram for the group
Move to starting point for group 3
Call the subprogram for the group
End of main program
Beginning of subprogram 1: Group of holes
Call cycle for 1st hole
Move to 2nd hole, call cycle
Move to 3rd hole, call cycle
Move to 4th hole, call cycle
End of subprogram 1
HEIDENHAIN | TNC 620 | ISO Programming User's Manual | 9/2016

Advertisement

Table of Contents
loading

Table of Contents