Close Menu
  • MAKİNELER ve İMALAT
    • Tools & Equipment
    • Computer-Aided Drawing
    • CAD/CAM Education
    • CNC Machine Programming
    • Casting Technologies
    • Electrical & Electronics Technologies
    • Hydraulics & Pneumatics
    • Manufacturing Processes
    • Manufacturing Technologies
    • Occupational Safety
    • Mold & Die Design
    • Solid Modeling
    • Welding Technology
    • Machine Elements
    • Mechanical Trade Drawing
    • Materials Science
    • Automotive & Vehicle Technologies
    • Robotics Technologies
    • Health Technologies
    • Defense & Aerospace Technologies
    • Descriptive Geometry
    • Technical Drawing
    • Software & Hardware Technologies
    • Innovative Manufacturing Methods
  • TEKNOLOJİ ve YAŞAM
    • OTOMOBİLLER ve TAŞIT
      • Vehicle & Engine Knowledge
      • Safe Driving
      • Sürüş Destek Sistemleri
    • Genel Kültür
      • Movies & TV Shows
      • Görsel ve Grafik Sanat
      • Books & Literature
      • Music
      • Sports
      • History
      • History of Technology
    • GÜNDELİK YAŞAM TEKNOLOJİLERİ
    • Hobbies & Entertainment
    • Internet Technologies
    • Health
    • Mobile Technologies
Makine Eğitimi
  • Machines & Manufacturing
    Machine Elements
    Hydraulics & Pneumatics
    Technical Drawing
    Computer-Aided Design & Manufacturing
    Basic Manufacturing Processes
    Manufacturing Processes
    Industry Technologies
    Other Technical Courses
    Motion & Power Transmission
    Simple Machines
    Chains & Sprockets
    Shafts & Journals
    Gears
    Cams
    Couplings
    Belts & Pulleys
    Springs
    Bearings
    Keys
    Fastening Joining
    Retaining Rings
    Screws, Bolts & Nuts
    Cotter Pins
    Flanges
    Welding
    Rivets
    Pins & Bolts
    Washers
    Calculators
    Gear Ratio Calculator
    Spring Constant Calculator
    Belt Pulley Ratio Calculator
    Other Machine Elements
    Slides & Linear Guides
    Brakes
    Flywheels
    Clamps
    Shock Absorbers
    Gaskets & O-Rings
    Seals & Sealing Elements
    Hydraulics
    Introduction to Hydraulics & Principles
    Hydraulic Systems & Applications
    Accumulators
    Filters
    Motors
    Pumps
    Valves
    Pneumatics
    Introduction to Pneumatics & Principles
    Pneumatic Systems & Applications
    Pneumatic Circuit Components
    Valves
    Cylinders
    Silencers
    Motors
    Compressors
    Dryers
    Conditioning Units
    Common Topics & Maintenance
    Hydraulic & Pneumatic Maintenance
    Study Notes, Exams & Tests
    Technical Drawing
    Introduction to Technical Drawing
    Geometric Drawings
    Perspective & Projection
    Orthographic Views
    Dimensioning
    Sectioning
    Assembly & Detail Drawings
    Tolerances
    Surface Finish Symbols
    Mechanical Engineering Drawing
    Screws, Bolts & Nuts
    Pulley Drawings
    Gear Drawings
    Shafts & Journals
    Bearing Drawings
    Pins & Bolts
    Spring Drawings
    Welds in Technical Drawing
    Washers
    Cotter Pins
    Technical Drawing Exercises
    Mechanical Drawing Exercises
    Gear Exercises
    View Extraction Exercises
    Pulley Exercises
    Pin & Bolt Exercises
    Threaded Fastening Exercises
    Descriptive Geometry
    Computer-Aided Drawing
    AutoCAD Drawing Lessons
    Solid Modeling & Animation
    Solid Model Drawing Files
    Solid Model Assembly Examples
    Solid Model Drawing Lessons
    3D CAD Software Reviews
    Solid Modeling Exercises
    CNC Programming
    CAM
    Measurement & Inspection
    Dial Indicators
    Calipers
    Gauges
    Micrometers
    Materials Science
    Steels
    Cast Iron
    Aluminum
    Plastics
    Material Testing & Hardness Measurement
    Occupational Safety
    Workshop Safety
    Safety When Working With Electricity
    Machine Safety Rules
    Hand Operations
    Filing
    Marking
    Cutting Operations
    Reaming
    Tapping
    Threading With a Die
    Drill Bit Sharpening
    Working With Machines
    Basic Turning Operations
    Basic Milling Operations
    Shaper Machine
    Machining
    Turning
    Milling
    Grinding
    Innovative Manufacturing Methods
    EDM (Electrical Discharge Machining)
    Laser Machining
    Waterjet Machining
    3D Printing
    3D Scanners
    Welding
    Rolling
    Casting
    Mold & Die Design
    Mechanical & Hydraulic Presses
    Blanking & Piercing Dies
    Bending Dies
    Drawing Dies
    Plastic Injection Molds
    Extrusion Dies
    Compound Dies
    Progressive Dies
    Blow Molds
    Spinning Dies
    Spray Molds
    Manufacturing of Machine Parts
    Automotive & Vehicle Technologies
    Motor Vehicle Manufacturing
    Raw Material Production
    History of Technology
    Health & Medical Technologies
    Defense & Aerospace
    Robotics Technologies
    Software & Hardware Technologies
    Mechanics - Strength of Materials
    Physics Topics
  • Technology & Life
    Hobbies & Entertainment
    Sports
    Music
    Vehicle & Engine Knowledge
    Vehicle Maintenance & Repair
    Safe Driving
    Driver Assistance Systems
    History
    Movies & TV Shows
    Books & Literature
    Computers & Internet
    Computer Tips
    Software Reviews
    Hardware & Peripherals
    Practical & Safe Internet Use
    Visual & Graphic Art
    Mobile Technologies
    Travel
    Science
    Health
    First Aid Knowledge
    Everyday Technologies
