G34: Variable-lead threading
Threading with progressive pitch variation on the lathe depending on the control.
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.
- Family
- Lathe cycles
- Machine
- Turning, Mill-turn
- Risk
- High
- Example
- G34 Z-30 F1.5 K0.02
G34 Z-30 F1.5 K0.02Parameters
- F
- Paso inicial de la rosca. · mm/rev
- K
- Variación del paso por vuelta (positiva crece, negativa decrece). · mm/vuelta²
- X Z
- Punto final de la pasada. · mm
Machine: Turning, Mill-turnRisk: High
Fanuc · Haas
- Fanuc: lathe code; requires spindle synchronization and correct formatting.
- Haas: Don't assume support; look for equivalent cycle/function in Haas manual.
Other codes in Lathe cycles
Frequently Asked Questions (FAQ)
What does G34 mean in a CNC program?
Threading with progressive pitch variation on the lathe depending on the control. In the catalogue it appears as "Variable-lead threading", within the Lathe cycles family.
Can you give me an example of G34?
G34 Z-30 F1.5 K0.02 — Threading with progressive pitch variation on the lathe depending on the control.
Which machines use G34?
G34 is used in: Turning, Mill-turn.
What should you watch out for with G34?
High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.
Related tools
CNC G-code Simulator
CNC IDE: editing with G/M tooltips, line inspector, conversion between controls and 2D/3D toolpath.
CNC Alarms Guide
CNC Alarms and Solutions Guide. Enter the error code or symptom to find the cause and how to repair it at the machine.
Calculate cycle time
Estimate CNC turning and milling cycle time from G-code. Calculate parts per hour with a breakdown of cutting, rapids, canned cycles and tool changes.