Explore our comprehensive G-code list for CNC programming! This essential guide covers all the key commands and their functions, helping you optimize your CNC machine operations with ease. Perfect for beginners and experienced machinists alike.
Command | Detail | Modal or Not |
---|---|---|
G00 | Rapid positioning for quick movement | Modal |
G01 | Linear interpolation at a specified feed rate | Modal |
G02 | Circular interpolation (clockwise) | Modal |
G03 | Circular interpolation (counterclockwise) | Modal |
G04 | Dwell command for pausing for a set time | Non-modal |
G15 | Cancel polar coordinate interpolation | Modal |
G16 | Polar coordinate interpolation | Modal |
G20 | Programming in inches | Non-modal |
G21 | Programming in millimeters | Non-modal |
G28 | Return to home position | Non-modal |
G40 | Cancel cutter radius compensation | Modal |
G49 | Cancel tool length offset | Non-modal |
G50 | Set maximum spindle speed | Non-modal |
G50.1 | Set scaling factor for the current coordinate system | Non-modal |
G51.1 | Set scaling factor for 3D tool path | Non-modal |
G52 | Local Coordinate System | Modal |
G53 | Machine Coordinate System | Non-modal |
G54 | Set work coordinate system 1 | Modal |
G55 | Set work coordinate system 2 | Modal |
G56 | Set work coordinate system 3 | Modal |
G57 | Set work coordinate system 4 | Modal |
G58 | Set work coordinate system 5 | Modal |
G59 | Set work coordinate system 6 | Modal |
G68 | Coordinate rotation at a specified angle | Modal |
G69 | Cancel coordinate rotation | Modal |
G90 | Absolute programming mode | Modal |
G91 | Incremental programming mode | Modal |
G92 | Set position register | Non-modal |
G98 | Return to the initial point in canned cycles | Modal |
G99 | Return to R-point in canned cycles | Modal |
G73 | High-speed drilling cycle (peck drilling) | Modal |
G74 | Tapping cycle (left-hand) | Modal |
G76 | Fine boring cycle / multi-pass threading | Modal |
G80 | Cancel canned cycle | Modal |
G81 | Simple drilling cycle | Modal |
G82 | Drilling cycle with dwell | Modal |
G83 | Peck drilling cycle | Modal |
G85 | Boring cycle with spindle feed | Modal |
G86 | Boring cycle with spindle stop | Modal |
G88 | Boring cycle with manual retraction | Modal |
G89 | Boring cycle with dwell after the hole | Modal |