KEMBAR78
CNC G and M Codes Guide | PDF
0% found this document useful (0 votes)
506 views6 pages

CNC G and M Codes Guide

The document provides information on G and M codes for CNC milling and turning. It lists common G codes used for linear and circular interpolation, plane selection, tool compensation, and more. M codes control functions like spindle control and coolant. Common drilling, tapping and threading cycles are also described. The codes are for Fanuc series 21 controls for both milling and turning applications.

Uploaded by

Ahmed Yehia
Copyright
© © All Rights Reserved
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)
506 views6 pages

CNC G and M Codes Guide

The document provides information on G and M codes for CNC milling and turning. It lists common G codes used for linear and circular interpolation, plane selection, tool compensation, and more. M codes control functions like spindle control and coolant. Common drilling, tapping and threading cycles are also described. The codes are for Fanuc series 21 controls for both milling and turning applications.

Uploaded by

Ahmed Yehia
Copyright
© © All Rights Reserved
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/ 6

CNC

CNC ‫األمىاد اىَظرخذٍح في تزٍدح اىَاميْاخ اىؼذديح‬


G Codes Fanuc Series 21
[Milling]

G Commands ‫اسم الكود‬


G00 Rapid Traverse ‫اىحزمح اىظزيؼح‬
G01 Liner Interpolation ً‫اىقطغ واالطرنَاه اىخط‬
G02 Circular Interpolation Clockwise ‫اىقطغ واالطرنَاه اىذائزي ٍغ اذدآ ػقارب اىظاػح‬
G03 Circular Interpolation ‫اىقطغ واالطرنَاه اىذائزي ٍغ ػنض اذدآ ػقارب‬
Counterclockwise ‫اىظاػح‬
G04 Dwell ‫سٍِ ذىقف‬
G20 Measuring In Inches ‫اىقياص تاىثىصح‬
G21 Measuring In Millimeter ‫اىقياص تاىَييَيرز‬
G17 Plane Selection X y X&Y ‫ٍظرىي اىرشغيو‬
G18 Plane Selection XZ X&Z ‫ٍظرىي اىرشغيو‬
G19 Plane Selection Y Z Y&Z ‫ٍظرىي اىرشغيو‬
G28 Return To Reference Point ‫اىزخىع اىً اىْقطح اىَزخؼيح‬
G40 Cancel Cutter Radius Compensation ‫اىغاء اطرؼىاض ّصف قطز اىؼذج‬
G41 Cutter Radius Compensation Left ‫اطرؼىاض ّصف قطز اىؼذج شَاه‬
G42 Cutter Radius Compensation Right ِ‫اطرؼىاض ّصف قطز اىؼذج يَي‬
G43 Tool Length Compensation Positive ‫اطرؼىاض طىه اىؼذج ٍىخة‬
G44 Tool Length Compensation Negative ‫اطرؼىاض طىه اىؼذج طاىة‬
G49 Cancel Off tool Length ‫اىغاء اطرؼىاض طىه اىؼذج‬
Compensation
G97 revolution per minute ‫طزػح ػَىد اىذوراُ ىفح ىنو دقيقح‬
G94 Feed Rate Data In ( mm / min ) ‫ٍؼذه اىرغذيح ٍييَيرز ىنو دقيقح‬
G95 Feed Rate Data In ( mm / rev ) ‫ٍؼذه اىرغذيح ٍييَيرز ىنو ىفح‬
G90 Absolute Programming ‫اىثزٍدح اىَطيقح‬
G91 Incremental Programming ‫اىثزٍدح اىرشايذيح‬
G52 Local Coordinate System ً‫اىصفز اىَحي‬
G53 Machine Coordinate System ‫صفز اىَاميْح‬
G09 Exact Stop ‫اىرىقف اىذقيق‬
G98 Return to Start Plane (drilling cycle) ‫اىزخىع اىً ٍظرىي اىثذء‬
G99 Return withdrawal Plan (drilling ‫اىزخىع اىً ٍظرىي اىظحة‬
cycle )
G50 Cancel Scale Factor ‫اىغاء ّظثح اىقياص واىَزاج‬
G51 Scale Factor and Mirror ‫ّظثح اىقياص واىَزاج‬
G73 Chip Break Drilling Cycle ‫دورج اىثقة اىؼَيق ترنظيز اىزايش‬
G74 Left Tapping Cycle ‫دورج اىثقة تذمز اىقالوظ شَاه‬

Page 1
CNC

G76 Fine Drilling Cycle ٌ‫دورج اىثقة اىْاػ‬


