Lathe Machine M Codes

The CNC Lathe Machine M codes

M00 Stop for operator
M01 Optional stop for operator
M02 Restart program
M03 Spindle ON CW
M04 Spindle ON CCW
M05 Spindle OFF
M07 Mist coolant ON
M08 Flood coolant ON
M09 Coolant OFF
M10 Clamp ON
M11 Clamp OFF
M13 Cutoff
M16 Chuck ID selection
M18 Chuck OD selection
M22 Extend part chute
M23 Retract part chute
M29 Set trap for G84
M32 Tailstock quill forward (out)
M33 Tailstock quill retract (in)
M34 Part catch forward
M35 Part catch retract
M41 Select spindle #1
M42 Select spindle #2
M46 Door open
M47 Door close
M50 C axis disable
M51 C axis enable
M91 Move to minus home
M92 Move to plus home
M93 Release motor power
M94 Turn ON input X
M95 Turn OFF input X
M98 Call subprogram
M99 Return from subprogram
M100 Wait for input to open
M101 Wait for input to close
M102 Restart program
M103 Programmed action timer
M104 Cancel programmed action timer
M105 Move minus to switch
M106 Move plus to switch
M107 Output BCD tool number
M108 Enable override control
M109 Disable override control
M115 Protected probing move
M116 Protected probing move
M120 Open data file (overwrite existing file)
M121 Open data file (append to existing file)
M122 Record position(s) and/or comment in the data field
M123 Record value and/or comment in data field
M125 Protected probing move
M126 Protected probing move