Skip to content

M38/M39: Spindle speed variation

Turns spindle speed variation on/off to reduce chatter depending on the machine.

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
Spindle
Machine
Turning, Mill-turn
Risk
Medium
Example
M38 / M39

How to write it on each control

Example
M38 / M39
Haas · Fanuc—

Haas: Spindle speed variation on some Haas lathes.

Fanuc: It may exist as an option or manufacturer feature.

Machine: Turning, Mill-turn

Other codes in Spindle

See the full list of G and M codes

Frequently Asked Questions (FAQ)

What does M38/M39 mean in a CNC program?

Turns spindle speed variation on/off to reduce chatter depending on the machine. In the catalogue it appears as "Spindle speed variation", within the Spindle family.

Can you give me an example of M38/M39?

M38 / M39 — Turns spindle speed variation on/off to reduce chatter depending on the machine.

Which machines use M38/M39?

M38/M39 is used in: Turning, Mill-turn.

What should you watch out for with M38/M39?

Medium risk: it rarely breaks anything on its own, but a wrong value shows up on the part. Check the block before running the batch.

Related apps