KEMBAR78
CNC G & M Codes Reference Guide | PDF | Numerical Control | Mechanical Engineering
0% found this document useful (0 votes)
2K views3 pages

CNC G & M Codes Reference Guide

The document lists G and M codes commonly used in CNC machining. G codes are for positioning and motion functions like rapid positioning, linear and circular interpolation. M codes are for controlling machine functions like spindle control, coolant, tool changes and program flow. Specific codes listed include G00, G01, G02, G03 for motion and M03, M05, M06 for spindle control and tool changes.

Uploaded by

Muhammad Ismail
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views3 pages

CNC G & M Codes Reference Guide

The document lists G and M codes commonly used in CNC machining. G codes are for positioning and motion functions like rapid positioning, linear and circular interpolation. M codes are for controlling machine functions like spindle control, coolant, tool changes and program flow. Specific codes listed include G00, G01, G02, G03 for motion and M03, M05, M06 for spindle control and tool changes.

Uploaded by

Muhammad Ismail
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

G Codes:

The following is a list of commonly used G Codes for CNC machines and their functionality.

CODE DESCRIPTION
G00: Rapid Linear Positioning
G01: Linear Feed Interpolation
G02: CW Circular Interpolation
G03: CCW Circular Interpolation
G04: Dwell
G07: Imaginary Axis Designation
G09: Exact Stop
G10: Offset Value Setting
G17: XY Plane Selection
G18: ZX Plane Selection
G19: YZ plane Selection
G20: Input In Inches
G21: Input In Millimeters
G22: Stored Stroke Limit On
G23: Stored Stroke Limit Off
G27: Reference Point Return Check
G28: Return To Reference Point
G29: Return From Reference Point
G30: Return To 2nd, 3rd and 4th Ref. Point
G31: Skip Cutting
G33: Thread Cutting
G40: Cutter Compensation Cancel
G41: Cutter Compensation Left
G42: Cutter Compensation Right
G43: Tool Length Compensation + Direction
G44: Tool Length Compensation - Direction
G45: Tool Offset Increase
G46: Tool Offset Double
G47: Tool Offset Double Increase
G48: Tool Offset Double Decrease
G49: Tool Length Compensation Cancel
G50: Scaling Off
G51: Scaling On
G52: Local Coordinate System Setting
G54: Work Coordinate System 1 Selection
G55: Work Coordinate System 2 Selection

G56: Work Coordinate System 3 Selection


G57: Work Coordinate System 4 Selection
G58: Work Coordinate System 5 Selection
G59: Work Coordinate System 6 Selection
G60: Single Direction Positioning
G61: Exact Stop Mode
G64: Cutting Mode
G65: Custom Macro Simple Call
G66: Custom Macro Modal Call
G67: Custom Macro Modal Call Cancel
G68: Coordinate System Rotation On
G69: Coordinate System Rotation Off
G73: Peck Drilling Cycle
G74: Counter Tapping Cycle
G76: Fine Boring
G80: Canned Cycle Cancel
G81: Drilling Cycle, Spot Boring
G82: Drilling Cycle, Counter Boring
G83: Peck Drilling Cycle
G84: Tapping Cycle
G85: Boring Cycle
G86: Boring Cycle
G87: Back Boring Cycle
G88: Boring Cycle
G89: Boring Cycle
G90: Absolute Programming
G91: Incremental Programming
G92: Programming Of Absolute Zero
G94: Feed per Minute
G95: Feed per Revolution
G96: Constant Surface Speed Control
G97: Constant Surface Speed Control Cancel
G98: Return to Initial Point in Canned Cycles
G99: Return to R Point in Canned Cycles
M Codes:
The following is a list of commonly used M Codes for CNC machines and their functionality.

CODE DESCRIPTION

M00: Program Stop


M01: Optional Stop
M02: End of Program
M03: Spindle On CW
M04: Spindle On CCW
M05: Spindle Stop
M06: Tool Change
M07: Mist Coolant On
M08: Flood Coolant On
M09: Coolant Off
M19: Spindle Orientation On
M20: Spindle Orientation Off
M21: Tool Magazine Right
M22: Tool Magazine Left
M23: Tool Magazine Up
M24: Tool Magazine Down
M25: Tool Clamp
M26: Tool Unclamp
M27: Clutch Neutral On
M28: Clutch Neutral Off
M30: End Program, Stop and Rewind
M98: Call Sub Program
M99: End Sub Program

You might also like