6 programming examples, Example: groups of holes, Programming examples – HEIDENHAIN TNC 128 (77184x-02) User Manual

Page 185: Programming examples 7.6

Advertising
background image

Programming examples

7.6

7

TNC 128 | User's Manual HEIDENHAIN Conversational Programming | 5/2014

185

7.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) in the main
program

Program the group of holes only once in subprogram
1

0 BEGIN PGM SP2 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 CALL 1 Z S3000

Tool call

4 Z+250 R0 FMAX M3
5 CYCL DEF 200 DRILLING

Cycle definition: drilling

Q200=+2

;SET-UP CLEARANCE

Q201=-20

;DEPTH

Q206=+150

;FEED RATE FOR PLNGNG

Q202=+5

;PLUNGING DEPTH

Q210=+0

;DWELL TIME AT TOP

Q203=+0

;SURFACE COORDINATE

Q204=+50

;2ND SET-UP CLEARANCE

Q211=+0

;DWELL TIME AT BOTTOM

Q395=+0

;DEPTH REFERENCE

6 CYCL DEF 7.0 DATUM SHIFT

Datum shift

7 CYCL DEF 7.1 X+15
8 CYCL DEF 7.2 Y+10
9 CALL LBL 1
10 CYCL DEF 7.0 DATUM SHIFT

Datum shift

11 CYCL DEF 7.1 X+75
12 CYCL DEF 7.2 Y+10
13 CALL LBL 1
14 CYCL DEF 7.0 DATUM SHIFT

Datum shift

15 CYCL DEF 7.1 X+45
16 CYCL DEF 7.2 Y+60
17 CALL LBL 1

Advertising