G80 Cancel Drilling Cycle ‫اىغاء دوراخ اىثقة‬
G81 Drilling Cycle ‫دورج اىثقة‬
G82 Drilling cycle with Dwell ‫دورج اىثقة ٍغ سٍِ ذىقف‬
G83 chip remove Drilling Cycle ‫دورج اىثقة اىؼَيق تاخزاج اىزايش‬
G84 Tapping Cycle ِ‫دورج اىثقة تذمز اىقالوظ يَي‬
G85 Reaming Cycle ‫دورج اىثزغيح‬
G86 Drilling Cycle with Spindle Stop ُ‫دورج اىثقة ٍغ ذىقف ػَىد اىذورا‬
G88 Drilling Cycle with Program Stop ‫دورج اىثقة ٍغ ذىقف ػَىد اىثزّاٍح‬
G89 Reaming Cycle With Dwell ‫دورج اىثزغيح ٍغ سٍِ ذىقف‬
G33 Thread cutting ‫قطغ اىقالوظ‬
G54 Zero Offset 1 1 ‫ذزحيو اىصفز‬
G55 Zero Offset 2 2 ‫ذزحيو اىصفز‬
G56 Zero Offset 3 3 ‫ذزحيو اىصفز‬
G57 Zero Offset 4 4 ‫ذزحيو اىصفز‬
G58 Zero Offset 5 5 ‫ذزحيو اىصفز‬
G59 Zero Offset 6 6 ‫ذزحيو اىصفز‬
G61 Exact Stop Mode ‫ّظاً اىرىقف اىذقيق‬
G15 End Polar Coordinate Interpolation ‫اىغاء االحذاثياخ اىقطثيح‬
G16 Begin Polar Coordinate Interpolation ‫ذْشيط االحذاثياخ اىقطثيح‬

Page 2
CNC

M Codes Fanuc Series 21


[Milling]

M Commands ‫اسم الكود‬


M00 Programming Stop ‫ذىقف اىثزّاٍح‬
M01 Programming Stop Conditional ‫ذىقف اىثزّاٍح اىَشزوط‬
M02 Main Program End ‫ّهايح اىثزّاٍح‬
M03 Main Spindle On Clockwise ‫دوراُ اىظزف ٍغ اذدآ ػقارب اىظاػح‬
M04 Main Spindle On Counterclockwise ‫دوراُ اىظزف ٍغ ػنض اذدآ ػقارب اىظاػح‬
M05 Main Spindle Stop ‫ذىقف اىظزف‬
M06 Tool Change ‫ذغييز اىؼذج اىيا‬
M08 Coolant On ‫ذشغيو طائو اىرثزيذ‬
M09 Coolant Off ‫ايقاف طائو اىرثزيذ‬
M19 Oriented Spindle Stop ٔ‫ذىقف اىظزف اىَىخ‬
M25 Release Clamping Device ‫فرح خهاس اىرثثيد‬
M26 Close Clamping Device ‫غيق خهاس اىرثثيد‬
M98 Call Up subroutine ً‫اطرذػاء اىثزّاٍح اىفزػ‬
M99 End Of subroutine ً‫اّهاء اىثزّاٍح اىفزػ‬
M30 Program End ‫ذىقف اىثزّاٍح اىزئيظً ٍغ اىؼىدج ىثذايح اىثزّاٍح‬

Page 3
CNC

G Codes Fanuc Series 21


[Turning]

G Commands ‫اسم الكود‬


