Contents: Advanced course TNC 4xx
Conventional Programming
No.
1
2
3
4
5
6
7
8
9
10
11
12
13
Title
Drilling
Two rows of holes
Irregular drilling pattern, 3 tools
Linear hole pattern
Linear offset hole pattern
Four double bolt hole circles, 3 tools
Large drilled plate
2D Milling
Loading frame
Free Contour Programming
FK Telephone
FK Dumbbell
FK Hammer basic
FK Mickey Mouse basic
FK Comb, basic, uncorrected
FK Comb first original, then mirrored in Y
PGM-No.
7280
7153
7109
7426
7139
7411
72810
75103
75116
75119
71750
75108
75122
HEIDENHAIN
Advanced course TNC 4xx
D08
IH1
Contents: Advanced course TNC 4xx
No.
14
15
16
17
18
19
20
21
22
23
24
25
Title
3D Milling
Toggle joint, 1 tool
Toggle joint, 2 tools
Truncated cone, standing, 2D, external, horizontal
Truncated cone, standing, 3D, external
Truncated cone, internal, 3D, basic
Truncated cone, internal, 3D, from solid block
Hemisphere, internal, 2D, horizontal
Hemisphere, internal, 2D, horiz. with pockets
Hemisphere, external, 2D, horizontal
Hemisphere, external, 3D, vertical, 1 cut
Hemisphere, external, 3D, vertical, 2 cuts
Threadmilling in three steps, 2 settings
PGM-No.
761260
761261
7162
7282
7283
7284
7322
7323
72841
76130
76131
7164
Q-Parameter Programming
No.
Title
Milling
26
27
28
Milling a contour with several Z-settings
Finish milling rectangular pocket
Milling cylindrical pins
Drilling
29
30
31
32
1 Simple bolt hole circle
6 Bolt hole circles, 1 tool
6 Bolt hole circles, 3 tools, 3 cycles
Linear hole pattern
PGM-No.
7285
7286
7288
7416
74160
74161
746910
HEIDENHAIN
Advanced course TNC 4xx
C08
IH2
60
45
15
Task:
➀
➁
Two rows of holes
Max
Program(s):
Max
5
Min
0
0
Program layout:
Conventional
preparation
25
30
➀
50
45
658570
90
100
BLK FORM
TOOL DEF
TOOL CALL 1 Z S3000
CYCL DEF 1.0 PECKING
L X . . . Y . . . R0 F9999 M3
L Z . . .
CALL LBL 1
L X . . . Y . . .
L Z . . .
Min
30
20
0
Workpiece blank
First tool call
Pecking cycle
Pre-position
Pre-position
➁
Retract tool, end
SPGM 1
HEIDENHAIN
Advanced course TNC 4xx
CALL LBL 1
L Z . . . M2
LBL 1
L IX+20 M99
CALL LBL 1 REP 3/3
LBL 0
C04
7280/1
Solution:
Two rows of holes
Main program
60
➀
45
➁
15
Min
0
0
0 BEGIN PGM 7280 MM
1 .................................................................................
2 BLK FORM 0.1 Z X+0 Y+0 Z-30
3 BLK FORM 0.2 X+100 Y+60 Z+0
4 TOOL DEF 1 L+0 R+2,5
5 TOOL CALL 1 Z S3000
6 CYCL DEF 1.0 PECKING
7 CYCL DEF 1.1 SET UP -2
8 CYCL DEF 1.2 DEPTH -22
9 CYCL DEF 1.3 PECKG -10
10 CYCL DEF 1.4 DWELL 0
11 CYCL DEF 1.5 F150
25
30
45
50
658570
Max
90
Max
Min
20
30
100
TWO ROWS OF HOLES
5
0
Retract tool, end
SPGM 1
12 L X+5 Y+45 R0 F9999 M3
13 L Z+2
14 CALL LBL 1
15 L X+10 Y+15
16 CALL LBL 1
17 L Z+20 R0 F9999 M2
18 LBL 1
19 L IX+20 F9999 M99
20 CALL LBL 1 REP 3/3
21 LBL 0
22 END PGM 7280 MM
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
C04
7280/2
100
Task:
Irregular drilling pattern,
with 3 tools and 3 cycles
Program(s):
90
80
50
40
30
30
20
10
M6
0
0
10
20
30
40
50
70
90
100
40
20
15
0
Tools: • NC-center drill
• Twist drill
•T ap
HEIDENHAIN
Advanced course TNC 4xx
C04 7153/1
Program layout: Irregular drilling pattern,
with 3 tools and 3 cycles
Preparation
Process
Center
Pecking
Tapping
BLK FORM
TOOL DEF
TOOL 1 . . .
L Z . . . . . . . . . . M6
CYCL DEF,
DEPTH = PECKG
CALL LBL 1
STOP M6
TOOL 2 . . .
CYCL DEF,
DEPTH ≠ PECKG
CALL LBL 1
STOP M6
TOOL 3 . . .
CYCL DEF
Workpiece blank
Tool list
First tool call
Tool change
Pecking cycle
Call drilling pattern
Tool change
Pecking cycle
Call drilling pattern
Tool change
Tapping cycle
Retract tool, end
Drilling pattern,
SPGM 1
CALL LBL 1
L Z . . . M2
LBL 1
L X . . . Y . . .
L Z . . . M89
L X . . . Y . . .
L X . . . Y . . . M99
L Z . . .
L X . . . Y . . .
Call drilling pattern
1st position lower left
Setup clearance
and modal cycle call
Further hole positions:
automatic
Further hole positions:
Cycle call by block
Tool change position
LBL 0
HEIDENHAIN
Advanced course TNC 4xx
C04
7153/2
Program layout: Use of Q-parameter for
irregular drilling pattern
BLK- FORM
Center
Pecking
Tapping
TOOL DEF 1 L0 R3,5
TOOL CALL . . .
Q1 = +2
Q2 = +3
CYCL DEF . . . PECKING
SET UP -Q1
DEPTH -Q2 . . .
CALL LBL 1
TOOL DEF 2 L0 R2,5
TOOL CALL . . .
Q2 = 20
CALL LBL 1
TOOL DEF 3 L0 R3,0
TOOL CALL . . .
Q1 = 6
Q2 = 15
CYCL DEF . . . TAPPING
SET UP -Q1
DEPTH -Q2 . . .
Set up
Depth
Cycle type stays the
same!
Retract tool, end
Drilling pattern,
SPGM
HEIDENHAIN
Advanced course TNC 4xx
CALL LBL 1
L Z100 M2
LBL 1
L X . . . Y . . . R0 F9999 M3
L ZQ1 M89
L X . . . Y . . .
L X . . . Y . . . M99
L Z50
LBL 0
C04
Return jump
G7
Solution:
Irregular drilling pattern,
with 3 tools and 3 cycles
100
Main program
90
80
50
40
30
30
20
10
0
0
0 BEGIN PGM 7153 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+3,5 ...........................................
4 TOOL DEF 2 L+0 R+2,5 ...........................................
5 TOOL DEF 3 L+0 R+3 ..............................................
10
20
30
40
50
70
90
40
100
NC-CENTER DRILL
TWIST DRILL
TAP
20
15
M6
0
Center
Pecking
Tapping
6 TOOL CALL 1 Z S800 ..............................................
7 L Z+100 R0 F9999 M6..............................................
8 CYCL DEF 1.0 PECKING
9 CYCL DEF 1.1 SET UP -2
10 CYCL DEF 1.2 DEPTH -2
11 CYCL DEF 1.3 PECKG -2
12 CYCL DEF 1.4 DWELL 0
13 CYCL DEF 1.5 F200
14 CALL LBL 1 ..............................................................
15 STOP M6 .................................................................
16 TOOL CALL 2 Z S500 ..............................................
17 CYCL DEF 1.0 PECKING
18 CYCL DEF 1.1 SET UP -2
19 CYCL DEF 1.2 DEPTH -20
20 CYCL DEF 1.3 PECKG -10
21 CYCL DEF 1.4 DWELL 0
22 CYCL DEF 1.5 F100
23 CALL LBL 1 ..............................................................
24 STOP M6 .................................................................
25 TOOL CALL 3 Z S500 ..............................................
26 CYCL DEF 2.0 TAPPING
27 CYCL DEF 2.1 SET UP -2
28 CYCL DEF 2.2 DEPTH -15
29 CYCL DEF 2.3 DWELL 0
30 CYCL DEF 2.4 F500
31 CALL LBL 1 ..............................................................
NC-CENTER DRILL
TOOL CHANGE
CALL DRILLING PATTERN
TOOL CHANGE
TWIST DRILL
CALL DRILLING PATTERN
TOOL CHANGE
TAP
CALL DRILLING PATTERN
Retract tool, end
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
32 L Z+100 M2
7153/3C01
Solution:
Irregular drilling pattern,
with 3 tools and 3 cycles
SPGM 1,
Drilling pattern
33 LBL 1
34 L X+10 Y+20 R0 F9999 M13
35 L Z+2 M89 ................................................................
36 L X+40 Y+30
37 L X+90 Y+10
38 L Y+40
39 L X+50 Y+80
40 L Y+50
41 L X+30 Y+40
42 L X+20 Y+80
43 L X+10 Y+90
44 L X+70 M99 .............................................................
45 L Z+100 M9 ..............................................................
46 L X-20 Y-20
47 LBL 0
48 END PGM 7153 MM
FIRST MODAL CYCLE CALL
LAST CYCLE CALL BY BLOCK
TOOL CHANGE POSITION
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
C01
7153/4
100
84
76
68
60
52
44
36
Task:
Linear hole pattern
Program(s):
28
20
0
0
Procedure:
Tools:
15
25
35
45
55
65
75
85
100
40
• Move up and down colums (meandering)
• NC-center drill
• Twist drill
•T ap
20
15
M6
0
HEIDENHAIN
Advanced course TNC 4xx
C04
7109/1
Program layout: Linear hole pattern
Preparation
Process
Center
Pecking
Tapping
BLK FORM
TOOL 1 . . . / TOOL 2 . . .
TOOL 1 . . .
CYCL DEF,
DEPTH = PECKG
CALL LBL 1
L Z . . . M6
TOOL 2 . . .
CYCL DEF,
DEPTH ≠ PECKG
CALL LBL 1
L Z . . . M6
TOOL 3 . . .
CYCL DEF
Workpiece blank
Tool list if necessary
Pecking cycle
Call drilling pattern
Tool change
Pecking cycle
Call drilling pattern
Tool change
Tapping cycle
Retract tool, end
CALL LBL 1
L Z . . . M2
Call drilling pattern
HEIDENHAIN
Advanced course TNC 4xx
7109/2C01
Program layout:
Meandering
movement:
Linear hole pattern
Drilling pattern,
SPGM 1
LBL 3
LBL 4
Pre-position
LBL 2 LBL 2 LBL 2 LBL 2
LBL 1
L X . . . Y . . . R0 F9999 M3
L Z . . . M8
LBL 2
L IX . . . M99
LBL 3
23456789
23456789
23456789
23456789
Absolute Pre-position
Setup clearance
Label
Define increments
Cross over and drill
Label
L IY . . . M99
CALL LBL 3 REP . . .
L IX . . . M99
LBL 4
L IY . . . M99
CALL LBL 4 REP . . .
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
Move up column
Cross over and drill
Label
Move down column
Remaining columns
CALL LBL 2 REP . . .
LBL 0
HEIDENHAIN
Advanced course TNC 4xx
7109/3C01
Solution:
Linear hole pattern
100
84
76
68
60
52
44
36
28
20
0
0
15
25
35
45
55
65
75
85
100
40
20
15
M6
0
Main program
Center
Pecking
0 BEGIN PGM 7109 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+3,5 ...........................................
4 TOOL DEF 2 L+0 R+2,5 ...........................................
5 TOOL DEF 3 L+0 R+3 ..............................................
6 TOOL CALL 1 Z S2500 ............................................
7 L Z+100 R0 F9999 M6..............................................
8 CYCL DEF 1.0 PECKING
9 CYCL DEF 1.1 SET UP -2
10 CYCL DEF 1.2 DEPTH -3
11 CYCL DEF 1.3 PECKG -3
12 CYCL DEF 1.4 DWELL 0
13 CYCL DEF 1.5 F100
14 CALL LBL 1 ..............................................................
15 L Z+100 M6 ..............................................................
16 TOOL CALL 2 Z S1500
17 CYCL DEF 1.0 PECKING
18 CYCL DEF 1.1 SET UP -2
19 CYCL DEF 1.2 DEPTH -20
20 CYCL DEF 1.3 PECKG -20
21 CYCL DEF 1.4 DWELL 0
22 CYCL DEF 1.5 F50
23 CALL LBL 1 ..............................................................
24 L Z+100 M6 ..............................................................
NC-CENTER DRILL
TWIST DRILL
TAP
NC-CENTER DRILL
TOOL CHANGE
CALL DRILLING PATTERN
TOOL CHANGE
CALL DRILLING PATTERN
TOOL CHANGE
Tapping
Retract tool, end
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
25 TOOL CALL 3 Z S500
26 CYCL DEF 2.0 TAPPING
27 CYCL DEF 2.1 SET UP -2
28 CYCL DEF 2.2 DEPTH -15
29 CYCL DEF 2.3 DWELL 0
30 CYCL DEF 2.4 F500
31 CALL LBL 1 ..............................................................
32 L Z+100 M2
C01
CALL DRILLING PATTERN
7109/4
Solution:
Linear hole pattern
SPGM 1,
Drilling pattern
33 LBL 1 ........................................................................
34 L X+5 Y+20 R0 F9999 M3 ........................................
35 L Z+2 R0 M8
36 LBL 2
37 L IX+10 M99 ............................................................
38 LBL 3
39 L IY+8 M99...............................................................
40 CALL LBL 3 REP 7/7.................................................
41 L IX+10 M99 ............................................................
42 LBL 4
43 L IY-8 M99 ................................................................
44 CALL LBL 4 REP 7/7.................................................
45 CALL LBL 2 REP 3/3.................................................
46 LBL 0
47 END PGM 7109 MM
DRILLING PATTERN
PRE-POSITION
CROSS OVER
Y-STEP UPWARDS
COLUMN UPWARDS
CROSS OVER
Y-STEP DOWNWARDS
COLUMN DOWNWARDS
REMAINING COUMNS
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
7109/5C01
100
80
70
60
50
40
30
30
Task:
Linear offset hole pattern,
including tapping
Program(s):
20
10
0
0
Procedure:
Tools:
20
100
40
25
30
35
40
45
50
55
60
65
70
75
80
90
85
• Move back and forth along rows (meandering)
• NC-center drill
• Twist drill
•T ap
20
15
M6
0
HEIDENHAIN
Advanced course TNC 4xx
C05
7426/1
Program layout: Linear offset hole pattern,
including tapping
Meandering
movement:
LBL
2
LBL
2
Left end of short
row = Preposition for next
row
Preparation
Process
Center
LBL
2
LBL
2
Pre-position
BLK FORM
TOOL DEF
TOOL 1 . . .
L Z . . . . . . . . . . M6
CYCL DEF,
DEPTH = PECKG
CALL LBL 1
LBL 4
LBL 3
First pre-position
lies under the
first long row
Workpiece blank
Tool list
First tool call
Tool change
Pecking cycle
Call drilling pattern
Pecking
Tapping
Process end
HEIDENHAIN
Advanced course TNC 4xx
STOP M6
TOOL 2 . . .
CYCL DEF,
CALL LBL 1
STOP M6
TOOL 3 . . .
CYCL DEF
CALL LBL 1
STOP M2
DEPTH ≠ PECKG
Tool change
Pecking cycle
Call drilling pattern
Tool change
Tapping cycle
Call drilling pattern
7426/2C05
Program layout:
Linear offset hole pattern,
including tapping
Drilling pattern,
SPGM 1
LBL 1
L X . . . Y . . .
L Z . . .
LBL 2
L IX . . . IY . . . M99
LBL 3
L IX . . . M99
CALL LBL 3 REP . . .
L IX . . . IY . . . M99
LBL 4
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
Absolute pre-position
Setup clearance
Label
Define increments
Cross over and drill
Label
Move right
Cross over and drill
Label
L IX . . . M99
CALL LBL 4 REP . . .
CALL LBL 2 REP . . .
L Z . . .
L X . . . Y . . . . .
LBL 0
23456789
23456789
23456789
23456789
Move left
Remaining rows
Tool change position
HEIDENHAIN
Advanced course TNC 4xx
7426/3C01
Solution:
Linear offset hole pattern,
including tapping
100
80
70
60
50
40
30
30
Main program
Center
20
10
0
30
40
50
60
70
75
80
85
20
0
0 BEGIN PGM 7426 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+3,5 ...........................................
4 TOOL DEF 2 L+0 R+2,5 ...........................................
5 TOOL DEF 3 L+0 R+3 ..............................................
6 TOOL CALL 1 Z S800 ..............................................
7 L Z+100 R0 F9999 M6..............................................
8 CYCL DEF 1.0 PECKING
9 CYCL DEF 1.1 SET UP -2
10 CYCL DEF 1.2 DEPTH -2
11 CYCL DEF 1.3 PECKG -2
12 CYCL DEF 1.4 DWELL 0
13 CYCL DEF 1.5 F200
14 CALL LBL 1 ..............................................................
15 STOP M6 .................................................................
25
35
45
55
65
90
15
40
100
NC-CENTER DRILL
TWIST DRILL
TAP
NC-CENTER DRILL
TOOL CHANGE
CALL DRILLING PATTERN
TOOL CHANGE
20
M6
0
Pecking
Tapping
Retract tool, end
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
16 TOOL CALL 2 Z S500 ..............................................
17 CYCL DEF 1.0 PECKING
18 CYCL DEF 1.1 SET UP -2
19 CYCL DEF 1.2 DEPTH -20
20 CYCL DEF 1.3 PECKG -10
21 CYCL DEF 1.4 DWELL 0
22 CYCL DEF 1.5 F100
23 CALL LBL 1 ..............................................................
24 STOP M6 .................................................................
25 TOOL CALL 3 Z S500 ..............................................
26 CYCL DEF 2.0 TAPPING
27 CYCL DEF 2.1 SET UP -2
28 CYCL DEF 2.2 DEPTH -15
29 CYCL DEF 2.3 DWELL 0
30 CYCL DEF 2.4 F500
31 CALL LBL 1 ..............................................................
32 STOP M2
C01
TWIST DRILL
CALL DRILLING PATTERN
TOOL CHANGE
TAP
CALL DRILLING PATTERN
7426/4
Solution:
Linear offset hole pattern,
including tapping
SPGM 1,
Drilling pattern
33 LBL 1
34 L X+25 Y+0 R0 F9999 M3 ........................................
35 L Z+2 R0 M8
36 LBL 2 ........................................................................
37 L IX-5 IY+10 R0 M99
38 LBL 3 ........................................................................
39 L IX+10 R0 M99
40 CALL LBL 3 REP 6/6
41 L IX-5 IY+10 R0 M99................................................
42 LBL 4 ........................................................................
43 L IX-10 R0 M99
44 CALL LBL 4 REP 5/5
45 CALL LBL 2 REP 3/3.................................................
46 L Z+100 R0 M9.........................................................
47 L X-20 Y-20 R0
48 LBL 0
49 END PGM 7426 MM
PRE-POSITION
CROSS OVER AND DRILL
RIGHT ALONG ROW
CROSS OVER
LEFT ALONG ROW
REMAINING ROWS
TOOL CHANGE POSITION
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
7426/5C01
100
75
Task:
Four double bolt hole circles,
with 3 tools, 3 cycles,
including tapping
36
Program(s):
25
0
0
20
25
Tools: • NC-center drill
• Twist drill
•T ap
75
100
40
22
18
M6
0
HEIDENHAIN
Advanced course TNC 4xx
C04 7139/1
Program layout: Nesting of double bolt hole circles
BLK- FORM
Center
Pecking
Tapping
Retract tool, end
SPGM 1,
Circle center and
SPGM call
TOOL DEF / TOOL CALL 1 . . .
CYCL DEF . . .
CALL LBL 1
TOOL DEF / TOOL CALL 2 . . .
CYCL DEF . . .
CALL LBL 1
TOOL DEF / TOOL CALL 3 . . .
CYCL DEF . . .
CALL LBL 1
L Z100 M2
LBL 1
CC X . . . Y . . .
SPGM 2,
Tool movements
and holes
CALL LBL 2
CC X . . . Y . . .
CALL LBL 2
CC X . . . Y . . .
CALL LBL 2
LBL 0
LBL 2
LP PR . . . PA . . . M3
L Z2 M99
LBL 3
○○ ○○
LBL 4
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
Inner bolt hole circle
Outer bolt hole circle
LBL 0
HEIDENHAIN
Advanced course TNC 4xx
G8C04
Program layout: Four double bolt hole circles,
with 3 tools, 3 cycles,
including tapping
Preparation
Process
Center
Pecking
BLK FORM
TOOL DEF
TOOL 1 . . .
L Z . . . . . . . . . . M6
CYCL DEF,
DEPTH = PECKG
CALL LBL 1
L Z . . . M6
TOOL 2 . . .
CYCL DEF,
DEPTH ≠ PECKG
CALL LBL 1
Workpiece blank
Tool list
First tool call
Tool change
Pecking cycle
Call drilling pattern
Tool change
Pecking cycle
Call drilling pattern
Tapping
Retract tool, end
L Z . . . M6
TOOL 3 . . .
CYCL DEF
CALL LBL 1
L Z . . . M2
Tool change
Tapping cycle
Call drilling pattern
HEIDENHAIN
Advanced course TNC 4xx
7139/2C05
Program layout:
Four double bolt hole circles,
with 3 tools, 3 cycles,
including tapping
Center of circles,
SPGM 1
End SPGM 1
Drilling pattern,
SPGM 2
Bolt hole circle
LBL 1
CC X . . . Y . . .
CALL LBL 2
CC X . . . Y . . .
CALL LBL 2
. . .
LBL 0
LBL 2
LP PR . . . PA . . . R0 F9999 M13
L Z . . . M99
23456789
23456789
LBL 3
23456789
LP PR . . . IPA . . . M99
23456789
23456789
23456789
CALL LBL 3 REP . . .
23456789
Center lower left
Call bolt hole circle
Remaining centers
Call remaining bolt
hole circles
Drill positions
Inner circle
Setup clearance
and first hole
Label
Remaining
drill positions
End SPGM 2
LP PR . . . M99
LBL 4
LP PR . . . IPA . . . M99
CALL LBL 4 REP . . .
LBL 0
23456789
23456789
23456789
23456789
23456789
23456789
23456789
Outer circle ,
first hole
Label
Remaining
drill positions
HEIDENHAIN
Advanced course TNC 4xx
7139/3C01
Solution:
Four double bolt hole circles,
with 3 tools, 3 cycles,
including tapping
100
75
36
25
0
0
20
25
75
100
40
22
18
M6
0
Main program
Center
Pecking
0 BEGIN PGM 7139 MM
1 BLK FORM 0.1 Z X+0 Y+0 Z-40
2 BLK FORM 0.2 X+100 Y+100 Z+0
3 TOOL DEF 1 L+0 R+3,5 ...........................................
4 TOOL DEF 2 L+0 R+2,5 ...........................................
5 TOOL DEF 3 L+0 R+3 ...............................................
6 L Z+100 R0 F9999 M6 ..............................................
7 TOOL CALL 1 Z S2500 .............................................
8 CYCL DEF 1.0 PECKING
9 CYCL DEF 1.1 SET UP -2
10 CYCL DEF 1.2 DEPTH -1,5
11 CYCL DEF 1.3 PECKG -1,5
12 CYCL DEF 1.4 DWELL 0
13 CYCL DEF 1.5 F100
14 CALL LBL 1 ..............................................................
15 L Z+100 M6 ..............................................................
16 TOOL CALL 2 Z S500
17 CYCL DEF 1.0 PECKING
18 CYCL DEF 1.1 SET UP -2
19 CYCL DEF 1.2 DEPTH -22
20 CYCL DEF 1.3 PECKG -10
21 CYCL DEF 1.4 DWELL 0
22 CYCL DEF 1.5 F100
23 CALL LBL 1 ..............................................................
24 L Z+100 M6 ..............................................................
NC-CENTER DRILL
TWIST DRILL
TAP
TOOL CHANGE
NC-CENTER DRILL
CALL DRILLING PATTERN
TOOL CHANGE
CALL DRILLING PATTERN
TOOL CHANGE
Tapping
Retract tool, end
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
25 TOOL CALL 3 Z S250
26 CYCL DEF 2.0 TAPPING
27 CYCL DEF 2.1 SET UP -2
28 CYCL DEF 2.2 DEPTH -18
29 CYCL DEF 2.3 DWELL 0
30 CYCL DEF 2.4 F250
31 CALL LBL 1 ..............................................................
32 L Z+100 M2
CALL DRILLING PATTERN
7139/4D02
Solution:
Four double bolt hole circles,
with 3 tools, 3 cycles,
including tapping
SPGM 1, Center of
circles
SPGM 1, end
SPGM 2, Bolt hole
circle itself
SPGM 2, end
33 LBL 1
34 CC X+25 Y+25 .........................................................
35 CALL LBL 2 ..............................................................
36 CC X+75 Y+25 .........................................................
37 CALL LBL 2 ..............................................................
38 CC X+75 Y+75 .........................................................
39 CALL LBL 2 ..............................................................
40 CC X+25 Y+75 .........................................................
41 CALL LBL 2 ..............................................................
42 LBL 0
43 LBL 2 ........................................................................
44 LP PR+10 PA+0 M13 ................................................
45 L Z+2 M99................................................................
46 LBL 3 ........................................................................
47 LP IPA+90 M99
48 CALL LBL 3 REP 2/2
49 LP PR+18 PA+180 M99............................................
50 LBL 4 ........................................................................
51 LP IPA+45 M99
52 CALL LBL 4 REP 6/6
53 LBL 0
54 END PGM 7139 MM
CENTER LOWER LEFT
DRILL POSITIONS
CENTER LOWER RIGHT
DRILL POSITIONS
CENTER UPPER RIGHT
DRILL POSITIONS
CENTER UPPER LEFT
DRILL POSITIONS
DRILL POSITIONS
INNER CIRCLE
1ST HOLE
REMAINING HOLES
OUTER CIRCLE
REMAINING HOLES
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
7139/5C01
Task:
Large drilled plate
)
0°
6
3
=
(
°
8
1
∗
0
2
°
8
1
0'
2
°
3
R
R
Program(s):
Z
0
2
1
2
1
1
15
22
Procedure:
Tools:
0
5
1
260
R
R
1
9
6
• Center holes, drill, tap
• Mill large hole
• NC-center drill
• Twist drill
•T ap
• Mill R30
04
Detail Z
M 2:1
20
17
2
M3
HEIDENHAIN
Advanced course TNC 4xx
C04
7411/1
Program layout: Large drilled plate
Preparation
Process
Center
Pecking
Tapping
BLK FORM
TOOL 1 . . . / TOOL 2 . . .
TOOL 1 . . .
CYCL DEF,
DEPTH = PECKG
(R 2,0)
CALL LBL 1
. . . M6
TOOL 2 . . .
(R 1,0)
CYCL DEF
CALL LBL 1
. . . M6
TOOL 3 . . .
(R 1,5)
CYCL DEF
Workpiece blank
Tool list if necessery
Pecking cycle
Call drilling pattern
Tool change
Pecking cycle
Call drilling pattern
Tool change
Tapping cycle
Mill large holes
Retract tool, end
CALL LBL 1
. . . M6
TOOL 4 . . .
CYCL DEF
L X . . . Y . . .
L Z . . . . . M99
L Z . . . . . M2
Call drilling pattern
Tool change
(R 30)
Circular pocket -cycle
Starting position and
cycle call
HEIDENHAIN
Advanced course TNC 4xx
C01
7411/2
Program layout:
Large drilled plate
Drilling pattern,
SPGM 1
LBL 1
CC . . .
LP . . .
L Z . . .
LBL 2
LP IPA . . . . . . . . M99
LBL 3
LP IPR . . . . . M99
CALL LBL 3 REP . . .
LP IPA . . . . . . . . M99
LBL 4
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
23456789
Center
Absolute pre-position
Plane
Setup clearance in Z
Angular step (increm. )
Drill with M99
Radial step inwards
Further radial steps
Angular step
LP IPR . . . . . M99
CALL LBL 4 REP . . .
CALL LBL 2 REP . . .
LP IPA . . . . . .
CALL LBL 2 REP . . .
L Z . . . . . M99
L X . . . Y . . . . .
LBL 0
23456789
23456789
23456789
Radial step outwards
Further radial steps
Further double rows
To intermediate pos.
Remaining hole gr.
Tool change position
HEIDENHAIN
Advanced course TNC 4xx
7411/3C01
Detail: Large drilled plate
LBL 0
Angular step:
8°
18°
0°
LBL 2
=
1st hole group
LBL 1
= (19 + 1)* drilling pattern +
angle increment 4,667° between
drilling patterns
Pre-position
Start = Pre-position
3,333°
4,667°
3,333°
3° 20' = 3°
= 3,333°
-6,667°
20
60
LBL 4
LBL 3
LBL 2
LBL 1
≈
Overall working direction ➪
➪
HEIDENHAIN
Advanced course TNC 4xx
C04
7411/4
Solution:
Large drilled plate
3
=
(
°
8
1
∗
0
2
1
2
°
3
)
0°
6
°
8
0'
Z
0
2
1
R
2
1
1
R
15
22
Main program
Center
0
5
1
260
R
1
04
R
9
6
0 BEGIN PGM 7411 MM
1 BLK FORM 0.1 Z X-125 Y-130 Z-22
2 BLK FORM 0.2 X+125 Y+130 Z+0
3 TOOL DEF 1 L+0 R+2,0 ...........................................
4 TOOL DEF 2 L+0 R+1 ..............................................
5 TOOL DEF 3 L+0 R+1,5 ...........................................
6 TOOL DEF 4 L+0 R+30 ............................................
7 TOOL CALL 1 Z S3000
8 CYCL DEF 1.0 PECKING
9 CYCL DEF 1.1 SET UP -2
10 CYCL DEF 1.2 DEPTH -2
11 CYCL DEF 1.3 PECKG -2
12 CYCL DEF 1.4 DWELL 0
13 CYCL DEF 1.5 F100
14 CALL LBL 1
15 L Z+20 R0 F9999 M6
2
CENTER DRILL
TWIST DRILL
TAP
MILL
Detail Z
M 2:1
20
17
M3
Pecking
16 TOOL CALL 2 Z S3000
17 CYCL DEF 1.0 PECKING
18 CYCL DEF 1.1 SET UP -2
19 CYCL DEF 1.2 DEPTH -20
20 CYCL DEF 1.3 PECKG -20
21 CYCL DEF 1.4 DWELL 0
22 CYCL DEF 1.5 F200
23 CALL LBL 1
24 L Z+20 R0 F9999 M6
HEIDENHAIN HEIDENHAIN
Advanced course TNC 4xx
7411/5C04