0% found this document useful (0 votes)
143 views1 page

Basic G and M Codes

The document provides an overview of basic codes used for CNC part programming. It lists common G codes for functions like rapid motion, linear motion, and circular motion as well as M codes for functions like program stop, spindle control, and tool changes. Canned cycles for pocket milling, slot milling, drilling, and tapping are also summarized with their associated G codes.

Uploaded by

krish0690
Copyright
© Attribution Non-Commercial (BY-NC)
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% found this document useful (0 votes)
143 views1 page

Basic G and M Codes

The document provides an overview of basic codes used for CNC part programming. It lists common G codes for functions like rapid motion, linear motion, and circular motion as well as M codes for functions like program stop, spindle control, and tool changes. Canned cycles for pocket milling, slot milling, drilling, and tapping are also summarized with their associated G codes.

Uploaded by

krish0690
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 1

Basic Codes for CNC Part Programming

CODE O N S T M Function program number, ex. O5678 sequence number spindle speed (rpm) tool number, ex. T3 misc./machine functions CODE G F X, Y, Z R I, J, K Function preparatory function feed rate (mm/min) coordinate axis motion arc radius circle center coordinates

FUNCTIONS OF MOST COMMON G and M CODES


G CODE G00 G01 G02 G03 G40 G41 G42 G70 G71 G90 G91 Function rapid linear motion linear motion at preset feedrate F circular feed motion - CW circular feed motion CCW cutter compensation off cutter compensation left cutter compensation right units in inches units in mm absolute values incremental values M CODE M00 M02 M03 M04 M05 M06 M08 M09 M13 M30 program stop end program spindle on (CW) spindle on (CCW) spindle off change tool coolant on coolant off coolant & spindle on end program Function

CANNED CYCLES
G CODE G75 / G76 G77 / G78 G74 G210 G211 G83 G84 G98 G220 G221 Function Rectangular pocket milling CW / CCW Circular pocket milling CW / CCW Linear Slot milling Linear Slot with reciprocating plunge-cut Circular Slot with reciprocating plunge-cut Pecking drill cycle Tapping cycle Assign label number Circular or Polar Pattern Linear or Cartesian Pattern M CODE M99 Cycle Call Function

You might also like