Cnc G-code List [better] Download -
Dry Runs: Before cutting metal, run your code in the air or through a simulator to check for "crashes."
CNC G-Code List: The Ultimate Guide and Downloadable PDF G-code is the programming language that tells a CNC machine exactly how to move. Whether you are operating a mill, lathe, or 3D printer, understanding these codes is the difference between a perfect part and a broken tool. This guide provides a comprehensive breakdown of the most common G-codes and a link to download a searchable reference sheet. Understanding G-Code Basics
G20: Inches. Sets the machine units to inches.G21: Millimeters. Sets the machine units to metric.G28: Return to Home. Sends the tool to the machine's zero position.G90: Absolute Positioning. All coordinates are relative to the part origin (0,0).G91: Incremental Positioning. All coordinates are relative to the current tool position. Compensation Codes cnc g-code list download
M-codes handle the "hardware" side of the machine, such as turning things on and off.
The following codes are the industry standards used by Fanuc, Haas, and most G-code based controllers. Motion Commands Dry Runs: Before cutting metal, run your code
G00: Rapid Positioning. Moves the tool at maximum speed to a coordinate. Used for air moves only.G01: Linear Interpolation. Moves the tool in a straight line at a specific feed rate (F).G02: Circular Interpolation (Clockwise). Cuts an arc or circle in a clockwise direction.G03: Circular Interpolation (Counter-Clockwise). Cuts an arc or circle in a counter-clockwise direction.G04: Dwell. Pauses the machine for a specific amount of time. Coordinate Systems and Units
G-code stands for "Geometric Code." It is a series of alphanumeric instructions that control the machine's motion. Most lines of code follow a simple structure: Understanding G-Code Basics G20: Inches
M00: Program Stop. Pauses the machine until the operator presses start.M03: Spindle On (Clockwise).M04: Spindle On (Counter-Clockwise).M05: Spindle Stop.M06: Tool Change. Instructs the machine to swap to a specific tool number (T).M08: Coolant On. Turns on the flood coolant.M09: Coolant Off.M30: Program End and Reset. Rewinds the code to the beginning. How to Use This List Effectively
Whether you are a hobbyist or a professional machinist, mastering these codes allows you to troubleshoot programs on the fly and optimize your cycle times for better efficiency.