Makine Eğitimi
Home»CNC Machine Programming»CNC Lathe G84 Tapping Cycle Explained
30 August 2026

CNC Lathe G84 Tapping Cycle Explained

CNC lathe G84 tapping cycle

Threaded connections are often used to join machine parts. To install a bolt, a thread of the appropriate size must be cut inside the part. This process is called internal thread cutting or tapping.

  • How Is Tapping Done on a CNC Lathe?
    • Points to Watch During Tapping
  • What Is the G84 Code For? Why Is It Used?
    • The Difference Between G84 and G76
  • G84 Command Structure
    • Meaning of the Parameters
      • Why Is the F Parameter So Important?
  • G84 Example Program
    • Explanation of the Program
  • Questions About the G84 Code
  • Topic Summary
  • Related Questions

On CNC lathes, this process can be done manually, or it can be performed with one of the built-in cycles, the G84 Tapping Cycle.

Thanks to the G84 cycle, the machine automatically advances the tap into the hole, reverses it back at the desired depth, and safely returns it to the starting point.

How Is Tapping Done on a CNC Lathe?

First, a hole is drilled at the appropriate diameter. For example, if an M10x1.5 thread is going to be cut,
The pilot hole diameter should be approximately: Ø8.5 mm.

Then;
↓
The tap approaches the hole.
↓
It advances in sync with the spindle.
↓
It stops at the desired depth.
↓
It reverses direction.
↓
The tap returns to the starting point.

Points to Watch During Tapping

  • The pilot hole must be drilled correctly. A hole that’s too small can cause the tap to break.
  • The correct thread pitch must be selected. The F value must match the thread pitch.
  • Coolant should be used. It extends tool life.
  • The tap should be of good quality. Worn taps produce poor threads.

What Is the G84 Code For? Why Is It Used?

G84 is a tapping cycle used on CNC lathes.

Thanks to this cycle;

  • The tap enters the hole,
  • It forms the thread,
  • It reaches the specified depth,
  • It reverses direction,
  • It withdraws the tap.

These operations are performed automatically.

The G84 cycle;

  • Simplifies program writing.
  • Automatically synchronizes the thread pitch.
  • Reduces the risk of error.
  • Saves time in mass production.
  • Improves internal thread quality.

The Difference Between G84 and G76

G84G76
Uses a tapUses a threading tool
Completed in a single passRequires multiple passes
Suited to small threadsSuited to large threads
Forms a ready-made threadForms a thread by removing chips

Tapping Speed


In the G84 cycle, spindle rotation and axis feed operate in sync; the feed rate equals the thread pitch.

Reverse Rotation


When the tap reaches the bottom of the hole, the spindle automatically reverses direction and the tap exits along the same path.

Rigid Tapping


