M00 G-Code Command

  • 3 mins read

M00 G-Code Command

M00 G-Code command is a common code used in CNC machining to stop the machine. When the M00 code is executed, the machine will stop all movement, stop the spindle, turn off the coolant and wait for the operator to give further instructions. This code is typically used during a machining program to pause the machine at a specific point to allow the operator to inspect the workpiece or make adjustments. The M00 code is also often used to stop the machine prior to a tool change.

How M00 G-Code Command Is Used

Here’s an example of how the M00 code might be used in a G-code program with comments shown in brackets:

G00 X0 Y0 Z0   (rapid move to starting position)
G01 X10 Y10 Z-5 F100   (start cutting at a feed rate of 100 units per minute)
G02 X20 Y0 I10 J-10   (cut a circular arc with a radius of 10 units)
G01 X30 Y10 Z-5   (resume cutting in a straight line)
M00   (stop the machine and wait for operator input)
ETC..

In this example, the M00 code is used to pause the machine after cutting the first circular arc, allowing the operator to inspect the workpiece before continuing. Once the operator is ready, they can resume the program by pressing a button or entering a command.

Is the M00 code used before a tool change?

Yes, here’s an example of the M00 code being used before a tool change in a G-code program:

T01 M06   (select tool 1 and wait for tool change)
G00 G54 X0 Y0 S2000 M03 (rapid move to starting position)
G43 H1 Z50
G01 Z-5 F20. 
G01 X10 Y10 F100   (start cutting at a feed rate of 100 units per minute)
G02 X20 Y0 I10 J-10   (cut a circular arc with a radius of 10 units)
G00 Z50.
G91 G20 X0. Y0. Z0.
M00   (stop the machine and wait for operator input before tool change)
T02 M06   (select tool 2 and wait for tool change)
G00 G54 X20 Y0 S2000 M03
G43 H2 Z50
G01 Z-5 F20.
G01 X30 Y10 Z-5 F200.  (resume cutting in a straight line)
G03 X50 Y10 I10 J10   (cut another circular arc with a radius of 10 units)
G01 X60 Y0 Z0   (return to starting position)
G00 Z50.
G91 G20 X0. Y0. Z0.
M30   (end of program)

In this example, the M00 code is used to pause the machine after cutting the first circular arc and before the tool change to allow the operator to inspect the workpiece. Once the operator is ready, they can change the tool and resume the program by pressing a button or entering a command.