6 programming examples – HEIDENHAIN TNC 410 User Manual

Page 214

Advertising
background image

201

HEIDENHAIN TNC 410

Example: Groups of holes

9.6 Programming 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

0 BEGIN PGM UP1 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-20
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+2.5
4 TOOL CALL 1 Z S5000
5 L Z+250 R0 FMAX
6 CYCL DEF 200 DRILLING
Q200=2 ;SET-UP CLEARANCE
Q201=-10 ;DEPTH
Q206=250 ;FEED RATE FOR PLUNGING
Q202=5 ;PLUNGING DEPTH
Q210=0 ;DWELL TIME AT TOP
Q203=+0 ;SURFACE COORDINATE
Q204=10 ;2ND SET-UP CLEARANCE
7 L X+15 Y+10 R0 F MAX M3
8 CALL LBL 1
9 L X+45 Y+60 R0 F MAX
10 CALL LBL 1
11 L X+75 Y+10 R0 F MAX
12 CALL LBL 1
13 L Z+250 R0 FMAX M2

Define the tool

Call the tool

Retract the touch probe

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

X

Y

15

60

100

100

75

10

45

20

20

5

Advertising