Bolt hole circle" user cycle example, 4 "bolt hole circle" user cycle example – HEIDENHAIN TNC 306 Technical Manual User Manual
Page 465
9-10
TNC 406/TNC 306
4 "Bolt hole circle" user cycle example
3/97
4 "Bolt hole circle" user cycle example
The following bolt hole circle program is an example of a user cycle. (This cycle has not been loaded
into the control.)
The Z-axis acts as the tool axis. The first cavity in the circle is at 0°. The cycle calculates the angular
positions of the cavities and of the C axis from the number of cavities. The cavities are approached
in succession in counter-clockwise direction and automatically eroded. Before the cycle is called, the
electrode is held at the safety clearance.
Y
X
Q4
Q3
Q2
0
°
Input parameters:
Q1 = Number of cavities
Q2 = Radius of bolt hole circle
Q3 = X coordinate of center of bolt hole circle
Q4 = Y coordinate of center of bolt hole circle
Q5 = Safety clearance for Z axis
(enter as negative)
Q6 = Cavity depth in Z axis (enter as negative)
"Bolt hole circle" user cycle
0 BEGIN 99999968 MM
1 DLG-CALL 0/1/2/3/4/5/6
Dialog block
2 FN1: Q6 = +Q6 + +Q5
Distance traversed in Z
3 FN4: Q50 = +360 DIV + Q1
Angle increment
4 FN0: Q60 = +0
Starting angle
5 CC X+Q3 Y+Q4
Center of bolt hole circle
6 LBL 11
Jump label
7 LP PR +Q2 PA +Q60 C+Q60 R0 FMAX
Approach cavity, position C axis
8 L IZ +Q6 M36
Erode cavity
9 L IZ –Q6 FMAX M37
Retract, generator off
10 FN 1: Q60 = +Q60 + +Q50
Next angle
11 FN12: IF +Q60 LT +360 GOTO LBL 11
Last cavity?
12 END PGM 99999968 MM
Dialogs for "Bolt hole circle" user cycle
Dialog no.
DIALOGUE
0
BOLT HOLE CIRCLE
1
NUMBER OF CAVITIES?
2
RADIUS?
3
X COORDINATE CC?
4
Y COORDINATE CC?
5
SAFETY CLEARANCE?
6
TOTAL CAVITY DEPTH?