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

WhatisGcode?

GcodeisjustthelanguageusedtocontrolCNCmachines.Thiscoursewillbegoingoversome
ofthebasicsofGcodeandhowtouseitwithCNCmachines.IfyouareinvolvedwithCNC
machiningthenyoushouldatleastknowalittlebitofGcodetounderstandwhatisgoingon.
ThiswillallowyoutomakesimplechangestoGcode,andunderstandwhattheCAMprogramis
doing.
UnderstandingCoordinateSystem
Makesuretonotethecoordinatesystemofyourmachine.Thisisatypicallayoutbutwhats
importanttorememberiseventhoughthetablemaymoveandtoolmaybestationaryyouneed
toknowwhatrespecttowhatyourcoordinatesystemissetup.Youmayseesomethingasa
positivemotionbutitmayactuallyneedtobecodedasanegativemotion.Firstorderof
businessshouldalwaysbetoidentifythecoordinatesystem.

ExpressingCoordinates
GcodeexpressescoordinatesbyusingXYZ.Whatthatmeansisyouplacetheaxisand

thenthelocationonthataxis.HereisasampleofGCodethatsetsaspeedandposition.

Prettysimpleright!Takealookatsomeoftheseotherlettersthatindicatesomethingspecific
(addressspecifications)inGCode.
OProgramnumber(Usedforprogramidentification)
NSequencenumber(Usedforlineidentification)
GPreparatoryfunction(Seebelow)
XXaxisdesignation
YYaxisdesignation
ZZaxisdesignation
RRadiusdesignation
FFeedratedesignation
SSpindlespeeddesignation
HToollengthoffsetdesignation
DToolradiusoffsetdesignation
TToolDesignation
MMiscellaneousfunction

You might also like