6 programming examples – HEIDENHAIN TNC 426B (280 472) ISO programming User Manual

Page 266

Advertising
background image

9 Programming: Subprograms and Program Section Repeats

250

9.6 Programming Examples

%UP2 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+4 *
N40 G99 T2 L+0 R+3 *
N50 G99 T3 L+0 R+3.5 *
N60 T1 G17 S5000 *
N70 G00 G40 G90 Z+250 *
N80 G83 P01 +2 P02 -3 P03 +3 P04 0

P05 250 *

N90 L1.0 *
N100 G00 Z+250 M6 *
N110 T2 G17 S4000 *
N120 G83 P01 +2 P02 -25 P03 +5 P04 0

P05 250 *

N130 L1.0 *
N140 G00 Z+250 M6 *
N150 T3 G17 S500 *
N160 G84 P01 +2 P02 -15 P03 0 P04 500 *
N170 L1.0 *
N180 G00 Z+250 M2 *

Define tool: center drill

Tool definition: drill

Tool definition of tap

Call tool: center drill

Retract the tool

Cycle definition: Centering

Call subprogram 1 for the entire hole pattern

Tool change

Call the drilling tool

Cycle definition: drilling

Call subprogram 1 for the entire hole pattern

Tool change

Tool call for tap

Cycle definition for tapping

Call subprogram 1 for the entire hole pattern

End of main program

Example: Groups of holes with several tools

Program sequence

■

Program the fixed cycles in the main program

■

Call the entire hole pattern (subprogram 1)

■

Approach the groups of holes in subprogram
1, call group of holes (subprogram 2)

■

Program the group of holes only once in
subprogram 2

%UP2 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+4 *
N40 G99 T2 L+0 R+3 *
N50 G99 T3 L+0 R+3.5 *
N60 T1 G17 S5000 *
N70 G00 G40 G90 Z+250 *
N80 G83 P01 +2 P02 -3 P03 +3 P04 0

P05 250 *

N90 L1.0 *
N100 G00 Z+250 M6 *
N110 T2 G17 S4000 *
N120 G83 P01 +2 P02 -25 P03 +5 P04 0

P05 250 *

N130 L1.0 *
N140 G00 Z+250 M6 *
N150 T3 G17 S500 *
N160 G84 P01 +2 P02 -15 P03 0 P04 500 *
N170 L1.0 *
N180 G00 Z+250 M2 *

Define tool: center drill

Tool definition: drill

Tool definition of tap

Call tool: center drill

Retract the tool

Cycle definition: Centering

Call subprogram 1 for the entire hole pattern

Tool change

Call the drilling tool

Cycle definition: drilling

Call subprogram 1 for the entire hole pattern

Tool change

Tool call for tap

Cycle definition for tapping

Call subprogram 1 for the entire hole pattern

End of main program

X

Y

15

60

100

100

75

10

45

20

20

5

Z

Y

-20

-15

Lkap9.pm6

29.06.2006, 08:07

250

Advertising