Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

PRODUCTS ABOUT BLOG COOKBOOKS DIYCNC PROJECTS QUESTIONX

FreeTrials HELP

GCodeandMCodeReference
forMilling
GCode Tools Milling Turning

ThesearethecommongcodesandmcodesformillingthatGWizardEditorsupportsfor
Mills.CodecategoriesarethegroupingsforthegcodeWizard(typeCtrl+GfortheWizard).
Functiontellswhatthegcodedoes,Notesgivesalittlemoreinformationsuchasthe
parameters,andTutorialisalink(ifany)toatutorialfromourOnlineGCodeTutorialthatuses
GWizardEditortoteachhowtoprogramthegcode.

Pssst!Hey,ifyou'reherelookingupgcodes,maybeyou'dliketofindan
easierway.Whatcouldbebetterthansoftwarethattellsyouexactlywhateach
gcodedoesinplainEnglish?

That'swhatGWizardEditorislike.

http://www.cnccookbook.com/CCCNCGCodeRef.html 1/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

GCodeiscomplicated.
GWizardEditormakesiteasy.

TryItFree!

Code Category Function Notes Tutorials

G00andMDI.
Moveinastraightlineatrapids XYZof
G00 Motion
speed. endpoint LinearMotion:G00
andG01

Moveinastraightlineatlast G01andMDI.
XYZof
G01 Motion speedcommandedbya LinearMotion:G00
endpoint
(F)eedrate andG01

XYZof
endpoint
Clockwisecirculararcat G02/G03Tutorialand
http://www.cnccookbook.com/CCCNCGCodeRef.html 2/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

G02 Motion (F)eedrate IJKrelative Examples


tocenter

Rforradius

XYZof
endpoint
Counterclockwisecirculararc G02/G03Tutorialand
G03 Motion IJKrelative
at(F)eedrate Examples
tocenter

Rforradius

Pfor PreciseTimingand
milliseconds Speed:Dwell,Exact
G04 Motion Dwell:Stopforaspecifiedtime.
Xfor Stop,Backlash
Compensation
seconds

G05 Motion FADALNonModalRapids


PreciseTimingand
Speed:Dwell,Exact
G09 Motion Exactstopcheck
Stop,Backlash
Compensation

G10 Compensation Programmableparameterinput
TurnPolarCoordinatesOFF, G15/G16Polar
G15 Coordinate
returntoCartesianCoordinates Coordinates
G15/G16Polar
G16 Coordinate TurnPolarCoordinatesON
Coordinates
CNCGCode
G17 Coordinate SelectXYplane
Coordinates
CNCGCode
G18 Coordinate SelectXZplane
Coordinates
CNCGCode
G19 Coordinate SelectYZplane
Coordinates
G20andG21:Unit
G20 Coordinate Programcoordinatesareinches
Conversion
G20andG21:Unit
G21 Coordinate Programcoordinatesaremm
Conversion
G28:Returnto
G27 Motion Referencepointreturncheck
ReferencePoint
G28:Returnto
G28 Motion Returntohomeposition
ReferencePoint
Returnfromthereference G28:Returnto
G29 Motion
position ReferencePoint
Returntothe2nd,3rd,and4th G28:Returnto
G30 Motion
referencepoint ReferencePoint
Constantleadthreading(like
http://www.cnccookbook.com/CCCNCGCodeRef.html 3/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

G32 Canned G01synchronizedwithspindle)


Toolcuttercompensationoff
G40 Compensation
(radiuscomp.)
FeedsandSpeedsCalculator: STARTYOURFREETRIALNOW
Toolcuttercompensationleft

G41 Compensation
(radiuscomp.)
Toolcuttercompensationright
G42 Compensation
(radiuscomp.)
Applytoollengthcompensation
G43 Compensation
(plus)
Applytoollengthcompensation
G44 Compensation
(minus)
G49 Compensation Toollengthcompensationcancel
G50 Compensation Resetallscalefactorsto1.0
G51 Compensation Turnonscalefactors
Localworkshiftforall
G52 Coordinate coordinatesystems:addXYZ
offsets
Machinecoordinatesystem
G53 Coordinate
(cancelworkoffsets)
Workcoordinatesystem(1st
G54 Coordinate
Workpiece)
Workcoordinatesystem(2nd
G55 Coordinate
Workpiece)
Workcoordinatesystem(3rd
G56 Coordinate
Workpiece)
Workcoordinatesystem(4th
G57 Coordinate
Workpiece)
Workcoordinatesystem(5th
G58 Coordinate
Workpiece)
Workcoordinatesystem(6th
G59 Coordinate
Workpiece)
PreciseTimingand
Speed:Dwell,Exact
G61 Other Exactstopcheckmode
Stop,Backlash
Compensation
G62 Other Automaticcorneroverride
G63 Other Tappingmode
G64 Other Bestspeedpath
Subprogramsand
G65 Other Custommacrosimplecall
Macros
G68andG69Tutorial
G68 Coordinate CoordinateSystemRotation
andExamples
CancelCoordinateSystem G68andG69Tutorial
G69 Coordinate
Rotation andExamples
Highspeeddrillingcycle(small
G73 Canned
retract)
G74 Canned Lefthandtappingcycle
G76 Canned Fineboringcyle
http://www.cnccookbook.com/CCCNCGCodeRef.html 4/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

