Appendix D Fundamentals of CNC Machining
G-M Code Reference
Copyright 2012 HSMWorks, ApS D-1
Rapid Positioning Motion (X,Y,Z,A,B)
G01 Linear Interpolation Motion (X,Y,Z,A,B,F)
G02 Circular Interpolation Motion CW (X,Y,Z,A,I,J,K,R,F)
G03 Circular Interpolation Motion CCW (X,Y,Z,A,I,J,K,R,F)
G04 Dwell (P) (P=Seconds)
G09 Exact Stop, Non-Modal
G17 Circular Motion XY Plane Selection (G02 or G03)
Circular Motion ZX Plane Selection (G02 or G03)
Circular Motion YZ Plane Selection (G02 or G03)
Inch Coordinate Positioning
Metric Coordinate Positioning
Machine Zero Return Thru Ref. Point (X,Y,Z,A,B)
Move to Location Through G28 Ref. Point (X,Y,Z,A,B)
2D Cutter Compensation, Left (X,Y,D)
G42 2D Cutter Compensation, Right (X,Y,D)
G43 Tool Length Compensation + (H,Z)
G49 Tool Length Compensation Cancel G43/G44/G43
G52 Work Offset Positioning Coordinate
G53 Machine Positioning Coordinate, Non-Modal (X,Y,Z,A,B)
Work Offset Positioning Coordinate #1
Work Offset Positioning Coordinate #2
Work Offset Positioning Coordinate #3
Work Offset Positioning Coordinate #4
Work Offset Positioning Coordinate #5
Work Offset Positioning Coordinate #6
HS Peck Drilling Canned Cycle (X,Y,A,B,Z,I,J,K,Q,P,R,L,F)
Reverse Tapping Canned Cycle (X,Y,A,B,Z,J,R,L,F)
G76 Fine Boring Canned Cycle (X,Y,A,B,Z,I,J,P,Q,R,L,F)
G77 Black Bore Canned Cycle (X,Y,A,B,Z,I,J,Q,R,L,F)
G80 Cancel Canned Cycle
G81 Drill Canned Cycle (X,Y,A,B,Z,R,L,F)
G82 Spot Drill / Counterbore Canned Cycle (X,Y,A,B,Z,P,R,L,F)
G83 Peck Drill Deep Hole Canned Cycle (X,Y,A,B,Z,I,J,K,Q,P,R,L,F)
Tapping Canned Cycle (X,Y,A,B,Z,J,R,L,F)
Bore In ~ Bore Out Canned Cycle (X,Y,A,B,Z,R,L,F)
Bore In ~ Stop ~ Rapid Out Canned Cycle (X,Y,A,B,Z,R,L,F)
Bore In ~ Manual Retract Canned Cycle (X,Y,A,B,Z,R,L,F)
Bore In ~ Dwell ~ Manual Retract Canned Cycle (X,Y,A,B,Z,P,R,L,F)
Bore In ~ Dwell ~ Bore Out Canned Cycle (X,Y,A,B,Z,P,R,L,F)
Absolute Positioning Command
Incremental Positioning Command
Global Work Coordinate System
G93 Inverse Time Feed Mode ON
G94 Inverse Time Feed OFF / Feed Per Minute ON
G98 Canned Cycle Initial Point Return
G99 Canned Cycle R Plane Return
Table 1: Mill G-Codes