Back to GSM Code List

G83: deep hole drilling cycle with pecking

G83 drills in several pecks: it goes down Q millimeters at feed, pulls out in rapid to the R plane to drop the chips, rapids back in to just short of where it stopped and carries on, until it reaches the Z bottom. It is the cycle for holes deeper than three or four diameters and for materials that make stringy chips. Q is always positive and incremental: it is the depth of each peck, not a coordinate.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

See the full data sheet for the family

Syntax by control

Fanuc (milling)

G99 G83 X30. Y20. Z-60. R2. Q8. F110

The gap the control leaves when it comes back in (the rapid approach distance before it picks the cut up again) is a machine parameter, not something you program. The G73 variant does the same thing but with a short retract inside the hole.

Haas (milling)

G99 G83 X30. Y20. Z-60. R2. Q8. F110

Haas also accepts I (first peck), J (how much each peck is reduced) and K (minimum peck) instead of Q, to shorten the peck as the hole gets deeper. Setting 52 decides whether the retract reaches the R plane or stops above it.

Siemens 840D / 828D

CYCLE83(RTP, RFP, SDIS, DP, DPR, FDEP, FDPR, DAM, DTB, DTS, FRF, VARI)

The CYCLE83 parameters are positional. The one that decides the behavior is VARI: with chip breaking the retract is short (the equivalent of G73) and with chip removal the drill comes out of the hole (the equivalent of G83).

Heidenhain TNC (Klartext)

CYCL DEF 203 TALADRADO UNIVERSAL

In cycle 203, Q202 is the plunging depth of each peck and Q212 is how much it is reduced on each one. Cycle 205 adds chip breaking, a sunk starting point and a relief, for very deep holes.

Address letters used with it

LetterWhat it setsUnit
X YHole position. Every new block with an X or a Y repeats the whole cycle, pecks included.mm / in
ZHole bottom: absolute dimension under G90, distance from the R plane under G91.mm / in
RReference plane. It matters twice as much in G83 as in G81, because the drill comes up to it on every peck: a high R multiplies cycle time.mm / in
QDepth of each peck. Always positive and incremental; it is not a coordinate and it is not the total depth.mm / in
FDrilling feedrate. Modal: leave it out and the last F in the program is inherited.mm/min under G94
K / LCycle repeats in incremental mode (K on Fanuc, L on Haas) for rows of evenly spaced holes.integer

Worked example

Two 10 mm holes 60 mm deep, six diameters, in carbon steel with an HSS-Co drill. It pecks 8 mm at a time so the chips clear; with a cycle that does not peck at that depth the drill packs up. The points were already spotted with a spot drill in the previous operation.

G91 G28 Z0.
( Z to the reference point in incremental before the change. )
T7 M06
( 10 mm HSS-Co drill. )
G90 G54 G00 X30. Y20.
( Absolute, work offset and rapid over the first hole. )
G43 H07 Z50. M03 S900
( T7 length offset and spindle at 900 rpm, around 28 m/min of cutting speed on 10 mm. )
M08
( Coolant on. At six diameters it is not optional. )
G99 G83 Z-60. R2. Q8. F110
( Eight pecks: 8 mm down at feed, out in rapid to Z2, back in and repeat down to Z-60. Q8 is incremental and positive; the 110 mm/min feed works out at about 0.06 mm per tooth. )
X90.
( Second hole: the whole cycle repeats with the same pecks. )
G80 G00 Z50. M09
( Cancels the cycle before any rapid move and turns the coolant off. )
G91 G28 Z0. M05
( Safe retract and spindle stop. )
G90 M30
( Back to absolute and end. )
Open the simulator to check the example

Practical keys to using G83 in the workshop

When you need G83 instead of G81

As soon as the hole goes past three or four diameters the chips stop coming out on their own: they wrap up in the drill flutes, rub against the wall, and torque climbs until the drill packs up or snaps. G83 stops that because it pulls the drill out of the hole on every peck and the chips fall off. You also need it before that depth in materials that make long, gummy chips, such as low carbon steels or soft aluminum, and any time there is no through coolant pushing the chips out.

How you pick Q and how it works with R

A reasonable starting point is a Q of one diameter for the first pecks and half a diameter from four or five diameters deep, because the deeper the drill is the further it has to drag the chips. On Fanuc the Q is a single value for the whole hole, so you pick the value for the worst stretch; on Haas you can step it down with I, J and K. Keep the R plane low, 2 or 3 mm, because the drill comes up to it on every peck and every extra millimeter is paid for times the number of pecks.

What the control does and what depends on the machine

The control chains the pecks and, coming back in, approaches in rapid leaving a small gap before it picks the cut up again. That gap is a machine parameter and is not programmed, so you cannot take the exact value for granted. On Haas there is also a setting that decides whether the retract reaches the R plane or stops above the last peck. What you do control is the number of pecks, which comes out of dividing the depth by Q, and with it the cycle time and the life of the drill.

Mistakes that cost you a part (or a tool)

  • Writing Q as if it were a coordinate or with a negative sign: Q is the depth of each peck, always positive and incremental. A negative Q alarms on most controls.
  • Leaving Q too big in a deep hole: the chips never clear, torque climbs and the drill packs up in the last third of the hole, exactly where you cannot save it.
  • Mixing up G83 and G73: G73 only breaks the chip with a short retract inside the hole, it does not clear it. Past four or five diameters, or in gummy material, you need G83.
  • Setting the R plane very high: the drill comes up to R on each of the eight or ten pecks, so an R of 50 mm blows the cycle time up and buys no safety.
  • Forgetting the G80 before the next rapid move: the cycle is still active and the first block with an X or a Y drills another 60 mm hole where it should not.
  • Switching to G91 without recalculating: in incremental the Z is measured from the R plane and the R from the current position, and the hole comes out at a different depth.
  • Drilling six diameters deep with no spot and no coolant: the drill walks on entry and the hole comes out bellmouthed and crooked.

Frequently Asked Questions (FAQ)

Is Q the total depth or the depth of each peck?

Each peck, and always positive and incremental. The total depth is the Z. With Z-60, R2 and Q8 the control makes eight 8 mm pecks down to the Z-60 coordinate.

When do I use G83 and when G73?

G73 backs off only a few tenths or millimeters inside the hole: it breaks the chip but does not clear it, and it is fast. G83 pulls the drill out to the R plane on every peck: it is slower but it is the only thing that works past four or five diameters and in long chipping material.

What Q value do I use?

As a starting point, one drill diameter for the first pecks and half a diameter from four or five diameters deep. If the hole gets long and the machine starts to sound different or the spindle load climbs, drop Q before you break the drill.

Does G83 pull the drill out of the hole on every peck?

On Fanuc, yes: the retract goes all the way to the R plane. On Haas it depends on Setting 52, which can leave the retract above the last peck instead of clearing the hole. If the detail matters to you, check your machine manual before you rely on it.

Can you peck when tapping too?

Yes, but with other codes: some controls accept Q inside the G84 rigid tapping cycle, and Fanuc has G84.2 and G84.3 for peck tapping. It depends on the machine option, so check it before you run it with a tap down the hole.

Related codes

Related tools