Skip to content

M21/M22: Tailstock advance/retract

Control of the tailstock or a linear auxiliary element on equipped lathes.

For reference only: syntax changes with the control, the post-processor and the machine parameters. Check the official manual and run a simulation before cutting. Legal notice.

The brands and control names mentioned belong to their owners and are used only to identify the equipment. GetGCode is not affiliated with or endorsed by any manufacturer, ISO or ASME: this is our own content, not official documentation. Legal notice.

Family
Lathe
Machine
Turning, Mill-turn
Risk
High
Example
M21 / M22

How to write it on each control

Example
M21 / M22
Haas · Fanuc—

Haas: On Haas lathes it can control tailstock advance/retract.

Fanuc: Confirm interlocks, piece and pressure before use.

Machine: Turning, Mill-turn

Other codes in Lathe

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does M21/M22 mean in a CNC program?

Control of the tailstock or a linear auxiliary element on equipped lathes. In the catalogue it appears as "Tailstock advance/retract", within the Lathe family.

Can you give me an example of M21/M22?

M21 / M22 — Control of the tailstock or a linear auxiliary element on equipped lathes.

Which machines use M21/M22?

M21/M22 is used in: Turning, Mill-turn.

What should you watch out for with M21/M22?

High risk: a mistake here can cause a crash, a broken tool or an out-of-tolerance part. Simulate the program and dry-run it before cutting.

Related apps