4 er osion cy cles – HEIDENHAIN TNC 406 User Manual
Page 170

HEIDENHAIN TNC 406, TNC 416
149
8.4 Er
osion Cy
cles
Contour program:
15 FN 16: Q11 = Q200(Q99)
The diametrical gap according to the current power stage is
assigned to Q11 (see ”Indexed assignment” on page 198).
16 FN3 Q11 = Q11 * 0.8
Calculation of the vertical gap
17 L Z+Q11 R0 F M36
Pre-positioning with vertical gap; eroding ON
18 LBL 1
Label number
19 CYCL DEF 11.0 SCALING
SCALING cycle
20 CYCL DEF 11.1 SCL Q1
(see ”SCALING FACTOR (Cycle 11)” on page 160)
21 L IY+Q12 R F M
Pre-positioning
22 CYCL DEF 14.0 CONTOUR GEOMETRY
Cycle 14 Contour Geometry (see ”Cycle 14 CONTOUR
GEOMETRY” on page 137)
23 CYCL DEF 14.1 IZ-1.5 M36
Incremental eroding depth, eroding ON
24 CYCL DEF 14.2 PGM GEOMETR
Name of the contour program
25 CYCL DEF 14.3 PRC=Q4
Spark-out distance in percent
26 L IY-Q12 R F M37
Retract, eroding OFF
27 FN 2: Q1 = +Q1 - +0.1
New scaling factor
28 FN 2: Q5 = +Q5 - +1
Decrease counter
29 IF +Q5 NE +0 GOTO LBL 1
Jump to LBL1 if counter does not equal zero
30 L Z+50 R0 FMAX M37
Set-up clearance, eroding OFF
31 END PGM POCKET MM
End of program
0 BEGIN PGM GEOMETR MM
1 CC IX+0 IY+0
Current position as center of circle
2 FN 3: Q11= +Q10 * +2
Calculate diameter
3 L IX+Q10 IY+0 R F M
Traverse contour (block 3 to 5)
4 C IX-Q11 IY+0 DR- R F M
5 L IX+Q10 R F M
6 END PGM GEOMETR MM