

M08 is the G Code command to turn on the main spindle coolant, M09 turns off all coolant. In the example above we stop the spindle once the machine is in the home position using the G28 command and before the end of program. This typically happens just before a tool change. Issuing this command stops the spindle (or workpiece on a Lathe) from rotating.

Once the cutter is away from the component we can safely stop the spindle with an M05 Command. M04 is used when tapping without using tapping cycles and on a Lathe when the tool is loaded upside down for some operations. M03 is the usual direction for most cutters and drills as the cutting edge of the tool cuts in a clockwise direction. This turns the spindle on after telling the machine what spindle speed to use. S1500 M03 Īs we can see from the example program above, I have told the machine to turn the spindle on right after issuing a spindle speed command and before the machine starts to rapid into position with a G00 command. The typical place to tell the machine to start the spindle is after defining the spindle speed using an S value, i.e.

M04 is the command used to turn the spindle on in an anti-clockwise direction. It can be inserted in its own block of the program or on the same block as other information. M03 is the command used to turn the spindle on in a clockwise direction. M04 – Spindle on in a counterclockwise direction. M03 – Spindle on in a clockwise direction. If you wish the machine to stop without using the optional stop button on the controls an M00 command should be used instead.Įnsure the cutter is not touching the part when writing these commands into the program. The most common use is at the end of a section before a tool change, this makes it easier to re-run one particular tool which is often needed for dimensional reasons. In the part program above, the M01 is used to check the tool is in good condition before an automated tool change. On the machine controls will be an optional stop button, pressing this will stop the machine the next time an M01 command is read in the program. M01 Optional stop is used to give the operator the choice to stop the machine at a given point in the program. It will stop the machine each time the program reaches this block.Ĭare must be taken to start the spindle after this command, it does not ‘pause’ the program but stop everything, so everything must be started up again including spindle speed and feed rates. There is no button to turn this function on or off like using the optional stop command M01. In this example, we use this MCODE to stop the machine for a manual tool change, although we have stopped the cutter using M05 as it is standard practice it is not necessary as the M00 would stop the spindle and render the machine safe open the door. The M00 command is used to stop the machine and the program.Ī typical use would be to do a manual tool change or to add tapping oil to a tap before it feeds into the part.
