G84 Tapping cycle / Face tapping cycle
Fanuc G-code · Mill, Lathe
On mills: Tapping cycle
Taps a right hand thread. Feeds in with the spindle forward, reverses at the bottom and feeds out. With M29 S before the cycle the control runs rigid tapping, syncing feed to the spindle.
Format
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Hole bottom |
R | R plane where feed starts |
P | Dwell at bottom and R plane, milliseconds |
F | Feed rate, RPM times pitch in G94, or pitch in G95 |
K | Number of repeats |
M29 S | Rigid tap mode with spindle speed, given before G84 |
How it works
Modal, group 09. Cancel with G80 or any group 01 code.
Example program
G90 G54 G00 X1. Y1. (FIRST HOLE)
G43 H05 Z1. M08 (CLEARANCE)
M29 S500 (RIGID TAP MODE 500 RPM)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Use the same S in M29 and the spindle command. Give M29 S in its own block right before G84.
- F must equal RPM times pitch in G94. A wrong F strips the thread or breaks the tap.
- On some machines parameter 5200 bit 0 makes G84 rigid without M29. Then floating G84 is not available. Check your setting.
- Feed override and feed hold are disabled during the tap. Spindle override may also be locked.
On lathes: Face tapping cycle
Taps along Z on the face. With M29 before the cycle it runs as rigid tapping with a live tool. The spindle reverses at the bottom.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
X C | Hole position, X as a diameter, C as an angle |
Z | Hole bottom |
R | R point |
P | Dwell at the bottom |
F | Pitch in G99, or RPM times pitch in G98 |
K | Repeat count |
How it works
Modal, group 10. Cancel with G80.
Example program
G99 (FEED PER REV)
G00 X1.5 C0 Z.25 M08 (FIRST HOLE)
M29 S500 (RIGID TAP MODE, 500 RPM)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- In G98 the feed is RPM times pitch. In G99 the feed is the pitch.
- R is often the distance from the start point to the R point, not an absolute Z. Check on your machine.
- Cancel with G80 when done.
Related codes
G74 · G84.2 · G63 · G80 · G98 · G99 · G88
G84 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Haas NGC | Tapping canned 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 Fanuc 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 Fanuc G-codes