CNC Turning G-Codes List
1. Unit & Coordinate Setup |
||||
| G-Code | Function | Example | Machine Type | Notes |
| G20 | Inch Units | G20 | Universal | Common in US/EU machines |
| G21 | Metric Units | G21 | Universal | Global standard |
| G90 | Absolute Positioning | G90 | Universal | Default programming mode |
| G91 | Incremental Positioning | G91 | Universal | Relative movements |
| G54-G59 | Work Coordinate Systems | G54 | Universal | Extendable (G54.1 P1-P48) |
2. Motion Control |
||||
| G00 | Rapid Positioning | G00 X100 Y50 | Universal | Non-cutting move |
| G01 | Linear Interpolation | G01 X50 F200 | Universal | Requires feedrate (F) |
| G02 | CW Circular Interpolation | G02 X30 Y30 I5 J0 | Universal | IJK=center relative coords |
| G03 | CCW Circular Interpolation | G03 X30 Y30 R5 | Universal | R=radius value |
| G17 | XY Plane Selection | G17 | Universal | Default plane |
| G18 | XZ Plane Selection | G18 | Mill-Turn | Turning operations |
| G19 | YZ Plane Selection | G19 | 5-Axis | Side milling |
3. Tool Compensation |
||||
| G40 | Cancel Cutter Comp | G40 | Universal | Mandatory at program end |
| G41 | Cutter Comp Left | G41 D01 | Universal | D=offset number |
| G42 | Cutter Comp Right | G42 D02 | Universal | Must initiate first |
| G43 | Tool Length Comp (+) | G43 H01 Z50 | Universal | H=length offset number |
| G44 | Tool Length Comp (-) | G44 H02 | Universal | Rarely used |
| G49 | Cancel Length Comp | G49 | Universal | Safety command |
4. Canned Cycles |
||||
| G73 | High-Speed Peck Drilling | G73 X50 Y30 Z-20 Q3 R2 F100 | Universal | Q=peck depth |
| G74 | LH Tapping Cycle | G74 X30 Y20 Z-15 R3 F1.0 | Universal | F=pitch×RPM |
| G76 | Fine Boring Cycle | G76 X40 Y25 Z-18 Q0.1 R2 F50 | Universal | Q=retract value |
| G80 | Cancel Cycle | G80 | Universal | Must be explicit |
| G81 | Simple Drilling | G81 X30 Y40 Z-10 R2 F80 | Universal | Through holes |
| G82 | Spot Drilling | G82 X30 Y40 Z-5 P500 R2 F60 | Universal | P=dwell (ms) |
| G83 | Deep Hole Peck Drilling | G83 X50 Y30 Z-25 Q5 R2 F70 | Universal | Q=peck increment |
| G84 | RH Tapping Cycle | G84 X40 Y20 Z-12 R3 F1.25 | Universal | Needs spindle encoder |
| G85 | Boring Cycle | G85 X35 Y45 Z-18 R2 F40 | Universal | No spindle stop |
| G86 | Bore & Stop Cycle | G86 X35 Y45 Z-15 R2 F50 | Universal | Spindle stops |
5. Advanced Functions |
||||
| G28 | Return to Reference | G28 Z0 | Universal | Moves via intermediate point |
| G29 | Return from Reference | G29 X50 Y30 | Universal | Requires prior G28 |
| G52 | Local Coordinate System | G52 X10 Y5 | Universal | Temporary offset |
| G68 | Coordinate Rotation | G68 X0 Y0 R45 | Universal | R=rotation angle |
| G69 | Cancel Rotation | G69 | Universal | Must be explicit |
6. High-Speed Machining |
||||
| G05.1 | High-Speed Mode | G05.1 Q1 | Advanced CNC | Controller-specific |
| G08 | Look-Ahead | G08 P1 | 5-Axis | Smooth corners |
| G61 | Exact Stop | G61 | Universal | Decelerates at corners |
| G64 | Continuous Mode | G64 | Universal | Default cutting mode |
7. 5-Axis Functions |
||||
| G43.4 | Tool Center Point Control | G43.4 H01 | 5-Axis | Tool tip following |
| G54.4 | Extended Work Offsets | G54.4 P1 | 5-Axis | Additional coordinate systems |
| G68.2 | Dynamic Work Plane | G68.2 X0 Y0 Z0 I1 J0 K0 | 5-Axis | Defines tilted plane |
Factory Overview
Latest Post
Injection Mold Materials Commonly Used in the Automotive Industry
5 Points To Extend The Service Life Of Plastic Injection Mold
How To Optimize Injection Mold To Reduce Production Cycles?
How To Choose The Right Mold Supplier In The Automotive Industry?
Call
+86-0769-86066062
info@kehuimold.com
Service Time
9:00 AM – 10:00 PM