M-code reference

M29 M-Code: Rigid Tapping Mode (Fanuc)

Rigid Tapping Mode (Fanuc) — Puts the spindle into position control so it is synchronised with Z for rigid tapping. Program it with the tapping speed before G84.

By cnccode · Updated
PropertyValue
CodeM29
FunctionRigid Tapping Mode (Fanuc)
Used onMills and lathes

What does M29 do?

Puts the spindle into position control so it is synchronised with Z for rigid tapping. Program it with the tapping speed before G84.

M29 example

Example
M29 S600
G84 X0 Y0 Z-15.0 R5.0 F750.
G80

Tips

  • Haas does rigid tapping automatically with G84 — M29 is not needed.
  • Without rigid tapping you need a floating tap holder.

M-codes vary between machine builders. Codes from M00 to M09, M30 and M98/M99 are nearly universal; most others are defined by the machine builder. Always check the M-code list in your machine manual.

Most-used M-codes

CodeFunction
M00Program Stop
M01Optional Stop
M03Spindle On Clockwise
M04Spindle On Counter-Clockwise
M05Spindle Stop
M06Tool Change
M08Flood Coolant On
M09Coolant Off
M30Program End and Rewind
M98Subprogram Call
M99Subprogram Return / Loop

Frequently asked questions

What does M29 mean on a CNC machine?
M29 is Rigid Tapping Mode (Fanuc). Puts the spindle into position control so it is synchronised with Z for rigid tapping. Program it with the tapping speed before G84.