Home › G-codes › Mach3 Mach4 › G84
G84 Tapping cycle
Mach3 Mach4 G-code · Mill
Feeds a tap to Z, reverses the spindle and feeds out. Feed must equal spindle speed times pitch. Meant for a floating tap holder.
Format
G84 X Y Z R [L] F
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Thread depth |
R | Retract plane |
F | Feed, RPM times pitch in G94, or the pitch in G95 |
How it works
Modal, canned cycle group. Cancel with G80.
Example program
G0 G20 G90 G54 G17 G40 G49 G80 (SAFE START, INCH)
T5 M6 (.375-16 TAP)
S1000 M3 (SPINDLE ON)
G0 X1.0 Y-1.0 (FIRST HOLE)
…
T5 M6 (.375-16 TAP)
S1000 M3 (SPINDLE ON)
G0 X1.0 Y-1.0 (FIRST HOLE)
…
The full 9-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The spindle must turn clockwise with M3 before the cycle. Mach3 errors if not.
- Most hobby spindles have no exact speed control. Use a tension and compression tap holder.
- Mach4 locks overrides at 100 percent. On Mach3 the lower of feed or speed override is used for both.
Related codes
G84 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Tapping cycle |
| 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 |
| 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 Mach3 Mach4 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 Mach3 Mach4 G-codes