Q&A · G-code & programming

What is the difference between M02 and M30?

Frequently asked · G-code & programming · Dec 1, 2026

1 answer

✔ Expert answer cnccode

Both end the program. M30 also rewinds to the start and, on most machines, increments the part counter. M30 is the standard choice on modern controls.

Your answer

Be kind and specific. No advertising. See the guidelines.