M-Codes

Common M-Codes

M00
M01
Program Stop
Optional Stop
M02 End of Program - Stop
M03
M04

M05
Spindle On CW
Spindle On CCW

Spindle Stop
M06 Tool Change
M07
M08

M09
Coolant On - Mist
Coolant On - Flood

Coolant Off
M13
M14
M15
Spindle On CW - With Coolant
Spindle On CCW - With Coolant

Spindle Stop - With Coolant
M19
M20
Spindle Orientation On
Spindle Orientation Off
M21
M22
M23
M24
Table Rotate CW / Tool Magazine Right
Table Rotate CCW / Tool Magazine Left
C-Axis Enable / Tool Magazine Up
C-Axis Disable / Tool Magazine Down
M25
M26
Tailstock Engaged / Tool Clamp
Tailstock Retracted / Tool Unclamp
M27
M28
Clutch Neutral On
Clutch Neutral Off
M30 End of Program - Stop and Rewind
M98
M99
Call Subprogram
End Subprogram

Arrow G-Codes - Milling
Arrow G-Codes - Turning

Your Ad Here!
NextEngine
eApprentice

VERICUT by CGTech - NC Verification Software Mastercam - CAD/CAM Systems Robotmaster - CAD/CAM for Robots In-House Posts - Mastercam Post Processors

Verisurf - Master3DGage PCMM for 3D inspection, geometric dimensioning and tolerancing

Forum   |  Information    |  Tools   |  Posts   |  Resources   |  Patches

eMastercam.com is operated by In-House Solutions Inc. - Authorized Canadian Mastercam Distributor
Mastercam® is a Registered Trade Mark of CNC Software, Inc.
eMastercam.com Privacy Statement


Business Software Alliance