G and M Codes - Turning and Milling
G and M Codes - Turning and Milling
G and M Codes - Turning and Milling
G Codes Milling
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
G and M Codes
Copyright 2000 by Surfware, Inc. All Rights Reserved
2 G and M Codes
CODE DESCRIPTION
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
CODE DESCRIPTION
M00 Program Stop
M01 Optional Stop
M02 End of Program
M03 Spindle On CW
M04 Spindle On CCW
CODE DESCRIPTION
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
G Codes Turning