7 Programming with Q Parameters
I
7.8 Examples for Exercise
Machining a hemisphere with an end mill
Notes on the program:
l
The tool moves upwards in the ZX plane.
* You can enter an oversize in block 12 (Ql2)
if you want to machine the contour in
several steps.
l
The tool radius is automatically compensated
with parameter 0108.
The program works with the following values:
l
Solid angle: Start angle 01
End angle Q2
Increment Q3
l
Sphere radius Q4
l
Setup clearance Q5
l
Plane angle: Start angle Q6
End angle Q7
Increment Q8
l
Center of sphere: X coordinate 09
Y coordinate 010
l
Milling feed rate 011
l
Oversize 012
The parameters additionally defined in the
program have the following meanings:
l
015: Setup clearance above the sphere
l
Q21: Solid angle during machining
l
024: Distance from center of sphere
to center of tool
l
Q26: Plane angle during machining
l
0108: Tool radius
Y
Assign the sphere data to the parameters
Part program
0 BEGIN PGM 360712 MM
1 FNO: 01 = +90
2 FN 0: Q2 = +0
3 FN 0: Q3 = + 5
4 FN 0: 04 = +45
5 FN 0: Q5 = +2
6 FN 0: 06 = +0
7 FN 0: 07 = +360
8 FN 0: Q8 = + 5
9 FN 0: Q9 = + 50
10 FNO: QIO = +50
11 FNO: Qll = +500
12 FNO: Q12 = +0
2
13 BLK FORM 0.1 Z X+0 Y+O Z-50
14 BLK FORM 0.2 X+100 Y+lOO Z+O
15 TOOL DEF 1 L+O R+5
Workpiece blank; define and insert tool
16 TOOL CALL 1 Z SIOOO
17 LZ+lOO RO FMAX M6
1
18 CALL LBL 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Subprogram call
19 L Z+lOO RO FMAX M2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Retract tool; return jump to beginning of program
Continued..
7-20 TNC 370