beautypg.com

Yx z – HEIDENHAIN TNC 407 (280 580) User Manual User Manual

Page 178

background image

TNC 425/TNC 415 B/TNC 407

6-4

6

Subprograms and Program Section Repeats

60

15

45

75

10

3

1

2

20

20

20

5

Y

X

Z

6.1

Subprograms

Example: Group of four holes at three different locations

The holes are drilled with cycle 1 PECKING.
You enter the total hole depth, setup clearance,
feed rate etc. once in the cycle. You can then
call the cycle with the miscellaneous function
M99 (see page 8-3).

Coordinates of the first hole in each group:

Group

1

X = 15 mm

Y = 10 mm

Group

2

X = 45 mm

Y = 60 mm

Group

3

X = 75 mm

Y = 10 mm

Spacing of holes:

IX = 20 mm
IY = 20 mm

Total hole depth:

Z = 10 mm

Hole diameter:

Ø = 5 mm

Part program

0

BEGIN PGM GROUPS 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 S1000

5

CYCL DEF 1.0 PECKING

6

CYCL DEF 1.1 SET UP –2

7

CYCL DEF 1.2 DEPTH -10

8

CYCL DEF 1.3 PECKG–10

9

CYCL DEF 1.4 DWELL 0

10

CYCL DEF 1.5 F100

11

L Z+100 F MAX

12

L X+15 Y+10 R0 F MAX M6 ............................... Move to hole group 1, insert tool

13

L Z+2 F MAX M3 ................................................ Pre-position in the infeed axis

14

CALL LBL 1 ........................................................ Subprogram call (with block 14 the subprogram is executed

once).

15

L X+45 Y+60 F MAX .......................................... Move to hole group 2

16

CALL LBL 1 ........................................................ Subprogram call

17

L X+75 Y+10 F MAX .......................................... Move to hole group 3

18

CALL LBL 1 ........................................................ Subprogram call

19

L Z+100 F MAX M2 ............................................ Retract tool; return to program block 1 and end main program

(M2). The subprogram is entered after M2.

20

LBL 1 .................................................................. Begin the subprogram

21

L M99 ................................................................. Execute the peck drilling cycle for the first hole in the group

22

L IX+20 F MAX M99 ........................................... Move to the position for the second hole and drill

23

L IY+20 F MAX M99 ........................................... Move to the position for the third hole and drill

24

L IX–20 F MAX M99 ........................................... Move to the position for the fourth hole and drill

25

LBL 0 .................................................................. End the subprogram

26

END PGM GROUPS MM

Cycle definition PECKING (see page 8-5)