Modern CNC machines improve synchronization precision with “rigid tapping,” reducing the risk of tap breakage.

G84 Command Structure

General usage:

G84 Z... R... F...

Meaning of the Parameters

CodeFunction
G84Tapping cycle
ZFinal thread depth
RStarting plane
FThread pitch

Why Is the F Parameter So Important?

In tapping, the feed rate must always be equal to the thread pitch. For example:

ThreadF Value
M6x1F1
M8x1.25F1.25
M10x1.5F1.5
M12x1.75F1.75
M16x2F2

If the wrong feed is selected; ❌ The tap can break. ❌ The thread can be ruined.

G84 Example Program

An M10x1.5 internal thread will be cut. The pilot hole has been drilled. Thread length: 20 mm
Program:

O8400
N010 G28 U0 W0
N020 G54
N030 T0505
N040 G97 S250 M03 M08
N050 G00 X0 Z2
N060 G84 Z-20 R2 F1.5
N070 G28 U0 W0 M05 M09
N080 M30

Explanation of the Program

N10 G28 U0 W0  Explanation:Goes to the reference point.
N20 G54        Explanation:The workpiece zero is selected.
N30 T0505      Explanation:The tap tool is selected.
N40 G97 S250 M03 M08

Explanation:
G97: Constant surface speed off (constant RPM).
S250: 250 rpm.
M03: Clockwise rotation.
M08: Coolant on.

N50 G00 X0 Z2   Explanation: The tool moves to the starting point.
N60 G84 Z-20 R2 F1.5

Explanation:
Z-20: Taps down to a depth of 20 mm.
R2: Starting plane.
F1.5: Thread pitch.

The machine automatically;

  • Moves forward,
  • Cuts the thread,
  • Reverses direction,
  • Withdraws.
N070 G28 U0 W0 M05 M09 

Explanation:
The tool returns to the reference point.
The spindle and coolant turn off.

N080 M30     Explanation: The program ends.

Questions About the G84 Code

Question: What is the main purpose of the G84 cycle?
Answer: To automatically perform internal thread cutting using a tap.

Question: What does the F parameter represent in the G84 command?
Answer: It represents the pitch of the thread to be cut.

Question: Why is a pilot hole drilled before tapping?
Answer: To allow the tap to work smoothly and prevent it from breaking.

Question: What’s the most important difference between G84 and G76?
Answer: G84 uses a tap tool, while G76 cuts a thread by removing chips with a threading tool.

Question: Why is the G84 cycle preferred?
Answer:
It’s preferred because it simplifies programming, improves thread quality, and saves time in mass production.

Topic Summary

The G84 Tapping Cycle is a built-in cycle used on CNC lathes to cut internal threads. In this cycle, the tap moves into the hole in sync with the spindle, reverses back at the desired depth, and the operation is safely completed. The G84 cycle is controlled with the Z (thread length), R (starting plane), and F (thread pitch) parameters. It’s especially preferred for fast, reliable, and high-quality internal thread cutting in mass production.

Related Questions

If the hole is drilled too small, the tap has to remove too much material, and the risk of breakage increases. When the hole is drilled at the correct diameter, the tap only forms the thread shape without being overloaded.

The tap advances in sync with the spindle; if the F value differs from the thread pitch, the tap’s motion and the workpiece’s rotation become mismatched. This mismatch ruins the threads or breaks the tap.

Related Posts

CNC G code list beginner guide CNC G Code List and Meanings (Beginner’s Guide) CNC Facing Cycle CNC Facing Cycle – G94-G72-G70 G74 CNC drilling code cycle diagram G74 CNC Peck Drilling Cycle Explained Dünyanın en iyi kesici takımları videosu Video: The World’s Best Cutting Tools The structure of CNC milling machines The Structure of CNC Milling Machines G01 Linear Motion with Cutting Cnc code G01 Code. Linear Motion with Cutting G75 CNC grooving cycle diagram G75 CNC Grooving Cycle Code Explained CNC Lathe Setup Instructions CNC Lathe Setup Instructions
Share. Facebook Twitter WhatsApp Tumblr Email Telegram Copy Link

Leave A Reply Cancel Reply

Why Is Kenya So Successful at Long-Distance Running?
When Should the Timing Belt Be Replaced
  • Contact
  • Terms of Service
  • Privacy & Cookie Policy

Type above and press Enter to search. Press Esc to cancel.