Home › G-codes › Haas NGC › G84
G84 Tapping canned cycle
Haas NGC G-code · Mill, Lathe
On mills: Tapping canned cycle
Rigid taps a right hand thread. The spindle feeds in at the pitch, reverses at the bottom, and feeds out. Haas needs no M29 before G84.
Format
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Hole bottom |
R | R plane where tapping starts |
F | Feed rate, RPM times pitch in G94, or the pitch in G95 |
S | Spindle speed |
J | Retract speed multiple, J2 retracts twice as fast as tapping in |
L | Number of holes for repeats in G91 |
How it works
Modal, canned cycle group 09. Cancel with G80.
Example program
G90 G54 G00 X1. Y1. S500 M03 (HOLE POSITION)
G43 H05 Z1. M08 (APPROACH)
G84 G99 Z-.75 R.1 F25. J2 (25 IPM EQUALS 500 RPM TIMES .05 PITCH)
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- No M29 is needed on Haas. The control handles spindle direction for the cycle.
- Feed must equal RPM times pitch. 500 RPM on a 20 TPI tap is 500 times .05, or 25 IPM.
- Setting 130 sets the default retract speed when J is not used.
On lathes: Tapping canned cycle
Rigid taps a hole on center with the main spindle. The control starts the spindle forward and reverses it at the bottom. Feed equals the thread lead in G99.
Format
Addresses
| Address | What it does |
|---|---|
Z | Hole bottom |
R | R plane |
F | Feed, equal to the lead in G99 |
X | X position, normally 0 |
Q | Peck depth, incremental, optional |
How it works
Modal, group 09. Cancel with G80.
Example program
G99 (FEED PER REV)
G00 G54 X0 Z.25 M08 (CENTERLINE)
G97 S300 (TAP RPM, NO M03 NEEDED)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Command S before G84. No M03 is needed, the control starts the spindle.
- In G99 inch, F is 1 divided by threads per inch. A .500-13 tap is F.0769.
- For live tool face taps use G95 or G186. For left hand taps on the spindle use G184.
- On DS lathes G84 can tap on the secondary spindle under G14.
Related codes
G74 · G80 · G95 · G98 · G99 · G184 · G195
G84 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Tapping cycle |
| Mazak (EIA) | Tapping cycle |
| Okuma OSP | Tapping cycle |
| Mitsubishi M70 M80 | Tapping cycle |
| Brother Speedio | Tapping cycle |
| Fagor 8055 8065 | Tapping canned cycle |
| LinuxCNC Tormach | Right hand tapping cycle |
| Mach3 Mach4 | Tapping cycle |
| Centroid CNC12 Acorn | Right hand tapping cycle |
| Hurco WinMax (NC) | Tapping cycle |
| Fadal | Right hand tap, floating holder |
| Swiss (Citizen Star) | Face tapping cycle |
Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G84 in the app All Haas NGC G-codes