9 q p ar amet ers with special f u nctions, Example: cavity with disk cycle – HEIDENHAIN TNC 406 User Manual
Page 233
212
10 Programming: Q Parameters
1
0.9 Q P
ar
amet
ers with Special F
u
nctions
Example: Cavity with DISK cycle
Program sequence
The program accesses the minimum undersize
UNS with indexed data assignment via the
power stage.
The minimum undersize UNS is located in the
erosion table.
Calculations in the program:
Undersize UM = D – 2 • R
Expansion radius RAD = 0.5 • ( UM – UNS )
The depth of cavity T is reduced by the value of
UNS programmed in the DISK cycle. The
electrode radius must be larger than the radius
of the cavity (= 0.5 • D=20 mm).
0 BEGIN PGM QDISK MM
1 FN 0: Q1 = – 10
Depth of cavity T
2 FN 0: Q2 = + 40
Diameter of cavity D
3 FN 0: Q99 = 6
Power stage
4 BLK FORM 0.1 Z X+0 Y+0 Z–20
Define the workpiece blank: MIN point
5 BLK FORM 0.2 X+100 Y+100 Z+0
Define the workpiece blank: MAX point
6 CYCL DEF 1.0 GENERATOR
Cycle GENERATOR (see ”Cycle 1 GENERATOR” on page 133)
7 CYCL DEF 1.1 P-TAB 100
Select erosion table (here, table 100)
8 CYCL DEF 1.2 MAX=6 MIN =6
Set power stage
9 TOOL DEF 1 L+0 R+12
Define electrode in the program
10 TOOL CALL 1 Z U+1
Call electrode in the infeed axis Z, undersize 1 mm
11 L Z+100 R0 F MAX M
Retract in the infeed axis; rapid traverse; insert electrode
12 L X+50 Y+50 Z+2 R0 FMAX M
Starting position
13 FN 3: Q10 = +2 * +Q108
Calculate electrode diameter
14 FN 2: Q10 = +Q2 – +Q10
Calculate undersize UM
15 TOOL CALL 1 Z UM +Q10
Call tool with UM
16 FN 16: Q11 = Q231(Q99)
Determine UNS
17 FN 2: Q12 = +Q10 – +Q11
Calculating the expansion radius RAD
X
Z
RAD
UM
2
D
Re
UNS
2
V