CNC M-Codes

CNC M-Codes

today 2024-05-04
local_offer CNC Machining Knowledge
visibility 698

M-codes, Auxiliary functions

  • When actually processing the workpiece, it is necessary to tighten the chuck, rotate the spindle and supply coolant.
  • For ON/OFF switch action control of mechanical functions, use the two-digit command after the address M,
  • One M code can usually be specified in a single block.



Standard M-codes List

CommandFunctionDescription
M01Program stopAll functions and feed are paused, click start will run
M00Optional stopThe same as M01, but is controlled by the controlling panel
M03Spindle ForwardSpindle rotate counter-clockwise
M04Spindle ReversalSpindle rotate clockwise
M05Spindle stopSpindle stop rotating
M08Coolant onOpen the coolant
M09Coolant offClose the coolant
M30End of programSpindle stop, coolant off, all functions and feed are paused, cursor return to the initial position
M40Spindle drive gear: NeutralChange spindle drive to neutral condition, please do stop the spindle before changing the drive gear
M41Spindle drive gear: Low SpeedChange spindle drive to low speed, please do stop the spindle before changing the drive gear
M42Spindle drive gear: High SpeedChange spindle drive to high speed, please do stop the spindle before changing the drive gear
M98Subprogram callRun from main program to subprogram
M99Subprogram endEnd of the subprogram, return to main program


文章區塊
CNC machining software CAD/CAM CNC simulator CNC wireless transmission CNC training CNC education CNC learning and teaching