CNC Lathe Canned Cycles
A canned cycle on a CNC lathe is a single G-code block that makes the control repeat a fixed sequence of moves, such as roughing a profile or cutting a thread. You describe the shape and the cut parameters once, and the control generates the passes. This guide explains the main turning cycles, how they are built, and what to check before you press cycle start.
- A canned cycle replaces many hand-written moves with one call and its parameters.
- Profile cycles such as G71 and G70 use a shape defined by a start block, a shape block and an end block.
- G76 threading needs the thread lead, depth and angle set correctly before the first pass.
- The control builds the passes, but the operator still owns clearance, clamping and safe first-run checks.
- Cycle behavior follows the control model, so verify the format in the machine's own programming manual.
What a lathe canned cycle does
A canned cycle is a fixed routine inside the CNC control that runs a repeating sequence of moves from a short block of G-code. The programmer supplies the shape, the depth of cut and the feeds, and the control works out the individual passes. This saves programming time and keeps the toolpath consistent between parts.
On a lathe, canned cycles cover the work that repeats on nearly every turned part: roughing a profile, finishing it, facing, drilling and threading. Each cycle has its own G-code number and its own set of address letters. A block such as G71 U_ R_ calls the roughing cycle and passes the depth of cut and retract amount to it.
The cycle does not remove the need to think. You still decide the tool, the spindle speed, the coolant and the stock allowance. The control only follows the rules it was given, so a wrong parameter produces a wrong part just as fast as a hand-written error.
Profile cycles: G71 roughing and G70 finishing
The G71 roughing cycle removes material in steps along a profile that you define in the program. You write a start block, then the shape blocks that describe the finished contour, then an end block that closes the definition. The cycle reads that shape and cuts it down in successive passes.
The G70 finishing cycle then runs along the same defined shape and takes the final cut. G71 leaves a finishing allowance on the profile for G70 to remove, so the two cycles work as a pair. A typical program calls G71 first with the roughing parameters, then calls G70 with the finishing feed.
The shape definition must be clean. Every move between the start and end blocks belongs to the profile, so no rapid moves or tool changes go inside that span. The first block of the shape needs both axes defined, and the profile must climb or fall in a direction the cycle can follow without undercutting itself.
- Call G71 with depth of cut and retract values.
- Write the start block that anchors the profile.
- Describe the finished contour in the shape blocks.
- Close the shape with the end block.
- Call G70 with the finishing feed and speed.
Facing and drilling cycles
The G72 facing cycle works like G71 but removes material in passes across the face of the part rather than along its length. G72 suits a workpiece where the stock sits mainly on the end face and the profile runs mostly in the X direction. The shape is defined the same way, with a start block, contour blocks and an end block.
Drilling on a lathe uses its own set of cycles. G81 drills a hole in one pass, while G83 is a peck drilling cycle that retracts the tool at set intervals to clear chips. A lathe drilling cycle assumes the drill is on center, so the tool offset must be set correctly before the cycle runs.
Peck drilling matters in deep holes because chips pack in the flutes and the drill can seize. The retract amount and the peck depth are cycle parameters, and both depend on the material and the drill diameter. A drilled hole that will be bored or tapped later still needs the right depth and a clean exit.
The G76 threading cycle
The G76 threading cycle cuts a thread in a series of passes that get progressively shallower. The control calculates the depth of each pass from the parameters you give, so the first pass is the heaviest and the last passes remove a thin chip. This distributes the cutting load and reduces the chance of tearing the thread.
The threading cycle needs the thread lead, the thread height, the included angle and the depth of the first pass. The lead is the distance the tool travels per spindle revolution and must match the thread pitch. The included angle sets the infeed direction, so the tool cuts on one flank and the chip flows away cleanly.
Threading is unforgiving of setup error. The tool must be square to the work, the spindle must run at a speed the control can synchronize, and the start point must clear the thread run-out. Check the first thread on scrap or on a test section before cutting a finished part.
Reading a canned cycle block
A canned cycle block carries a G-code, the axis positions and the cycle parameters, each written as a letter followed by a value. The same letter can mean different things in different cycles, so the block must be read against the manual for that control. Fanuc lathe canned cycles, for example, use a fixed address layout that differs from other builders.
Some parameters stay active until you change them, and some are modal within the cycle group. A G70 call cancels the roughing cycle in the same group, so the order of blocks matters. Writing a cycle call without the needed parameters can leave the control using values from an earlier block.
Keep the program readable. One cycle call per line, a comment naming the operation, and the shape blocks indented together make the program easier to check at the machine. A second person reading the code should be able to see where the profile starts and ends without tracing every move.
A simple canned cycle example
Consider a shaft with a stepped diameter, where the stock is larger than the finished profile on both the diameter and the end. The program first faces the end, then calls G71 to rough the step down, leaving a small allowance on the diameter and the face. A G70 call then finishes the profile to size.
The same part might need a drilled hole in the end, cut with G83 in pecks, and a thread on the outer diameter, cut with G76. Each operation gets its own tool, its own offset and its own cycle call with the parameters for that cut. Grouping the operations in the order the part is machined keeps the tool changes to a minimum.
The example is a structure, not a set of numbers. The depth of cut, the feed and the speed depend on the material, the tool and the machine, so they come from the tooling data and the shop's own practice. Copy the structure and set the values for your job.
Checks before the first cycle run
Run the cycle in single block or with the feed override low for the first part. Watch the first approach move and the first pass, then stop and check the distance to the chuck and the clearance at the retract point. A cycle that is correct on paper can still crash if a value was typed into the wrong address.
Verify the tool offsets, the work offset and the stock size before the cycle starts. Confirm the programmed shape matches the drawing, including the corner radii and the undercuts. Check that the chuck jaws clear the tool path and that the part is held securely for the forces the cycle will apply.
Store the proven program with the setup notes for that part. A cycle that ran well on one job can be reused as a starting point for a similar part, which saves time and reduces typing errors. A job that needs an unusual setup or a heavy roughing cut belongs with a trained programmer and a careful prove-out.
Where to find the cycle formats
The exact address layout of each cycle comes from the control builder's programming manual, not from a generic list. Fanuc lathe canned cycles, for example, are documented in the Fanuc programming manual for the specific control model and software version. A PDF reference for your control is the reliable source for parameter order and defaults.
Machine builders also publish their own manuals, and the cycle format can differ between a lathe with a Fanuc control and one with another builder's control. Keep the manual for the machine at the machine. A printed or stored PDF reference saves time when a cycle alarm appears mid-job.
When the manual and the program disagree, the manual wins. Test an unfamiliar cycle on scrap before it touches a finished part. A cycle that behaves differently from the manual may point to a parameter left active from an earlier block, so clear the cycle state and try again.
Questions about lathe canned cycles
What are canned cycles for a CNC lathe?
Canned cycles are built-in G-code routines that repeat a fixed sequence of moves for a job such as roughing, facing, drilling or threading. You call the cycle with one block and supply the parameters, and the control generates the passes. They reduce programming time and keep the toolpath consistent.
What is the difference between G71 and G70?
G71 is the roughing cycle that removes material in steps along a defined profile and leaves a finishing allowance. G70 is the finishing cycle that runs along the same profile and takes the final cut. A program typically calls G71 first, then G70 with the finishing feed.
How does the G76 threading cycle work?
G76 cuts a thread in a series of passes that get shallower as the thread deepens, with the depth of each pass calculated from the parameters you give. You supply the thread lead, thread height, included angle and first pass depth. The tool must be square to the work and the spindle speed must be one the control can synchronize.
Where can I find a canned cycle example or PDF reference?
The reliable source is the programming manual published for your specific control model and software version, together with the machine builder's manual. These documents give the exact address layout, parameter order and defaults. An example from another machine or another control can use a different format.
Can I use the same canned cycle program on another lathe?
Not without checking the format, because the address layout depends on the control builder and model. A program written for one Fanuc control may need changes on a different version or a different builder. Compare the cycle blocks against the target machine's manual before running the program.
Read next
-
VMC Machine G and M Code List PDF Download (Hindi)
-
Writing G-Code for a CNC Mill
-
G94 CNC Code Example
-
CNC Machine Codes List and PDF References
-
CNC Machine Code Simulator
-
What Is G-Code in CNC Machining: Definition and Purpose
-
CNC G-Code and M-Code List and PDF References
-
Language Used in CNC Programming
-
CNC Turning G and M Code List PDF
-
CNC Milling G-Codes and M-Codes