4 "bolt hole circle" oem-cycle example – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 706
01.98
TNC 407/TNC 415/TNC 425
4 "Bolt hole circle" OEM-cycle example
9-9
4 "Bolt hole circle" OEM-cycle example
The following "Bolt hole circle" program is an example of an OEM-cycle. (This cycle has not been
loaded in the control unit!)
The Z-axis acts as the tool axis. The first hole in the circle is at 0o. The OEM-cycle calculates the
angular position of the holes from the number of holes. The drilling positions are approached in
succession in an anti-clockwise direction, and the holes are made automatically with an in-feed.
Before the cycle is called, the tool is held at the safety clearance.
Y
X
Q4
Q3
Q2
0
°
Input parameters:
Q1 = Number of holes
Q2 = Radius of bolt hole circle
Q3 = X co-ordinate of centre of bolt hole circle
Q4 = Y co-ordinate of centre of bolt hole circle
Q5 = Safety clearance for Z axis
(negative input)
Q6 = Hole depth in Z axis (negative input)
Q7 = Drilling feed
"Bolt hole circle" OEM-cycle
0 BEGIN PGM 99999968 MM
1 DLG-CALL 0/1/2/3/4/5/6/7
Dialog block
2 FN1: Q6 = +Q6 + +Q5
Distance traversed in Z
3 FN4: Q50 = +360 DIV + Q1
Angle increment
4 FN0: Q60 = +0
Start angle
5 CC X+Q3 Y+Q4
Centre of bolt hole circle
6 LBL 11
Jump label
7 LP PR +Q2 PA +Q60 R0 FMAX
Approach drilling position
8 L IZ +Q6 FQ7
Drilling with feed
9 L IZ –Q6 FMAX
Clear
10 FN 1: Q60 = +Q60 + +Q50
Next angle
11 FN12: IF +Q60 LT +360 GOTO LBL 11
Last bore?
12 END PGM 99999968 MM
Dialogs for "Bolt hole circle" OEM-cycle
Dialog No.
DIALOG
0
BOLT HOLE CIRCLE
1
NUMBER OF HOLES?
2
RADIUS?
3
X COORDINATE CC?
4
Y COORDINATE CC?
5
SAFETY CLEARANCE?
6
TOTAL HOLE DEPTH?
7
IN-FEED DEPTH?