Home › G-codes › Mach3 Mach4 › G84.2
G84.2 Rigid tapping right hand, Mach4
Mach3 Mach4 G-code · Mill
Mach4. Rigid taps a right hand thread with the Z axis geared to the spindle. Needs a spindle with encoder feedback and a motion controller that supports it.
Format
G84.2 X Y Z R [P] [L] F [J]
Addresses
| Address | What it does |
|---|---|
X Y | Hole position |
Z | Thread depth |
R | Retract plane |
P | Dwell in seconds |
F | Feed, RPM times pitch |
J | Spindle speed for the retract |
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 (HOLE)
…
T5 M6 (.375-16 TAP)
S1000 M3 (SPINDLE ON)
G0 X1.0 Y-1.0 (HOLE)
…
The full 8-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- J sets a faster retract speed. Leave it out to retract at the tapping speed.
- Only works if your motion controller plugin supports spindle sync. Many hobby setups do not.
- Overrides and feed hold are locked out during the cycle.
Related codes
G84.2 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Rigid tapping, FS15 format |
| Mazak (EIA) | Synchronous tapping cycle |
| Hurco WinMax (NC) | Rigid tap right hand (ISNC) |
| Fadal | Prepare for right hand rigid tap |
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.2 in the app All Mach3 Mach4 G-codes