0% found this document useful (0 votes)
1K views

G and M Codes For CNC

This document lists and briefly describes common G and M codes used in CNC machine controls. It outlines G codes for positioning, linear and circular interpolation, dwells, offsets, coordinate systems, and cycles. M codes are also covered, including codes for spindles, coolant, tool changes, and program ending or pausing. Not all codes are supported on all controls.

Uploaded by

Rajesh Kumar P
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)
1K views

G and M Codes For CNC

This document lists and briefly describes common G and M codes used in CNC machine controls. It outlines G codes for positioning, linear and circular interpolation, dwells, offsets, coordinate systems, and cycles. M codes are also covered, including codes for spindles, coolant, tool changes, and program ending or pausing. Not all codes are supported on all controls.

Uploaded by

Rajesh Kumar P
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/ 2

Common G codes and M codes for CNC machine controls

Not all codes are available on all controls, and some controls have other codes. See your machine manual for detailed explanations. CNC G codes G00 - Positioning at rapid speed; Mill and Lathe G01 - Linear interpolation (machining a straight line); Mill and Lathe G02 - Circular interpolation clockwise (machining arcs); Mill and Lathe G03 - Circular interpolation, counter clockwise; Mill and Lathe G04 - Mill and Lathe, Dwell G09 - Mill and Lathe, Exact stop G10 - Setting offsets in the program; Mill and Lathe G12 - Circular pocket milling, clockwise; Mill G13 - Circular pocket milling, counterclockwise; Mill G17 - X-Y plane for arc machining; Mill and Lathe with live tooling G18 - Z-X plane for arc machining; Mill and Lathe with live tooling G19 - Z-Y plane for arc machining; Mill and Lathe with live tooling G20 - Inch units; Mill and Lathe G21 - Metric units; Mill and Lathe G27 - Reference return check; Mill and Lathe G28 - Automatic return through reference point; Mill and Lathe G29 - Move to location through reference point; Mill and Lathe (slightly different for each machine) G31 - Skip function; Mill and Lathe G32 - Thread cutting; Lathe G33 - Thread cutting; Mill G40 - Cancel diameter offset; Mill. Cancel tool nose offset; Lathe G41 - Cutter compensation left; Mill. Tool nose radius compensation left; Lathe G42 - Cutter compensation right; Mill. Tool nose radius compensation right; Lathe G43 - Tool length compensation; Mill G44 - Tool length compensation cancel; Mill (sometimes G49) G50 - Set coordinate system and maximum RPM; Lathe G52 - Local coordinate system setting; Mill and Lathe G53 - Machine coordinate system setting; Mill and Lathe G54~G59 - Workpiece coordinate system settings #1 t0 #6; Mill and Lathe G61 - Exact stop check; Mill and Lathe G65 - Custom macro call; Mill and Lathe G70 - Finish cycle; Lathe G71 - Rough turning cycle; Lathe G72 - Rough facing cycle; Lathe G73 - Irregular rough turning cycle; Lathe G73 - Chip break drilling cycle; Mill G74 - Left hand tapping; Mill G74 - Face grooving or chip break drilling; Lathe G75 - OD groove pecking; Lathe G76 - Fine boring cycle; Mill G76 - Threading cycle; Lathe

G80 G81 G82 G83 G84 G85 G86 G87 G90 G91 G92 G92 G94 G95 G96 G97 G98 G99 M00 M01 M02 M03 M04 M05 M06 M08 M09 M10 M11 M19 M30 M97 M98 M99

Cancel cycles; Mill and Lathe Drill cycle; Mill and Lathe Drill cycle with dwell; Mill Peck drilling cycle; Mill Tapping cycle; Mill and Lathe Bore in, bore out; Mill and Lathe Bore in, rapid out; Mill and Lathe Back boring cycle; Mill Absolute programming Incremental programming Reposition origin point; Mill Thread cutting cycle; Lathe Per minute feed; Mill Per revolution feed; Mill Constant surface speed control; Lathe Constant surface speed cancel Per minute feed; Lathe Per revolution feed; Lathe CNC M Codes - Program stop; Mill and Lathe - Optional program stop; Lathe and Mill - Program end; Lathe and Mill - Spindle on clockwise; Lathe and Mill - Spindle on counterclockwise; Lathe and Mill - Spindle off; Lathe and Mill - Toolchange; Mill - Coolant on; Lathe and Mill - Coolant off; Lathe and Mill - Chuck or rotary table clamp; Lathe and Mill - Chuck or rotary table clamp off; Lathe and Mill - Orient spindle; Lathe and Mill - Program end, return to start; Lathe and Mill - Local sub-routine call; Lathe and Mill - Sub-program call; Lathe and Mill - End of sub program; Lathe and Mill

You might also like