G80 Canned Cancelcannedcycle


G81 Canned Simpledrillingcycle
Drillingcyclewithdwell
G82 Canned
(counterboring)STARTYOURFREETRIALNOW
FeedsandSpeedsCalculator:

G83 Canned Peckdrillingcycle(fullretract)
G84 Canned Tappingcycle
Boringcannedcycle,nodwell,
G85 Canned
feedout
Boringcannedcycle,spindle
G86 Canned
stop,rapidout
G87 Canned Backboringcannedcycle
Boringcannedcycle,spindle
G88 Canned
stop,manualout
Boringcannedcycle,dwell,feed
G89 Canned
out
AbsoluteprogrammingofXYZ
G90 Coordinate
(typeBandCsystems)
AbsoluteprogrammingIJK
G90.1 Coordinate
(typeBandCsystems)
Incrementalprogrammingof
G91 Coordinate
XYZ(typeBandCsystems)
IncrementalprogrammingIJK
G91.1 Coordinate
(typeBandCsystems)
Offsetcoordinatesystemand
G92 Coordinate
saveparameters
G92 Clampofmaximumspindle
Motion S
(alternate) speed
Canceloffsetandzero
G92.1 Coordinate
parameters
Canceloffsetandretain
G92.2 Coordinate
parameters
Offsetcoordinatesystemwith
G92.3 Coordinate
savedparameters
Unitsperminutefeedmode.
G94 Motion
Unitsininchesormm.
Unitsperrevolutionfeedmode.
G95 Motion
Unitsininchesormm.
G96:ConstantSurface
G96 Motion Constantsurfacespeed
Speed
G96:ConstantSurface
G97 Motion Cancelconstantsurfacespeed
Speed
ReturntoinitialZplaneafter
G98 Canned
cannedcycle
ReturntoinitialRplaneafter
G99 Canned
cannedcycle

http://www.cnccookbook.com/CCCNCGCodeRef.html 5/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

MCodes
FeedsandSpeedsCalculator: STARTYOURFREETRIALNOW
Code Category Function Notes Tutorials

M00 MCode ProgramStop(nonoptional)


OptionalStop:Operator
M01 MCode
SelectedtoEnable
M02 MCode EndofProgram
M03 MCode SpindleON(CWRotation) M03andMDI.
M04 MCode SpindleON(CCWRotation)
M05 MCode SpindleStop M05andMDI.
M06 MCode ToolChange
M07 MCode MistCoolantON M07andMDI.
M08 MCode FloodCoolantON M08andMDI.
M09 MCode CoolantOFF M09andMDI.

M17 MCode FADALsubroutinereturn
RigidTappingModeonFanuc
M29 MCode
Controls
EndofProgram,Rewindand
M30 MCode
ResetModes

Subprogramsand
M97 MCode HaasStyleSubprogramCall
Macros
Subprogramsand
M98 MCode SubprogramCall
Macros
Subprogramsand
M99 MCode ReturnfromSubprogram
Macros

Bonus:CheckOutourOtherCNCCookbooksforMoreInDepthCNC
Information!

Ifyou'reaCNCBeginnner,checkoutourCNCBeginner'sCookbook.It'llgetyouupto
speedwithasolidCNCfoundationfast.

WealsohaveCookbooksforFeedsandSpeeds,GCodeProgramming,CNC
ManufacturingandShopManagement,DIYCNC,anddon'tforgettheCNCCookbook
Blogwithover2millionvisitorsayearit'sthemostpopularCNCblogbyfarontheweb.

http://www.cnccookbook.com/CCCNCGCodeRef.html 6/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

DoyouwanttobeabetterCNC'er?
FeedsandSpeedsCalculator: STARTYOURFREETRIALNOW
GetBetterToolLife,SurfaceFinish,andMaterialRemovalRates.

StartNow,It'sFree!

http://www.cnccookbook.com/CCCNCGCodeRef.html 7/8
11/02/2017 CNCGCodeandMCodeReferenceforCNCMachines

FeedsandSpeedsCalculator: STARTYOURFREETRIALNOW

http://www.cnccookbook.com/CCCNCGCodeRef.html 8/8

You might also like