Skip to content

M17/M18: Turret indexing

M-codes associated on some lathes with turret indexing or turret functions.

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
M17 / M18

How to write it on each control

Example
M17 / M18
Haas · Fanuc—

Haas: In Haas lathes it can refer to forward/reverse turret rotation.

Fanuc: Function dependent on the machine manufacturer.

Machine: Turning, Mill-turn

Other codes in Lathe

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does M17/M18 mean in a CNC program?

M-codes associated on some lathes with turret indexing or turret functions. In the catalogue it appears as "Turret indexing", within the Lathe family.

Can you give me an example of M17/M18?

M17 / M18 — M-codes associated on some lathes with turret indexing or turret functions.

Which machines use M17/M18?

M17/M18 is used in: Turning, Mill-turn.

What should you watch out for with M17/M18?

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