2. M Code Description:
4. M03: spindle rotate (CW)
M03 command can let the spindle rotate CW, it can use with S
function, spindle can rotate CW in specified speed.
5. M04: spindle rotate (CCW)
M04 command can let the spindle rotate CCW
6. M05: spindle stop
M05 command can let spindle stop, when you want to change the gear
or change the rotate direction, must use M05 to stop the spindle before we
change the gear or change the rotate direction.
7. M06: tool exchange
M06 command can execute tool exchange, this command does not
include tool selection, it must use with T function.
8. M08/M09: coolant liquid ON/OFF
M08 command for coolant liquid ON, M09 for OFF
9. M19: spindle positioning stop
M19 command let spindle positioning on a specified corner
10. M30: program end
M30 command for program ends, when program execute M30
command, will action stops, and the memory will return to the initial of the
program.
11. M98/M99: sub-program control
Sub-program is parameter which has fixed perform method or be
executed usually, we prepare first and put it into memory, when we need to
use, we can call by main program. We use M98 to call the sub-program and
use M99 to end that.
Command form:
M98 P H L ; //Sub-program called
P is specified number of program(when we ignore P, it specify the
program itself, and it is only used in memory perform or MDI perform)
H is the number of ranking in specified program.
144
    "