The document lists common G-Codes and M-Codes used in CNC programming. G-Codes are preparatory codes that control machine movements and operations, while M-Codes are miscellaneous codes that manage program flow and auxiliary functions. Each code is accompanied by a brief description of its function.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views
G_and_M_Codes_CNC
The document lists common G-Codes and M-Codes used in CNC programming. G-Codes are preparatory codes that control machine movements and operations, while M-Codes are miscellaneous codes that manage program flow and auxiliary functions. Each code is accompanied by a brief description of its function.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Common G-Codes and M-Codes in CNC Programming
G-Codes (Preparatory Codes)
G00 Rapid positioning
G01 Linear interpolation (cutting in a straight line) G02 Circular interpolation, clockwise G03 Circular interpolation, counterclockwise G04 Dwell (pause for a specified time) G17 Select XY plane G18 Select XZ plane G19 Select YZ plane G20 Programming in inches G21 Programming in millimeters G28 Return to machine home position G40 Cancel cutter radius compensation G41 Cutter compensation left G42 Cutter compensation right G43 Tool length compensation positive G44 Tool length compensation negative G49 Cancel tool length compensation G53 Machine coordinate system G54 to G59 Work coordinate systems G90 Absolute programming G91 Incremental programming G92 Set current position G94 Feed per minute G95 Feed per revolution G98 Return to initial point after canned cycle G99 Return to R point after canned cycle
M-Codes (Miscellaneous Codes)
M00 Program stop
M01 Optional stop M02 End of program M03 Spindle ON clockwise M04 Spindle ON counterclockwise M05 Spindle stop M06 Tool change M08 Coolant ON M09 Coolant OFF M30 End of program and reset M98 Call subprogram M99 Return from subprogram