Chapter Four, The M codes
M00 (Program Stop, used at the middle of programs to test a Thread or add a component that must be machined)
M01 (When the Optional Switch on the machine is on, The program stops as M00. Used on the cycles where an optional stop is needed, to check for wear of a tool or measure the part only every so many parts in production runs)
M02 (End of program)
M03(Spindle rotation Clock Wise seen from behind the spindle)
M04(Spindle rotation CCW) Both are used as: M04 S1300, that is spindle CCW at 1300rpms.
M05 (Spindle rotation stop)
M06 (Tool Call, written as M06 T7, To load Tool 7 on the spindle)
M08 (Coolant on)
M09 (Coolant off)
M19 (Spindle orientation, it orients the spindle in preparation to a tool change, or if you are using a probe, to always use the same side)
M30 (Program end, Rewind or go to the beginning of the program again, and open the door, is used always at the end of programs for production)
M54 (I should say part count, but indeed is cycles run counter)
M98 (Subprogram Call)
M99 (Subprogram End, this last two are used often on programs that may use different subprograms to do family parts)
I know they are more than Five, but we are now ready to Start a program....
)