List of CNC Machine Codes
List of CNC Machine Codes
List of CNC Machine Codes
MachineMateIncFullListofCNCCodes
PowerAutomationAmerica,Inc.
ThenewgenerationofCNCsPCBasedandOpenArchitecture
PowerAutomationAmerica
NCProgrammingCodes
NCProgrammingasperISO(DIN66025)andRS274
GCodessimpledefinition
G00Rapidtraverse
G01Linearinterpolationwithfeedrate
G02Circularinterpolation(clockwise)
G03Circularinterpolation(counterclockwise)
G2/G3Helicalinterpolation
G04Dwelltimeinmilliseconds
G05Splinedefinition
G06Splineinterpolation
G07Tangentialcircularinterpolation/Helixinterpolation/Polygoninterpolation/Feedrateinterpolation
G08Rampingfunctionatblocktransition/Lookahead"off"
G09Norampingfunctionatblocktransition/Lookahead"on"
G10Stopdynamicblockpreprocessing
G11Stopinterpolationduringblockpreprocessing
G12Circularinterpolation(cw)withradius
G13Circularinterpolation(ccw)withradius
G14Polarcoordinateprogramming,absolute
G15Polarcoordinateprogramming,relative
G16Definitionofthepolepointofthepolarcoordinatesystem
G17SelectionoftheX,Yplane
G18SelectionoftheZ,Xplane
G19SelectionoftheY,Zplane
G20Selectionofafreelydefinableplane
G21Parallelaxes"on"
G22Parallelaxes"off"
G24Safezoneprogramminglowerlimitvalues
G25Safezoneprogrammingupperlimitvalues
G26Safezoneprogramming"off"
G27Safezoneprogramming"on"
G33Threadcuttingwithconstantpitch
G34Threadcuttingwithdynamicpitch
G35Oscillationconfiguration
G38Mirrorimaging"on"
G39Mirrorimaging"off"
G40Pathcompensations"off"
G41Pathcompensationleftoftheworkpiececontour
G42Pathcompensationrightoftheworkpiececontour
G43Pathcompensationleftoftheworkpiececontourwithalteredapproach
G44Pathcompensationrightoftheworkpiececontourwithalteredapproach
G50Scaling
G51Partrotationprogrammingindegrees
G52Partrotationprogramminginradians
G53Zerooffsetoff
G54Zerooffset#1
G55Zerooffset#2
G56Zerooffset#3
G57Zerooffset#4
G58Zerooffset#5
G59Zerooffset#6
http://www.machinemate.com/FullListCodes.htm
1/5
7/22/2015
MachineMateIncFullListofCNCCodes
G63Feed/spindleoverridenotactive
G66Feed/spindleoverrideactive
G70Inchformatactive
G71Metricformatactive
G72Interpolationwithprecisionstop"off"
G73Interpolationwithprecisionstop"on"
G74Movetohomeposition
G75Curvaturefunctionactivation
G76Curvatureaccelerationlimit
G78Normalcyfunction"on"(rotationalaxisorientation)
G79Normalcyfunction"off"
G80G89formillingapplications:
G80Cannedcycle"off"
G81Drillingtofinaldepthcannedcycle
G82Spotfacingwithdwelltimecannedcycle
G83Deepholedrillingcannedcycle
G84TappingorThreadcuttingwithbalancedchuckcannedcycle
G85Reamingcannedcycle
G86Boringcannedcycle
G87Reamingwithmeasuringstopcannedcycle
G88Boringwithspindlestopcannedcycle
G89Boringwithintermediatestopcannedcycle
G81G88forcylindricalgrindingapplications:
G81Reciprocationwithoutplunge
G82Incrementalfacegrinding
G83Incrementalplungegrinding
G84Multipassfacegrinding
G85Multipassdiametergrinding
G86Shouldergrinding
G87Shouldergrindingwithfaceplunge
G88Shouldergrindingwithdiameterplunge
G90Absoluteprogramming
G91Incrementalprogramming
G92Positionpreset
G93Constanttoolcircumferencevelocity"on"(grindingwheel)
G94Feedinmm/min(orinch/min)
G95Feedperrevolution(mm/revorinch/rev)
G96Constantcuttingspeed"on"
G97Constantcuttingspeed"off"
G98PositioningaxissignaltoPLC
G99Axisoffset
G100Polartransformation"off"
G101Polartransformation"on"
G102Cylinderbarreltransformation"on"cartesiancoordinatesystem
G103Cylinderbarreltransformation"on,"withrealtimeradiuscompensation(RRC)
G104Cylinderbarreltransformationwithcenterlinemigration(CLM)andRRC
G105Polartransformation"on"withpolaraxisselections
G106Cylinderbarreltransformation"on"polar/cylindercoordinates
G107Cylinderbarreltransformation"on"polar/cylindercoordinateswithRRC
G108Cylinderbarreltransformationpolar/cylindercoordinateswithCLMandRRC
G109Axistransformationprogrammingofthetooldepth
G110Powercontrolaxisselection/channel1
G111PowercontrolpreselectionV1,F1,T1/channel1(Voltage,Frequency,Time)
G112PowercontrolpreselectionV2,F2,T2/channel1
G113PowercontrolpreselectionV3,F3,T3/channel1
G114PowercontrolpreselectionT4/channel1
G115PowercontrolpreselectionT5/channel1
G116PowercontrolpreselectionT6/pulsingoutput
G117PowercontrolpreselectionT7/pulsingoutput
G120Axistransformationorientationchangingofthelinearinterpolationrotaryaxis
G121Axistransformationorientationchangeinaplane
G125Electronicgearboxplainteeth
G126Electronicgearboxhelicalgearing,axial
G127Electronicgearboxhelicalgearing,tangential
G128Electronicgearboxhelicalgearing,diagonal
G130Axistransformationprogrammingofthetypeoftheorientationchange
G131Axistransformationprogrammingofthetypeoftheorientationchange
G132Axistransformationprogrammingofthetypeoftheorientationchange
G133Zerolagthreadcutting"on"
G134Zerolagthreadcutting"off"
http://www.machinemate.com/FullListCodes.htm
2/5
7/22/2015
MachineMateIncFullListofCNCCodes
G140Axistransformationorientationdesignationworkpiecefixedcoordinates
G141Axistransformationorientationdesignationactivecoordinates
G160ARTactivation
G161ARTlearningfunctionforvelocityfactors"on"
G162ARTlearningfunctiondeactivation
G163ARTlearningfunctionforaccelerationfactors
G164ARTlearningfunctionforaccelerationchanging
G165Commandfilter"on"
G166Commandfilter"off"
G170Digitalmeasuringsignalsblocktransferwithhardstop
G171Digitalmeasuringsignalsblocktransferwithouthardstop
G172Digitalmeasuringsignalsblocktransferwithsmoothstop
G175SERCOSidentificationnumber"write"
G176SERCOSidentificationnumber"read"
G180Axistransformation"off"
G181Axistransformation"on"withnotrotatedcoordinatesystem
G182Axistransformation"on"withrotated/displacedcoordinatesystem
G183Axistransformationdefinitionofthecoordinatesystem
G184Axistransformationprogrammingtooldimensions
G186Lookaheadcorneraccelerationcircletolerance
G188Activationofthepositioningaxes
G190Diameterprogrammingdeactivation
G191Diameterprogramming"on"anddisplayofthecontactpoint
G192Diameterprogrammingonlydisplaycontactpointdiameter
G193Diameterprogrammingonlydisplaycontactpointactualaxescenterpoint
G200Cornersmoothing"off"
G201Cornersmoothing"on"withdefinedradius
G202Cornersmoothing"on"withdefinedcornertolerance
G203Cornersmoothingwithdefinedradiusuptomaximumtolerance
G210Powercontrolaxisselection/Channel2
G211PowercontrolpreselectionV1,F1,T1/Channel2
G212PowercontrolpreselectionV2,F2,T2/Channel2
G213PowercontrolpreselectionV3,F3,T3/Channel2
G214PowercontrolpreselectionT4/Channel2
G215PowercontrolpreselectionT5/Channel2
G216PowercontrolpreselectionT6/pulsingoutput/Channel2
G217PowercontrolpreselectionT7/pulsingoutput/Channel2
G220Angledwheeltransformation"off"
G221Angledwheeltransformation"on"
G222Angledwheeltransformation"on"butangledwheelmovesbeforeothers
G223Angledwheeltransformation"on"butangledwheelmovesafterothers
G265Distanceregulationaxisselection
G270Turningfinishingcycle
G271Stockremovalinturning
G272Stockremovalinfacing
G274Peckfinishingcycle
G275Outerdiameter/internaldiameterturningcycle
G276Multiplepassthreadingcycle
G310Powercontrolaxesselection/channel3
G311PowercontrolpreselectionV1,F1,T1/channel3
G312PowercontrolpreselectionV2,F2,T2/channel3
G313PowercontrolpreselectionV3,F3,T3/channel3
G314PowercontrolpreselectionT4/channel3
G315PowercontrolpreselectionT5/channel3
G316PowercontrolpreselectionT6/pulsingoutput/Channel3
G317PowercontrolpreselectionT7/pulsingoutput/Channel3
NotethatsomeoftheaboveGcodesarenotstandard.Specificcontrolfeatures,suchaslaserpowercontrol,
enablethoseoptionalcodes.
Mcodessimpledefinition
M00Unconditionalstop
M01Conditionalstop
M02Endofprogram
M03Spindleclockwise
M04Spindlecounterclockwise
M05Spindlestop
M06Toolchange(seeNotebelow)
M19Spindleorientation
http://www.machinemate.com/FullListCodes.htm
3/5
7/22/2015
MachineMateIncFullListofCNCCodes
M20Startoscillation(configuredbyG35)
M21Endoscillation
M30Endofprogram
M40Automaticspindlegearrangeselection
M41Spindlegeartransmissionstep1
M42Spindlegeartransmissionstep2
M43Spindlegeartransmissionstep3
M44Spindlegeartransmissionstep4
M45Spindlegeartransmissionstep5
M46Spindlegeartransmissionstep6
M70Splinedefinition,beginningandendcurve0
M71Splinedefinition,beginningtangential,endcurve0
M72Splinedefinition,beginningcurve0,endtangential
M73Splinedefinition,beginningandendtangential
M80Deleterestofdistanceusingprobefunction,fromaxismeasuringinput
M81DriveOnapplicationblock(resynchronizeaxispositionviaPLCsignalduringtheblock)
M101M108Turnofffastoutputbytebit1(to8)
M109Turnoffall(8)bitsinthefastoutputbyte
M111M118Turnonfastoutputbytebit1(to8)
M121M128Pulsate(on/off)fastoutputbytebit1(to8)
M140Distanceregulationon(configuredbyG265)
M141Distanceregulationoff
M150Deleterestofdistanceusingprobefunction,foraprobeinput(oneof16,M151M168)
M151M158Digitalinputbyte1bit1(tobit8)istheactiveprobeinput
M159PLCcannotdefinethebitmaskfortheprobeinputs
M160PLCcandefinethebitmaskfortheprobeinputs(upto16)
M161M168Digitalinputbyte2bit1(tobit8)istheactiveprobeinput
M170Continuetheblockprocessinglookaheadofthepartprogram(canceltheM171)
M171Stoptheblockprocessinglookaheadoftheprobeinputpartprogramsegment(likeaG10)
M200Activatethehandwheeloperationintheautomaticmode(tointroduceanoffsetintheprogram)
M201M208Selecttheaxis(bynumberfrom1to8)forthehandwheeloperation
M209Activatethehandwheeloperationintheautomaticmode,withPLCcontroloftheaxisselection
M210Deactivatethehandwheelinputwhileintheautomaticmode
M211Deactivatethishandwheelfeatureandalsoremovethehandwheeloffset(ifany)
M213Spindle2clockwise
M214Spindle2counterclockwise
M215Spindle2stop
M280Switchablespindle/rotaryaxis,rotaryaxison,firstcombination
M281Switchablespindle/rotaryaxis,rotaryaxison,secondcombination
M290Switchablespindle/rotaryaxis,spindleenabled,firstcombination
M291Switchablespindle/rotaryaxis,spindleenabled,secondcombination
Note:Othermachinefunctions,liketoolchange(usuallyM06)orcoolantcontrol,havetheirMcodevalue
specifiedbythePLCapplicationnotbytheCNCsoftware.MostoftheMcodevaluesinabovelistare
configurable.
OtherMcodes(uptoM699)canbehandledbythePLCapplicationbasedontheparticularmachine
requirements.
ChecktheListofStandardCodes
PowerAutomationAmerica,Inc.
11213WestLoopNorth,Suite170
Houston,Texas770558200
Phone:7132639400
Fax:7136869301
Email:[email protected]
BacktoProductDescription
BacktoHome
http://www.machinemate.com/FullListCodes.htm
4/5
7/22/2015
MachineMateIncFullListofCNCCodes
AllrightsreservedbyPowerAutomationAmerica,Inc.
copyright2009
http://www.machinemate.com/FullListCodes.htm
5/5