0% found this document useful (1 vote)
977 views2 pages

Basic Codes For CNC Part Programming

The document provides information on common G and M codes used in CNC part programming. It lists codes for functions like rapid linear motion, circular motion, cutter compensation, units of measurement, program stop, spindle control, coolant control, and more. It also summarizes machining cycles for pocket milling, slot milling, drilling, tapping, and coordinate transformation cycles for mirroring, datum shift, scaling, and rotation.

Uploaded by

Parveen Kumar
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 (1 vote)
977 views2 pages

Basic Codes For CNC Part Programming

The document provides information on common G and M codes used in CNC part programming. It lists codes for functions like rapid linear motion, circular motion, cutter compensation, units of measurement, program stop, spindle control, coolant control, and more. It also summarizes machining cycles for pocket milling, slot milling, drilling, tapping, and coordinate transformation cycles for mirroring, datum shift, scaling, and rotation.

Uploaded by

Parveen Kumar
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/ 2

Basic Codes for CNC Part Programming

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

MACHINING CYCLES
G CODE G75 G77 G74 G210 G211 G83 Function Rectangular pocket milling Circular pocket milling Linear Slot milling (horizontal or vertical) Linear Slot with reciprocating plunge-cut Circular Slot with reciprocating plunge-cut Pecking drilling cycle G CODE G84 G98 G220 G221 Function Tapping cycle Assign label number Drilling of holes on Circular Pattern Drilling of holes on Linear Pattern

M99

Cycle Call

COORDINATE TRANSFORMATION CYCLES


G CODE G28 G54 G72 G73 Mirror Image Datum shift Scaling Rotation Function Syntax G28 X, G28 Y, G28 XY G54 X Y G72 F G73 H where F the scaling factor where H the rotation angle

You might also like