turning, drill, milling, milling machine

G-Code Commands for Turning and Milling Operations

 

G-Code Commands for CNC Turning and Milling Operations

 

Code

Turning

Milling

G00Fast moveFast move
G01Linear interpolationLinear interpolation
G02Circular Interpolation CWCircular Interpolation CW
G03Circular interpolation CCWCircular interpolation CCW
G04DwellDwell
G09Exact stop checkExact stop check
G10Data settingData setting
G11Data setting cancelData setting cancel
G15Polar coordinates
G16Polar coordinates cancel
G17XY plane designate
G18ZX plane designate
G19YZ plane designate
G20Set English unitsSet English units
G21Set metric unitsSet metric units
G22Stored stroke check onStored stroke check on
G23Stored stroke check offStored stroke check off
G25Spindle speed fluctuation detect onSpindle speed fluctuation detect on
G26Spindle speed fluctuation detect offSpindle speed fluctuation detect off
G27Machine zero position checkMachine zero position check
G28Machine zero return (point 1)Machine zero return (point 1)
G29Return from machine zeroReturn from machine zero
G30Machine zero return (point 2)Machine zero return (point 2)
G31Skip functionSkip function
G32Threading constant lead
G35Circular threading CW
G36Circular threading CCW
G40Tool nose radius offset cancelCutter radius offset cancel
G41Tool nose radius offset leftCutter radius offset left
G42Tool nose radius offset rightCutter radius offset right
G43Tool length offset positive
G44Tool length offset negative
G49Tool length compensation cancel
G50Maximum rpm presetScaling function cancel
G51Scaling function
G52Local coordinate system setLocal coordinate system set
G53Machine coordinate system setMachine coordinate system set
G54Work coordinate 1Work coordinate 1
G55Work coordinate 2Work coordinate 2
G56Work coordinate 3Work coordinate 3
G57Work coordinate 4Work coordinate 4
G58Work coordinate 5Work coordinate 5
G59Work coordinate 6Work coordinate 6
G60Single direction positioning
G61Exact stop modeExact stop mode
G62Automatic corner override modeAutomatic corner override mode
G63Tapping mode
G64Cutting modeCutting mode
G65Custom macro callCustom macro call
G66Custom modal macro callCustom macro modal call
G67Custom modal macro call cancelCustom modal macro call cancel
G68Mirror image for double turretsCoordinate system rotation
G69Mirror image for double turrets cancelCoordinate system rotation cancel
G70Profile finishing cycle
G71Profile roughing cycle Z axis direction
G72Profile roughing cycle X axis direction
G73Pattern repetition cycleHigh speed peck drilling cycle
G74Drilling cycleLeft hand threading cycle
G75Grooving cycle
G76Threading cycleFine boring cycle
G80Fixed cycle cancel
G81Drilling cycle
G82Spot drilling cycle
G83Peck drilling cycle
G84Right hand threading cycle
G85Boring cycle
G86Boring cycle
G87Back boring cycle
G88Boring cycle
G89Boring cycle
G90Cutting cycle AA /Absolute commandAbsolute command
G91Incremental commandIncremental command
G92Tool position registerTool position register
G94Feed rate per minute
G95Feed rate per revolution
G96Constant surface speed
G97Constant spindle speed
G98Feed rate per minuteReturn to initial level in a fixed cycle
G99Feed rate per revolutionReturn to R level in a fixed cycle