G00 Rapid Traverse ‫اىحزمح اىظزيؼح‬
G01 Liner Interpolation ً‫اىقطغ واالطرنَاه اىخط‬
G02 Circular Interpolation Clockwise ‫اىقطغ واالطرنَاه اىذائزي ٍغ اذدآ ػقارب اىظاػح‬
G03 Circular Interpolation ‫اىقطغ واالطرنَاه اىذائزي ٍغ ػنض اذدآ ػقارب‬
Counterclockwise ‫اىظاػح‬
G04 Dwell ‫سٍِ ذىقف‬
G20 Longitudinal Turning Cycle ‫دورج اىخزاطح اىطىىيح‬
G21 Threading Cutting Cycle ‫دور ىخزاطح اىقالوظ‬
G24 Facing Cycle ‫دورج اىخزاطح اىىخهيح‬
G33 Thread Cutting ‫قطغ اىقالوظ‬
G28 Return To Reference Point ‫اىزخىع اىً اىْقطح اىَزخؼيح‬
G92 Setting Coordinate System (G92 ً‫ضثط اىصفز اىَحي‬
X..Z… ) & Shift coordinate System ( G92 ً‫وذحذيذ اقصً طزػح ىؼَىد اىذوراُ اىزئيظ‬
U…. w…. ) & Maximum Spindle Speed (
G92 S…. )
G72 Finishing Cycle ‫دورج اىرشطية واىرْؼيٌ ىيخزاطح‬
G73 Turning Cycle Contour ‫دورج اىرخشيِ واالطرقزاب ىيخزاطح اىطىىيح‬
G74 Facing Cycle Contour ‫دورج اىرخشيِ واالطرقزاب ىيخزاطح اىىحهيح‬
G75 Pattern Repeating ‫دورج خزاطح َّىسج ٍرنزر‬
G76 Deep Hole Drilling , Grooving Cycle ‫دورج اىثقة اىؼَيق ترنظيز اىزايش‬
In Z Z ‫وػَو اىقْىاخ فً اذدآ ٍحىر‬
G77 Grooving Cycle In X X ‫ػَو اىقْىاخ فً اذدآ ٍحىر‬
G78 Multiple Threading Cycle ‫دور خزاطح اىقالوظ ٍرؼذد االتىاب‬
G96 Constant Cutting Speed )‫طزػح اىقطغ اىخطيح (اىقطغ تظزػح ثاترح‬
G97 Direct Speed Programming ( rev / min ) ‫طزػح ػَىد اىذوراُ ىفح ىنو دقيقح‬
G90 Absolute Programming ‫اىثزٍدح اىَطيقح‬
G91 Incremental Programming ‫اىثزٍدح اىرشايذيح‬
G94 Feed Rate Data In ( mm / min ) ‫ٍؼذه اىرغذيح ٍييَيرز ىنو دقيقح‬
G95 Feed Rate Data In ( mm / rev ) ‫ٍؼذه اىرغذيح ٍييَيرز ىنو ىفح‬
G70 Measuring Data In Inch ‫اىقياص تاىثىصح‬
G71 Measuring Data In mm ‫اىقياص تاىَييَيرز‬
G40 Cancel Cutter Radius Compensation ‫اىغاء اطرؼىاض ّصف قطز اىؼذج‬
G41 Cutter Radius Compensation Left ‫اطرؼىاض ّصف قطز اىؼذج شَاه‬
G42 Cutter Radius Compensation Right ِ‫اطرؼىاض ّصف قطز اىؼذج يَي‬

Page 4
‫‪CNC‬‬

‫‪G80 Cancel drilling Cycle‬‬ ‫اىغاء دوراخ اىثقة اىثاترح‬


‫‪G83 Drilling Cycle‬‬ ‫دورج اىثقة اىؼَيق تاخزاج اىزايش‬
‫‪G84 Tapping Cycle‬‬ ‫دورج اىثقة تذمز اىقالوظ يَيِ‬
‫‪G85 reaming Cycle‬‬ ‫دورج اىثزغيح‬
‫) ‪G98 Return To Start Plane ( Drilling Cycle‬‬ ‫اىزخىع اىً ٍظرىي اىثذء تؼذ اىثقة‬
‫(‪G99 Return Withdrawal Plan (Drilling Cycle‬‬ ‫اىزخىع اىً ٍظرىي اىظحة واالرذذاد تؼذ اىثقة‬

‫‪Page 5‬‬
CNC

M Codes Fanuc Series 21


[Turning]

M Commands ‫اسم الكود‬


M00 Programming Stop ‫ذىقف اىثزّاٍح‬
M01 Programming Stop Conditional ‫ذىقف اىثزّاٍح اىَشزوط‬
M02 Main Program End ‫ّهايح اىثزّاٍح‬
M03 Main Spindle On Clockwise ‫دوراُ اىظزف ٍغ اذدآ ػقارب اىظاػح‬
M04 Main Spindle On Counterclockwise ‫دوراُ اىظزف ٍغ ػنض اذدآ ػقارب اىظاػح‬
M05 Main Spindle Stop ‫ذىقف اىظزف‬
M08 Coolant On ‫ذشغيو طائو اىرثزيذ‬
M09 Coolant Off ‫ايقاف طائو اىرثزيذ‬
M20 tailstock Back ‫ذحزيل اىغزاب اىَرحزك ىيخيف‬
M21 tailstock Forward ً‫ذحزيل اىغزاب اىَرحزك ىالٍا‬
M25 Open Clamping Device ‫فرح خهاس اىرثثيد‬
M26 Close Clamping Device ‫غيق خهاس اىرثثيد‬
M30 Program End ‫اّهاء اىثزّاٍح اىزئيظً ٍغ اىؼىدج ىثذايح اىثزّاٍح‬
M98 Subprogram Call ً‫اطرذػاء اىثزّاٍح اىفزػ‬
M99 Subprogram End Jump Instruction ً‫اّهاء اىثزّاٍح اىفزػ‬

Page 6

You might also like