Skip to content

G74 and G75: pecking and grooving cycles on the lathe

On a Fanuc or Haas lathe, G74 and G75 are pecking cycles: G74 pecks along the Z axis, for deep face drilling or for grooving in the face, and G75 pecks along the X axis, for grooving and parting off on the diameter. Both are written in two blocks: a short one that carries only R, for the retract between pecks, and another with the final dimensions and with P and Q, which are the increments of each step. Watch out, because on a Fanuc mill the same number G74 is the left-hand tapping cycle, which has nothing to do with this.

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.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Lathe cycles
Machine
Turning, Mill-turn
Risk
High
Example
G74 R... / G75 X... Z... P... Q... F...

Syntax by control

Fanuc (lathe), face drilling
G74 R1. / G74 Z-45. Q6000 F0.12
The first block sets the retract between pecks and the second the final dimension and the peck. On most Fanuc controls, Q goes with no decimal point and in microns: Q6000 is 6 mm. Check it on your machine before you run the cycle.
Fanuc (lathe), outside grooving
G75 R0.5 / G75 X30. Z-20. P2000 Q3000 F0.08
P is the peck in X and Q the shift in Z between grooves, both usually in microns and in radius, not in diameter. With this format you open a groove wider than the insert by chaining passes.
Haas (lathe)
G74 R... / G74 X... Z... K... I... F... and G75 R... / G75 X... Z... I... K... F...
Haas accepts the Fanuc format and also one of its own with I and K instead of P and Q, in which the values are in millimeters with a decimal point. They are two different formats and they do not mix: check which one your post processor uses.
Fanuc / Haas (milling)
G74 X... Y... Z... R... F...
Warning: on a mill, G74 is the left-hand tapping cycle (reverse tapping). It shares nothing with the lathe G74 except the number. G75 does not exist in milling.
Siemens 840D / 828D
CYCLE83(...) / CYCLE930(...) / CYCLE92(...)
Siemens has no G74/G75: deep drilling is CYCLE83, grooving is CYCLE930 and parting off is CYCLE92. When you port a program you have to rebuild the operation, not translate the block.

Address letters used with it

LetterWhat it setsUnit
R (first block)Retract distance between pecks. It is the only thing the short block carries, and it is what lets you break the chip without coming all the way out.mm in radius
X / Z (second block)Final dimension of the cycle. In G74 Z governs, which is the bottom of the hole or of the face groove; in G75 X governs, which is the groove bottom diameter.mm, X in diameter unless the machine is set to radius
PIncrement of each peck on the X axis, in radius. In the classic Fanuc format it goes with no decimal point and in microns: P2000 is 2 mm in radius.microns in radius (Fanuc format)
QIncrement on the Z axis: peck depth in G74 and shift between successive grooves in G75. Same format as P.microns (Fanuc format)
R (second block)Relief at the bottom of the stroke, used to move the insert off the wall before retracting. It is optional and its exact meaning changes between controls.mm in radius
FCycle feed, normally in millimeters per revolution because lathes run in G99. On a Fanuc lathe it is G99; on a Haas lathe, G95 is rigid tapping.mm/rev with G99

Worked example

Groove 6 mm wide and 5 mm deep in the outside diameter of a Ø50 steel shaft, cut with a 3 mm wide grooving insert. Since the groove is wider than the insert, the G75 cycle chains three passes shifted in Z (Z-25, Z-27.5 and Z-28). RPM is fixed with G97 because in grooving, constant surface speed would send the RPM up as the diameter drops.

