Mastering CNC Machining Parts With G76 and G87 Boring Tricks

Mastering CNC Machining Parts With G76 and G87 Boring Tricks

Boring holes with precision and quality in CNC machining can be a bit tricky, but with the right techniques, it becomes much more manageable. Two critical fixed cycles in this process are the G76 and G87 cycles, both of which require the tool to offset from the current hole’s centerline. Let’s dive into how these cycles work, their applications, and some essential programming tips.

online cnc machining services

The G76 Fine Boring Cycle

The G76 cycle is specifically designed for creating holes with high dimensional accuracy and surface finish. What makes this cycle unique is not the boring itself but the way the tool retracts. Once the boring tool reaches the bottom of the hole, it stops at the positioning point, then offsets according to the Q value, and finally retracts to the starting position, returning to its normal position at the end.

For instance, consider a single hole with an XY position and a diameter of 25mm. The G76 cycle for this hole would look like this:

N1 G99 G76 X0 Y0 R2.0 Z-31.0 Q0.25 F125.0

Here, the Q value is 0.25mm, a tiny increment that ensures the hole’s high quality. The actual tool setup and hole support data must be chosen carefully to achieve the desired results.

The G87 Back Boring Cycle

While the G87 cycle has specific applications, it’s not as commonly used as the G76. The G87 cycle operates from the backside of the workpiece, starting the boring operation from the bottom of the hole and moving upwards (in the positive Z direction).

In our example, there’s another hole with a diameter of 27mm, processed using the G87 cycle, as it starts from the “backside” of the workpiece.

Programming Example

To illustrate a complete program, let’s look at Program 02604, which uses four tools: a center drill (T01), a drill bit (T02), a standard boring bar (T03), and a back boring tool (T04).

O2604 (G76 and G87 Boring Cycles)
(T01 Ø15mm Center Drill - 90°)
N1 G21
N2 G17 G40 G80 T01
N3 M06
N4 G90 G54 G0 X0 Y0 S1200 M03 T02
N5 G43 Z10.0 H01 M08
N6 G99 G82 R2.0 Z-5.0 P100 F100.0
N7 G80 Z10.0 M09
N8 G28 Z10.0 M05
N9 M01

(T02 Ø24mm Drill Bit)
N10 T02
N11 M06
N12 G90 G54 G0 X0 Y0 S650 M03 T03
N13 G43 Z10.0 H02 M08
N14 G99 G81 R2.0 Z-39.2 F200.0
N15 G80 Z10.0 M09
N16 G28 Z10.0 M05
N17 M01

(T03 Ø25mm Standard Boring Bar)
N18 T03
N19 M06
N20 G90 G54 G0 X0 Y0 S900 M03 T04
N21 G43 Z10.0 H03 M08
N22 G99 G76 R20 Z-31.0 Q0.3 F125.0
N23 G80 Z10.0 M09
N24 G28 Z10.0 M05
N25 M01

(T04 Ø27mm Back Boring Tool)
N26 T04
N27 M06
N28 G90 G54 G0 X0 Y0 S900 M03 T01
N29 G43 Z10.0 H04 M08
N30 G98 G87 R-32.0 Z-14.0 Q1.3 F125.0
N31 G80 Z10.0 M09
N32 G80 Z10.0 M05
N33 G28 X0 Y0
N34 M30

When using G76 and G87 cycles, it’s crucial to follow all rules and precautions, many of which are related to safety. Here are some critical programming and preparation considerations:

  1. Ensure a Through Hole: Before back boring, make sure the hole is fully drilled through.
  2. First Boring Cycle in the Entire Hole: Write the first boring cycle G76 for the entire hole.
  3. Minimize Q Value for G76: Use the smallest possible Q value (like 0.25mm or 0.01in).
  4. Appropriate Q Value for G87: The Q value for G87 must be more than half the difference between the two diameters, plus a standard minimum Q value.
  5. Tool Body Clearance: Ensure the boring bar’s body doesn’t collide with the hole’s surface or other obstacles.
  6. Correct Tool Setting: Write G87 in G98 mode, never in G99.
  7. Proper Tool Length Offset: Remember, tool length offset is measured from the cutting edge, not the actual tool tip.

With these tips and tricks, mastering CNC machining parts with G76 and G87 boring cycles becomes an achievable task. These cycles can significantly enhance your machining process, ensuring high precision and quality in your work.

Learn more:
Want.Net Technical Team

Want.Net Technical Team

The Want.Net Technical Team has diverse members with extensive education and training in CNC machining. They prioritize precision, efficiency, and innovation to provide high-quality manufacturing solutions globally.

Push Your Order into Production Today!

Table of Contents


You’re one step from the  factory-direct price of part manufacturing services.