Application and Skills of CNC Lathe Cycle Orders
A working guide to canned cycles on a turning center. It covers how G71, G70, G72, G74 and G76 are built, how to set a safe start point, and how to tell when a cycle order saves cycle time and when hand-written passes are faster. Written for programmers and process engineers who already read G-code.

What a cycle order actually does
A canned cycle is a compressed description of a tool path plus a set of rules the control applies to it.
How a cycle order is structured
A cycle order is not a shortcut for lazy programming. It is a block of G-code that describes a family of passes, and the control expands it into a tool path using rules you set with addresses such as U, W, R, P, Q and F. Any Fanuc-style turning control reads G71 as a roughing pass along the Z axis and G72 as a roughing pass across X for face or radial profiles. G73 repeats a closed profile for castings and forgings, G74 pecks in Z for drilling and grooving, and G76 cuts a thread with a defined infeed pattern. G70 follows any of these to finish the profile to size.
The addresses carry the real information. U and W hold the radial and axial stock left for finishing. R sets the depth of each cut or the retract amount, depending on the cycle. P and Q mark the first and last block of the profile you want repeated, so the shape lives in one place and the roughing strategy sits above it. F sets feed in mm per revolution. Change one number and the whole pass structure changes. That is the point of a cycle order, and it is also where most crashes come from.
Profile definition comes first. Write the finished contour as a normal sequence of G01, G02 and G03 moves with the correct tool nose radius compensation, then bracket it with P and Q. The control reads that block range as geometry, not as motion. Numbers inside the bracket have to be monotonic in the direction of cutting. Put a retract, a dwell or a tool change inside the range and the cycle will either alarm out or cut something you did not draw.
Monotonic means every X value in a G71 profile either never decreases or never increases. A part with an undercut, a groove or a back-facing shoulder breaks that rule. Controls differ here. Some allow a type II cycle that handles concave profiles; older ones simply fault. Know which control you are posting to before you assume the cycle will take the shape.
- 1U / WStock left on X and Z for the finishing pass.
- 2RDepth of cut per pass, or retract distance, by cycle type.
- 3P / QFirst and last block numbers of the profile.
- 4FFeed per revolution, applied to every pass the cycle generates.
Safe start point and the approach block
Every cycle needs a start point outside the material. The tool rapids there first, then the cycle begins. Get that position wrong and the first rapid move goes through the part or into the chuck. Two things decide it: the largest diameter in the profile plus clearance, and a Z position clear of the face plus clearance.
A clearance of 2 mm on X and 2 mm on Z is common in aluminum and mild steel. Harder or tougher material earns more room, because chip nesting and tool pressure both grow. Titanium and Inconel punish a tight start point more than aluminum does.
The approach block should also set the spindle speed, the tool offset and the coolant, and it should come after a G96 or G97 that matches the operation. If constant surface speed is active, the control will raise rpm as the tool moves toward center. Cap it with G50 or G92, or the spindle will run past its limit on a small diameter.
A single-block dry run with the tool offset shifted 50 mm in X is still the cheapest test available. It costs a few minutes. A crash on a mill-turn center costs far more.
Common turning cycles and where they fit
Address letters follow Fanuc-style two-block syntax; other controls may differ.
| Cycle | What it does | Good fit | Watch out for |
|---|---|---|---|
| G71 | Roughs a profile along Z | Shafts, stepped diameters, long tapers | Profile must be monotonic in X |
| G72 | Roughs a profile across X | Face plates, radial bosses, wide flanges | Depth per pass grows fast on large faces |
| G73 | Repeats a closed profile | Castings, forgings, near-net blanks | Only pays off when stock follows the shape |
| G74 | Pecks in Z | Deep drilling, face grooving, chip breaking | Retract value sets chip clearance |
| G76 | Threads with a defined infeed | External and internal threads, metric and inch | Infeed angle and depth change thread form |
| G70 | Finishes the profile left by roughing | After G71, G72 or G73 | Needs its own feed and speed block |
When a cycle order earns its place
A cycle order wins when the profile is long, the stock is uniform, and the shape is monotonic. A stepped shaft turned from bar stock is the textbook case. One G71 block replaces thirty hand-written passes, and changing the depth of cut is a single edit. The programmer's time drops, and the risk of a missed pass drops with it.
A cycle order loses when the part departs from those conditions. Short profiles with two or three shoulders are faster to write by hand, and the operator can see exactly what the tool will do. Deep pockets and undercuts usually need a grooving tool and separate passes, not a profile cycle.
The same logic applies to production volume. On a one-off prototype, the programming time is the cycle time. On a 10,000-part run it disappears. At GreatLight we machine both ends of that range, from one prototype to 10,000+ part runs, so the choice between a canned cycle and a hand-written path gets made per job rather than per shop policy.
Tolerance drives the decision too. Holding ±0.005 mm on a turned diameter means the finishing pass has to be predictable, and G70 gives you that only if the roughing cycle left consistent stock. If the roughing pass leaves 0.2 mm in one place and 0.6 mm in another, the finishing insert will deflect differently along the profile and the diameter will drift.
Threading and grooving cycles in practice
G76 is the cycle most often set up wrong. It takes two blocks: the first sets the thread height, the first cut depth and the infeed angle; the second sets the final depth, the taper amount and the lead. A 60° infeed splits the load across both flanks and suits most steels. A 29° or 30° infeed cuts on one flank, which reduces chatter on long or slender threads.
The infeed angle is not cosmetic. It changes the chip shape and the cutting force direction. On a thread with a small pitch and a rigid setup, the difference is minor. On a deep thread in stainless or Inconel, it decides whether the insert survives the pass.
Grooving with G74 handles face grooves and chip breaking. The peck retract has to clear the chip, not just the cut. In 316L and other gummy stainless grades, a retract that is too small packs the groove and snaps the insert.
Turning titanium and Inconel changes the whole picture. Both work-harden, so a cycle that rubs instead of cutting will harden the surface and destroy the next pass. Feed per revolution has to stay above the minimum cutting depth for the insert geometry. A canned cycle makes that harder to control because the control, not the programmer, sets each pass depth.
Questions engineers ask about lathe cycles
Can G71 handle a part with an undercut or internal groove?
Not with a standard type I cycle. Type I expects the X values in the profile to move in one direction only, so a groove or a back-facing shoulder breaks the rule.
Some controls offer a type II G71 that accepts concave profiles. Check the control manual before posting. Otherwise cut the groove as a separate operation with a grooving tool.
How much stock should the roughing cycle leave for the finishing pass?
For most steels and aluminum, 0.2–0.4 mm on diameter is a reasonable starting point for a turning insert.
On slender parts or thin-wall tubes, drop it. Deflection grows with the radial depth of cut, and the finishing pass will follow the deflection rather than the program.
Does a canned cycle change the surface finish?
It can, indirectly. The finishing pass sees whatever stock the roughing cycle left, and if that varies along the profile, the finish varies with it.
A controlled finish usually lands between Ra 0.8–1.6 μm on turned surfaces. Tighter finishes need a separate finishing strategy, not a deeper cut.
Is a cycle order portable between controls?
Partly. The G-code numbers are broadly similar across Fanuc-style controls, but the address letters and the exact block format differ between Fanuc, Mitsubishi, Siemens and Haas.
A program written for one control will often need its cycle blocks rewritten, even when the geometry section transfers without change.
When is hand-written G-code faster than a cycle order?
Short profiles with two or three shoulders, one-off parts, and any shape the cycle cannot describe.
The break-even is usually around four or five passes. Below that, writing the passes directly is quicker and easier to verify at the machine.
What should be checked before the first run of a new cycle?
Start point clearance on X and Z, the spindle speed cap when constant surface speed is active, the tool offset, and the profile block range between P and Q.
A dry run with the offset shifted clear of the part is still the fastest way to catch a bad start point.
Send us the drawing and the material
We quote and return a free DFM analysis within 12 hours, then turn the part on one of 127 CNC machines in Dongguan and Singapore.
12-hour quote100% inspectionNo minimum order quantityNDA on request