Common G and M Codes For CNC Machines
Common G and M Codes For CNC Machines
CommonGandMcodesforCNCMachines
|Home|Features|Demo|Purchase|Support|DNCsettings|
Searchoursite
EditCNC:gcodeeditorandDNCsoftware.
CommonGcodesandMcodesforCNCmachinecontrols
Notallcodesareavailableonallcontrols,andsomecontrolshaveothercodes.
Seeyourmachinemanualfordetailedexplanations.
CNCGcodes
G00PositioningatrapidspeedMillandLathe
G01Linearinterpolation(machiningastraightline)MillandLathe
G02Circularinterpolationclockwise(machiningarcs)MillandLathe
G03Circularinterpolation,counterclockwiseMillandLathe
G04MillandLathe,Dwell
G09MillandLathe,Exactstop
G10SettingoffsetsintheprogramMillandLathe
G12Circularpocketmilling,clockwiseMill
G13Circularpocketmilling,counterclockwiseMill
G17XYplaneforarcmachiningMillandLathewithlivetooling
G18ZXplaneforarcmachiningMillandLathewithlivetooling
G19ZYplaneforarcmachiningMillandLathewithlivetooling
G20InchunitsMillandLathe
G21MetricunitsMillandLathe
G27ReferencereturncheckMillandLathe
G28AutomaticreturnthroughreferencepointMillandLathe
G29MovetolocationthroughreferencepointMillandLathe(slightlydifferentforeachmachine)
G31SkipfunctionMillandLathe
G32ThreadcuttingLathe
G33ThreadcuttingMill
G40CanceldiameteroffsetMill.CanceltoolnoseoffsetLathe
G41CuttercompensationleftMill.ToolnoseradiuscompensationleftLathe
G42CuttercompensationrightMill.ToolnoseradiuscompensationrightLathe
G43ToollengthcompensationMill
G44ToollengthcompensationcancelMill(sometimesG49)
G50SetcoordinatesystemandmaximumRPMLathe
G52LocalcoordinatesystemsettingMillandLathe
G53MachinecoordinatesystemsettingMillandLathe
G54~G59Workpiececoordinatesystemsettings#1t0#6MillandLathe
G61ExactstopcheckMillandLathe
G65CustommacrocallMillandLathe
G70FinishcycleLathe
G71RoughturningcycleLathe
G72RoughfacingcycleLathe
G73IrregularroughturningcycleLathe
G73ChipbreakdrillingcycleMill
G74LefthandtappingMill
G74FacegroovingorchipbreakdrillingLathe
G75ODgroovepeckingLathe
G76FineboringcycleMill
G76ThreadingcycleLathe
G80CancelcyclesMillandLathe
G81DrillcycleMillandLathe
G82DrillcyclewithdwellMill
G83PeckdrillingcycleMill
G84TappingcycleMillandLathe
G85Borein,boreoutMillandLathe
G86Borein,rapidoutMillandLathe
http://www.editcnc.com/GandMcodes.html
1/2
8/3/2016
CommonGandMcodesforCNCMachines
G87BackboringcycleMill
G90Absoluteprogramming
G91Incrementalprogramming
G92RepositionoriginpointMill
G92ThreadcuttingcycleLathe
G94PerminutefeedMill
G95PerrevolutionfeedMill
G96ConstantsurfacespeedcontrolLathe
G97Constantsurfacespeedcancel
G98PerminutefeedLathe
G99PerrevolutionfeedLathe
CNCMCodes
M00ProgramstopMillandLathe
M01OptionalprogramstopLatheandMill
M02ProgramendLatheandMill
M03SpindleonclockwiseLatheandMill
M04SpindleoncounterclockwiseLatheandMill
M05SpindleoffLatheandMill
M06ToolchangeMill
M08CoolantonLatheandMill
M09CoolantoffLatheandMill
M10ChuckorrotarytableclampLatheandMill
M11ChuckorrotarytableclampoffLatheandMill
M19OrientspindleLatheandMill
M30Programend,returntostartLatheandMill
M97LocalsubroutinecallLatheandMill
M98SubprogramcallLatheandMill
M99EndofsubprogramLatheandMill
CopyrightCNCConsultingInc.19992016SiteMap
Systemrequirements:
AnycomputerwithWindows95v950Borhigher(32bit),98,ME,2000XP,NT,VistaandWindows7&8(32or64bit).
HardwarerequirementswilldependonthesizeofCNCfilesprocessedwithEditCNCandConnectCNC.
ConnectCNCrequiresatleastoneserialCOMport,orUSB/RS232cportconverter.
http://www.editcnc.com/GandMcodes.html
2/2