6 Subprograms and Program Section Repeats
d
6.4 Nesting
Example for exercise:
Group of four holes at three positions (see page 6-4). but with three different tools
f
\
Machining sequence:
Countersinking - Drilling -Tapping
L /
The drilling operation is programmed with oycte
1:
PECKfNG tsee page 841 and cyczie
2:
TAPPING (see page 8-12~. Tha groups of holes
are
approach& in one subprogram, and the
machining is perbrmed
in a second
subprogram.
Coordinates of the first hole in each group:
@ X = 15mm Y = IOmm
@ X = 45mm Y = 60mm
@ X = 75mm Y = IOmm
Spacing between
holes:
IX = 20mm IY =20mm
Hole data:
Countersinking ZC= 3mm 0 = 7mm
Drilling ZD= 15mm 0 = 5mm
Tapping ZT= IOmm 0 = 6mm
Part program
BEGIN PGM 3600610 MM
BLK FORM 0.1 Z X+0 Y+O Z-20
BLK FORM 0.2 X+100 Y+lOO Z+O
TOOL DEF T25 L+O R+2.5
TOOL DEF T30 L+O R+3
TOOL DEF T35 L+O R+3.5
I)
Tool definition for countersinking (T35), pecking (T25) and
tapping (T30)
CYCL DEF 1 .O PECKING
CYCL DEF 1.1 SETUP2
CYCL DEF 1.2 DEPTH-3
9 CYCL DEF 1.3 PECKG3
10 CYCL DEF 1.4 DWELL0
k
Cycle definition PECKING for countersinking
11 CYCL DEF 1.5 FIOO
12 TOOL
CALL 35 Z S 500
13
J
CALL LBL 1 ._.._____............................................... Call of subprogram 1
14 CYCL DEF 1 .O PECKING
15 CYCL
DEF 1 .I SETUP2
16 CYCL DEF 1.2 DEPTH-25
17
18
19
20
21
22
23
24
25
26
27
28
29
CYCL DEF 1.3 DEPTH6
CYCL DEF 1.4 DWELL0
l-
Cycle definition PECKING
CYCL DEF 1.5 F50
TOOL CALL 25 Z S 1000
CALL LBL
J
1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Call of subprogram
1
CYCL DEF 2.0 TAPPING
CYCL DEF 2.1 SETUP2
CYCL DEF 2.2 DEPTH-l 5
CYCL DEF 2.3 DWELL0
CYCL DEF 2.4 FIOO
TOOL CALL 30 Z S 250
I
Cycle definition TAPPING
CALL LBL 1 _.._____.,...,..,......,.,.,..,..,...................... Call of subprogram 1
L Z+lOO RO FMAX M2 Last program block, return jump
Continued...
4
6-l 0 TNC 370