O0175 (RANURA DE 6 MM CON G75)
( Program header. )
G21 G18 G40
( Millimeters, the lathe's XZ plane and no tool nose radius compensation. )
G50 S2500
( RPM limit, for safety with the part held overhanging. )
T0505 (PLAQUITA DE RANURAR 3 MM)
( Grooving tool with its offset, number 5. )
G97 S850 M03
( Fixed RPM and spindle on. )
G00 X52. Z-25. M08
( Rapid approach to a 52 mm diameter, two outside the part, and to the axial position of the first groove wall. )
G99
( Feed in millimeters per revolution, which is how grooving insert tables are given. )
G75 R0.5
( First block of the cycle: between pecks the insert retracts half a millimeter in radius, just enough to break the chip. )
G75 X40. Z-28. P1500 Q2500 F0.08
( Second block. Goes down to Ø40, which is five millimeters of depth in radius, pecking one and a half millimeters in radius at a time (P1500). Between passes it shifts 2.5 mm in Z (Q2500) until it reaches Z-28, so the three passes of the 3 mm insert (Z-25, Z-27.5 and Z-28) cover the 6 mm width. )
(SI TU CONTROL ESPERA P Y Q CON PUNTO DECIMAL, ESTO SERIA P1.5 Q2.5)
( The P and Q format is the difference that causes the most trouble when moving a program from one machine to another: a P1500 read in millimeters would be a peck of one and a half millimeters... or one and a half meters. )
G00 X200. Z100. M09
( Retract to the tool change position and coolant off. )
M05
( Spindle stop. )
M30
( End of program. )
Open the simulator to check the example

Practical keys to using G74/G75 in the workshop

The two-block format and why it exists

Both cycles are written in two consecutive blocks with the same G code. The first carries only R and defines how far the tool retracts between pecks. The second carries the final dimensions, the P and Q increments and the feed. The historical reason is that R in the second block already means something else, the relief at the bottom, and Fanuc needed to tell them apart. The practical consequence is that if you drop the first block, the cycle runs with whatever retract was stored from before, which may be zero, and the insert works without breaking the chip.

P and Q: the format that breaks programs

In the classic Fanuc format, P and Q are written with no decimal point and read in microns, so Q6000 is six millimeters. Many Haas controls also accept I and K with a decimal point and in millimeters. They are two incompatible conventions and the same number means very different things in each. On top of that, P is always measured in radius even when the program is in diameter, so a P1500 is one and a half millimeters of radial depth, or three in diameter. Before you run one of these cycles from another machine, check both things in the control manual.

Grooving, parting off and when not to use the cycle

G75 works both for opening a groove wider than the insert and for parting off, leaving the final X close to zero. In parting off, pecking is almost mandatory past a certain diameter, because the chip jams in the groove and breaks the insert. What the cycle does not do is compensate for the insert width: the dimension you program is that of the offset's reference edge, so the real groove width comes from the offset and from where you touch the tool off. For tight-tolerance grooves, many shops prefer to program the passes by hand.

Mistakes that cost you a part (or a tool)

  • Writing the second block without the first: the cycle starts with whatever retract was stored and the chip does not break.
  • Getting the P and Q format wrong: a value meant in microns read in millimeters, or the other way around, turns a small peck into a huge move or into one that does not advance.
  • Forgetting that P is measured in radius even when the program is in diameter: the real depth is double or half what you expected.
  • Copying a G74 from a mill to a lathe, or the other way around: in milling G74 is the left-hand tapping cycle and has nothing to do with lathe pecking.
  • Programming the cycle with G96 active: as the tool nears the center in a parting operation, constant surface speed takes the RPM to the limit and the part or the insert pays for it.
  • Assuming the programmed dimension is the edge of the groove: what gets positioned is the offset's reference edge, and the insert width is left out of the cycle.
  • Running the cycle with the part overhanging and no tailstock to part off large diameters, where pecking adds a lot of time with the part vibrating.

Frequently asked questions

Are G74 and G75 the same on a lathe and a mill?

No. On a lathe they are pecking cycles in Z and in X. On a mill, G74 is the left-hand tapping cycle and G75 is not even in the standard list. They share the number and nothing else, so you never carry them from one machine to the other.

Are P and Q in millimeters or in microns?

In the classic Fanuc format they go with no decimal point and in microns: Q6000 is six millimeters. Some controls, and in particular Haas with its I and K format, expect millimeters with a decimal point. It is the first thing to check in the control manual.

What is the standalone G74 R block for?

It sets the distance the tool retracts between pecks, which is what breaks the chip. It goes in a separate block because in the main block the letter R is already used for the relief at the bottom of the stroke.

Can I part off with G75?

Yes, it is one of its common uses: you program the final X close to the center and the cycle chops the cut into pecks, which is what keeps the chip from jamming in the groove. You should do it with G97, not with constant surface speed.

What do I use on Siemens instead of G74 and G75?

Its own cycles: CYCLE83 for deep drilling, CYCLE930 for grooving and CYCLE92 for parting off. There is no block-by-block translation; you have to define the operation again with the parameters of the Siemens cycle.

Related codes

G73G83G96/G97G94/G95G92 lathe

Other codes in Lathe cycles

See the full list of G and M codes

Related apps