HEIDENHAIN TNC 407 (280 580) User Manual User Manual
Page 207
TNC 425/TNC 415 B/TNC 407
7-22
7
Programming with Q Parameters
Hemisphere machined with an end mill
Notes on the program:
• The tool moves upward in the Z/X plane.
• You can enter an oversize in block 12 (Q12) if
you want to machine the contour in several
steps.
• The tool radius is automatically compensated
with parameter Q108.
The program works with the following
quantities:
• Solid angle:
Start angle
Q1
End angle
Q2
Increment
Q3
• Sphere radius
Q4
• Setup clearance
Q5
• Plane angle:
Start angle
Q6
End angle
Q7
Increment
Q8
• Center of sphere:
X coordinate
Q9
Y coordinate
Q10
• Milling feed rate
Q11
• Oversize
Q12
The parameters additionally defined in the
program have the following meanings:
• Q15:
Setup clearance above the sphere
• Q21:
Solid angle during machining
• Q24:
Distance from center of sphere to
tool center
• Q26:
Plane angle during machining
• Q108: TNC parameter with tool radius
Part program
0
BEGIN PGM QPEXAMP3 MM
1
FN 0: Q1
= + 90
2
FN 0: Q2
= + 0
3
FN 0: Q3
= + 5
4
FN 0: Q4
= + 45
5
FN 0: Q5
= + 2
6
FN 0: Q6
= + 0
7
FN 0: Q7
= + 360
8
FN 0: Q8
= + 5
9
FN 0: Q9
= + 50
10
FN 0: Q10 = + 50
11
FN 0: Q11 = + 500
12
FN 0: Q12 = + 0 ............................................. Assign the sphere data to the parameters
13
BLK FORM 0.1 Z X+0 Y+0 Z–50
14
BLK FORM 0.2 X+100 Y+100 Z+0
15
TOOL DEF 1 L+0 R+5
16
TOOL CALL 1 Z S1000
17
L Z + 100 R0 FMAX M6 ..................................... Define the workpiece blank and tool, insert tool
18
CALL LBL 10 ...................................................... Subprogram call
19
L Z + 100 R0 FMAX M2 ..................................... Retract tool, end program, return to block 1
Continued...