Circle Milling A Bolt Hole Pattern
There are times when you want to circle mill the holes on a bolt pattern. Possibly you want to rough the holes prior to finish boring.
Share
Hwacheon Machinery America, Inc.
Featured Content
View MoreThere are times when you want to circle mill the holes on a bolt pattern. Possibly you want to rough the holes prior to finish boring. Here is a custom macro program (actually a combination of three custom macros) that allows you to do so.
First let’s look at an example main program and explain the input variables:
O0008 (MAIN PROGRAM)
N005 G54 G90 S800 M03 T02 (SELECT COORDINATE SYSTEM, ABSOLUTE MODE, START SPINDLE, GET NEXT TOOL READY)
N010 G00 X3.0 Y2.5 (RAPID TO CENTER OF BOLT HOLE PATTERN)
N015 G43 H01 Z.1 (INSTATE TOOL LENGTH COMPENSATION, RAPID UP TO WORKPIECE)
N020 G65 P1000 D1.0 A.375 T0.375 H1.0 (DEFINE CIRCLE MILL
VARIABLES)
N025 G65 P1001 X3.0 Y2.5 Z0 R1.5 D0.75 A45.0 H8.0 F5.0 (MACHINE ENTIRE BOLT HOLE PATTERN WITH DRILLING CYCLE)
N030 G91 G28 Z0 M19
N035 M30
Notice that there are two G65 commands in this program. The first (N020) defines the circle milling operation:
D: Diameter to mill
A: Approach radius
T: Tool diameter
H: Whether there is a hole currently in the center (from drilling)—this controls whether the end mill will rapid or feed to the hole bottom (H1.0: hole, H0: no hole).
The second G65 command (N025) defines the bolt pattern and does the machining.
X, Y: Bolt hole center
Z: Surface into which to mill
R: Radius of bolt pattern
D: Depth to mill
A: Angular distance between the holes
H: Number of holes
F: Feed rate for milling
There are actually three custom macros involved with this application:
O1000: Stores circle milling variable into common variables
O1001: Bolt pattern custom macro
O1002: Circle milling custom macro
O1000
#120 = #7 (DIAMETER OF MILLED HOLE)
#121 = #1 (APPROACH RADIUS)
#122 = #20 (TOOL DIAMETER)
#123 = #11 (HOLE OR NO HOLE)
M99
O1001 (BOLT CIRCLE MILLING CUSTOM MACRO)
#101=1 (INITIALIZE COUNTER)
#102=#1 (INITIALIZE CURRENT ANGLE TO A)
#103=360 / #11 (CONSTANT FOR INCREMENTAL ANGULAR DISTANCE BETWEEN HOLES)
#104=#26 + 0.1 (CONSTANT FOR RAPID APPROACH PLANE)
#105=#26 - #7 (CONSTANT FOR Z BOTTOM POSITION OF HOLE)
N1 IF [#101 GT #11] GOTO 99 (TEST IF LOOP IS FINISHED)
#110=#24 + COS[#102] * #18
(CALCULATE X POSITION FOR CURRENT HOLE BASED ON CURRENT ANGLE)
#111=#25 + SIN[#102] * #18
(CALCULATE Y POSITION FOR CURRENT HOLE BASED ON CURRENT ANGLE)
G65 P1002 X#110 Y#111 D#120 R#104 Z#105 A#121 T#122 F#9 H#123 (Mill circle)
#101=#101 + 1 (STEP COUNTER)
#102=#102 + #103 (STEP CURRENT ANGLE)
GOTO 1 (GO BACK TO TEST AT LOOP BEGINNING)
N99 M99 (END OF CUSTOM MACRO)
O1002 (Circle milling custom macro)
(APPROACH RADIUS MUST BE BIGGER THAN HALF OF TOOL DIA)
IF [#121 GT [#122/2 +0.1]] GOTO 2
#3000=101(APPROACH RADIUS TOO SMALL)
(RAPID TO APPROACH POSITION)
N2 G00 X#24 Y#25
Z#104
(TEST FOR HOLE IN CENTER)
IF[#123 EQ 0] GOTO 5
G00 Z#26 F#9
GOTO 6
N5 G01 Z#26 F[#9 * 5]
(MOTIONS TO MILL CIRCLE)
N6 G01 Y[#25 + #7/2 - #1] F#9
X[#24 - #1 + #20/2]
G02 X#24 Y[#25 + #7/2 - #20/2] R[#1 - #20/2]
J-[#7/2 - #20/2]
X[#24 + #1 - #20/2] Y[#25 + #7/2 -#1] R[#1 - #20/2]
G00 Z#104
X#24 Y#25
GOTO 99
N95 #3000=100 (INPUT VALUE MISSING)
N99 M99 (End of custom macro)
Related Content
Finding the Right Tools for a Turning Shop
Xcelicut is a startup shop that has grown thanks to the right machines, cutting tools, grants and other resources.
Read MoreWalter Offers New Solid-Carbide Taps for Blind-Hole Machining
Walter’s TC388 Supreme and TC389 Supreme feature patent-pending cutting geometries that fully shear off the root of the chip when reversing, thus minimizing torque peaks.
Read MoreCustom PCD Tools Extend Shop’s Tool Life Upward of Ten Times
Adopting PCD tooling has extended FT Precision’s tool life from days to months — and the test drill is still going strong.
Read MoreAllied Machine Drill System Provides Enhanced Chip Evacuation
Eastec 2023: The T-A Pro drill body incorporates straight flutes designed for optimized coolant flow and rigidity.
Read MoreRead Next
Registration Now Open for the Precision Machining Technology Show (PMTS) 2025
The precision machining industry’s premier event returns to Cleveland, OH, April 1-3.
Read More5 Rules of Thumb for Buying CNC Machine Tools
Use these tips to carefully plan your machine tool purchases and to avoid regretting your decision later.
Read MoreBuilding Out a Foundation for Student Machinists
Autodesk and Haas have teamed up to produce an introductory course for students that covers the basics of CAD, CAM and CNC while providing them with a portfolio part.
Read More