7 Programming with Q Parameters
-.-.
L
7.8 Examples for Exercise
Rectangular pocket with corner rounding and tangential approach
Pocket center coordinates:
X = 50mm(Ql)
Y = 50 mm (Q2)
Pocket length X = 90 mm
(Q3)
Pocket width Y = 70 mm
(Q4)
Working depth Z = (-) 15 mm (-05)
Corner radius R = 10 mm
(Q6)
Milling feed
F = 200 mm/min (07)
Note:
At the corners 21 and 31 the workpiece will be
machined slightly differently than shown in the
drawing!
Part program
0 BEGIN PGM 360077 MM
1 BLK FORM 0.1 Z X+0 Y+O Z-20
2 BLK FORM 0.2 X+1 00 Y+lOO Z+O
1)
Program start and workpiece blank
3 FN 0: Ql = +50
4 FN 0: Q2 = +50
5 FN 0: Q3 = +90
6 FN 0: 04 = +70
7
FNO:Q5=+15
8 FNO:Q6=+10
9 FN 0: Q7 = +200
10 TOOL DEF 1 L+O R+5
11 TOOL CALL 1 Z SIOOO
12 L Z+lOO RO FMAX M6
13
14
15
16
17
18
19
FN4: Q13 = +Q3 DIV+2
1
Enter half the pocket length and width for the paths of
FN4: Q14 = +Q4 DIV+2
traverse in blocks 20, 22, 30
FN4: Q16 = +Q6 DIV+4 Rounding radius for tangential approach
FN4: 017 = +Q7 DIV+2
Feed rate in corners is half the rate for linear movement
L X+Ql Y+Q2 RO FMAX M3 Pre-position in X and Y (pocket center), spindle ON
L Z+2 FMAX . . . .._............................................... Pre-position over workpiece
L Z-Q5 FQ7 . . . . .._............................................. Move to working depth Q5 (= -15 mm) with feed rate 07
20
21
22
23
24
25
26 L IY-Q4
27 RND RQ6 FQ17
28 L IX+Q3
29 RND RQ6 FQI 7
30 L IY+Q14
31
32
33
34
Assign the rectangular pocket data to Q parameters
1
Define and insert the tool
L IX+Q13 Y+Q2 RL
RND RQ16 FQ17
L IY+Q14
RND RQ6 FQI 7
L IX-03
RND RQ6 FQI 7
(=I 00)
1
Approach the pocket in a tangential arc
Mill the frame of the rectangular pocket
RND RQ16 FQ17
L X+01 Y+Q2 RO FMAX
I
Depart to pocket center in a tangential arc
L Z+lOO FMAX M2 . . . . . . . ..____.............................. Retract tool
END PGM 360077 MM
c
J
TNC 370
7-15