7 Programming with 0 Parameters
1
7.8 Examples for Exercise
Bolt hole circle
Bore pattern 1 distributed over a full circle:
Entry values are listed below in program
blocks 1 - 8.
Movements in the plane are programmed
with polar coordinates.
Bore pattern 2 distributed over a circle sector:
Entry values are listed below in lines 20 - 24;
Q5, 07 and Q8 remain the same.
Part program
0 BEGIN PGM 3600715 MM .................................... Load data for bolt hole circle 1:
1 FN 0: 01 = + 30
..................................................... Circle center X coordinate
2 FN 0: Q2 = +70 ...................................................... Circle center Y coordinate
3 FN 0: Q3 = +I 1 ......................................................
Number of holes
4 FN 0: Q4 = +25 ...................................................... Circle
radius
5 FN 0: 05 = +90 ...................................................... Start angle
6 FN 0: 06 = +0 ........................................................
Hole angle increment (0: distribute holes over 360”)
7 FN 0: Q7 = +2 ........................................................ Setup clearance
8 FN 0: Q7 = +I5 ......................................................
Total hole depth
9 BLK FORM 0.1 Z X+0 Y+O Z-20
10 BLK FORM 0.2 X+100 Y+lOO Z+O
11 TOOL DEF 1 L+O R+4
12 TOOL CALL 1 Z S2500
13 CYCL DEF 1 .O PECKING .................................... Definition of the pecking cycle
14 CYCL DEF 1 .I SET
UP Q7 ................................. Setup clearance
15 CYCL DEF 1.2 DEPTH -08 ................................ Total hole depth according to the load data
16 CYCL DEF 1.3 PECKG 5
17 CYCL DEF 1.4 DWELL 0
18 CYCL DEF 1.5 F250
19 CALL LBL 1 .......................................................... Call bolt hole circle
1, load data for bolt hole circle 2
(only re-enter changed data)
20 FN 0: Ql = +90 .................................................... New circle center X coordinate
21 FN 0: 02 = +25 ....................................................
New circle center Y coordinate
22 FN 0: 03 = +5 ...................................................... New
number of holes
23 FN 0: 04 = +35 .................................................... New circle radius
24 FN 0: 06 = +30 .................................................... New hole angle
increment (not a full circle, 5
holes at 30” intervals)
25 CALL LBL 1 ..........................................................
Call bolt hole circle 2
26 L Z+200 RO F MAX M2
Continued
7-16
TNC 370