My Haas Welcome,
!
Haas Tooling MyHaas/HaasConnect Sign In Register Haas Tooling MyHaas/HaasConnect Sign Out Welcome, My Machines Latest Activity My Quotes My Account My Users Sign Out
Find Your Distributor
  1. Select Language
    1. English
    2. Deutsch
    3. Español - España
    4. Español - México
    5. Français
    6. Italiano
    7. Português
    8. Český
    9. Dansk
    10. Nederlands
    11. Magyar
    12. Polski
    13. Svenska
    14. Türkçe
    15. 中文
    16. Suomi
    17. Norsk
    18. الإنجليزية
    19. български
    20. Hrvatski
    21. Ελληνικά
    22. Română
    23. Slovenský
    24. Slovenščina
    25. 한국어
    26. 日本語
    27. Українська
  • machines Main Menu
    • Vertical Mills
      Vertical Mills
      Vertical Mills View All
      • Vertical Mills
      • VF Series
      • Universal Machines
      • VR Series
      • VP-5 Prismatic
      • Pallet-Changing VMCs
      • Mini Mills
      • Mold Machines
      • High-Speed Drill Centers
      • Drill/Tap/ Mill Series
      • Toolroom Mills
      • Pocket Mill
      • Compact Mills
      • Gantry Series
      • SR Sheet Routers
      • Extra-Large VMC
      • Double-Column Mills
      • 3+2 Positioning Machines
    • Multi-Axis Solutions
      Multi-Axis Solutions
      Multi-Axis Solutions View All
      • Multi-Axis Solutions
      • Y-Axis Lathes
      • 5-Axis Mills
    • Lathes
      Lathes
      Lathes View All
      • Lathes
      • ST Series
      • Dual-Spindle
      • Box Way Series
      • Toolroom Lathes
      • Chucker Lathe
      • Haas Bar Feeders
    • Horizontal Mills
      Horizontal Mills
      Horizontal Mills View All
      • Horizontal Mills
      • 50-Taper
      • 40-Taper
    • Rotaries & Indexers
      Rotaries & Indexers
      Rotaries & Indexers View All
      • Rotaries & Indexers
      • Rotary Tables
      • Indexers
      • 5-Axis Rotaries
      • Extra-Large Rotaries
    • Special Series
      Special Series
      Special Series View All
      • Special Series
      • EU_Series_Redirect
    • Automation Systems
      Automation Systems
      Automation Systems View All
      • Automation Systems
      • Mill Automation
      • Lathe Automation
      • Automatic Parts Loaders
      • Automation Models
    • Desktop Machines
      Desktop Machines
      Desktop Machines View All
      • Desktop Machines
      • Desktop Mill
      • Desktop Lathe
      • Control Simulator, Standard
      • Control Simulator, Premium
    • Shop Equipment
      Shop Equipment
      Shop Equipment View All
      • Shop Equipment
      • Knee Mill
      • Haas Manual Lathes
      • Haas Saws
    • Fabrication Machines
      Fabrication Machines
      Fabrication Machines View All
      • Fabrication Machines
      • Laser Cutting Machines
      • CNC Press Brakes
    • QUICK LINKS Special Series  Special Series 
      EU SERIES EU SERIES BUILD & PRICE | PRICE LIST BUILD & PRICE | PRICE LIST In-Stock Machines In-Stock Machines WHAT’S NEW WHAT’S NEW YOUR FIRST CNC YOUR FIRST CNC
      SHOPPING TOOLS
      • Build & Price a Haas
      • Price List
      • Available Inventory
      • CNCA Financing
      WANT TO TALK TO SOMEONE?

      A Haas Factory Outlet (HFO) can answer your questions, and walk you through your best options.

      CONTACT YOUR DISTRIBUTOR >
  • Options Main Menu
    • The Haas Control Value Option Packages
      Value Option Packages
      Value Option Packages View All
      • Value Option Packages
    • Product Image Spindles
      Spindles
      Spindles View All
      • Spindles
    • Product Image Tool Changers
      Tool Changers
      Tool Changers View All
      • Tool Changers
    • Product Image 4th- | 5th-Axis
      4th- | 5th-Axis
      4th- | 5th-Axis View All
      • 4th- | 5th-Axis
    • Product Image Turrets & Live Tooling
      Turrets & Live Tooling
      Turrets & Live Tooling View All
      • Turrets & Live Tooling
    • Product Image Probing
      Probing
      Probing View All
      • Probing
    • Haas Chip & Coolant Management Chip & Coolant Management
      Chip & Coolant Management
      Chip & Coolant Management View All
      • Chip & Coolant Management
    • The Haas Control The Haas Control
      The Haas Control
      The Haas Control View All
      • The Haas Control
    • Product Image Product Options
      Product Options
      Product Options View All
      • Product Options
    • Product Image Tooling & Fixturing
      Tooling & Fixturing
      Tooling & Fixturing View All
      • Tooling & Fixturing
    • Product Image Workholding
      Workholding
      Workholding View All
      • Workholding
    • Product Image 5-Axis Solutions
      5-Axis Solutions
      5-Axis Solutions View All
      • 5-Axis Solutions
      • 5 Easy Steps to 5-Axis
    • QUICK LINKS Special Series  Special Series 
      EU SERIES EU SERIES BUILD & PRICE | PRICE LIST BUILD & PRICE | PRICE LIST In-Stock Machines In-Stock Machines WHAT’S NEW WHAT’S NEW YOUR FIRST CNC YOUR FIRST CNC
      SHOPPING TOOLS
      • Build & Price a Haas
      • Price List
      • Available Inventory
      • CNCA Financing
      WANT TO TALK TO SOMEONE?

      A Haas Factory Outlet (HFO) can answer your questions, and walk you through your best options.

      CONTACT YOUR DISTRIBUTOR >
  • Why Haas Main Menu
      Discover the Haas Difference
    • Why Haas
    • MyHaas
    • Education Community
    • Industry 4.0
    • Haas Certification
    • Customer Testimonials
  • Service Main Menu
      Welcome to Haas Service
      SERVICE HOME Operator’s Manuals How-To Procedures Troubleshooting Guides Preventive Maintenance Haas Parts Haas Tooling Videos
  • Videos Main Menu
  • Main Menu
    • View All
    • View All
    • View All
    • View All
      • HTEC Curriculum Support
    • View All
      • Haas 10 kg Cobot Package
      • Cobot Kits
      • DC-1 Drill Center
      • CNC Sales News
      • Do More With Your Haas
    • View All
    • View All
      • contact-us-test
      • 4 - AUTOMATION SYSTEMS
      • Carousel-V2
      • expert test
      • Demo_Day_Trident-test
      • Link Test
      • image-sale-tag-test
      • article-list-test
      • Haas 25 kg Robot Package
    • View All
      • Choose Options
    • View All
    • View All
    • View All
    • View All
    • View All
      • calc-test
    • View All
    • QUICK LINKS Special Series  Special Series 
      EU SERIES EU SERIES BUILD & PRICE | PRICE LIST BUILD & PRICE | PRICE LIST In-Stock Machines In-Stock Machines WHAT’S NEW WHAT’S NEW YOUR FIRST CNC YOUR FIRST CNC
      SHOPPING TOOLS
      • Build & Price a Haas
      • Price List
      • Available Inventory
      • CNCA Financing
      WANT TO TALK TO SOMEONE?

      A Haas Factory Outlet (HFO) can answer your questions, and walk you through your best options.

      CONTACT YOUR DISTRIBUTOR >
  • Haas Tooling Main Menu
  • Haas Service Parts Main Menu
My Haas Welcome,
!
Haas Tooling MyHaas/HaasConnect Sign In Register Haas Tooling MyHaas/HaasConnect Sign Out Welcome, My Machines Latest Activity My Quotes My Account My Users Sign Out
Find Your Distributor
  1. Select Language
    1. English
    2. Deutsch
    3. Español - España
    4. Español - México
    5. Français
    6. Italiano
    7. Português
    8. Český
    9. Dansk
    10. Nederlands
    11. Magyar
    12. Polski
    13. Svenska
    14. Türkçe
    15. 中文
    16. Suomi
    17. Norsk
    18. الإنجليزية
    19. български
    20. Hrvatski
    21. Ελληνικά
    22. Română
    23. Slovenský
    24. Slovenščina
    25. 한국어
    26. 日本語
    27. Українська
×

Search Results

Web Pages

Images

    • <
    • 1
    • >

7 - CM - G-Codes

Compact Mill - Operator's Manual Supplement


  • 0 - CM - Table of Contents
  • 1 - CM - Introduction
  • 2 - CM - Legal Information
  • 3 - CM - Safety
  • 4 - CM - Installation
  • 5 - CM - Control Icons
  • 6 - CM - Operation
  • 7 - CM - G-Codes
  • 8 - CM - M-Codes
  • 9 - CM - Settings
  • 10 - CM - Maintenance

Go To :

  • 7.1 Mill - G-Codes

7.1 Mill - G-Codes

This page gives detailed descriptions of the G-codes that you use to program your Compact Mill machine. 

CAUTION: The sample programs in this manual have been tested for accuracy, but they are for illustrative purposes only. The programs do not define tools, offsets, or materials. They do not describe workholding or other fixturing. If you choose to run a sample program on your machine, do so in Graphics mode. Always follow safe machining practices when you run an unfamiliar program.

NOTE: The sample programs in this manual represent a very conservative programming style. The samples are intended to demonstrate safe and reliable programs, and they are not necessarily the fastest or most efficient way to operate a machine. The sample programs use G-codes that you might choose not to use in more efficient programs.

What are G-Codes?

G-Codes

Code Description Group
G00 Rapid Motion Positioning 01
G01 Linear Interpolation Motion 01
G02 Circular Interpolation Motion CW 01
G03 Circular Interpolation Motion CCW 01
G04 Dwell 00
G09 Exact Stop 00
G10 Set Offsets 00
G12 Circular Pocket Milling CW 00
G13 Circular Pocket Milling CCW 00
G17 XY Plane Selection 02
G18 XZ Plane Selection 02
G19 YZ Plane Selection 02
G20 Select Inches 06
G21 Select Metric 06
G28 Return To Machine Zero Point 00
G29 Return From Reference Point 00
G31 Feed Until Skip 00
G35 Automatic Tool Diameter Measurement 00
G36 Automatic Work Offset Measurement 00
G37 Automatic Tool Offset Measurement 00
G40 Cutter Compensation Cancel 07
G41 2D Cutter Compensation Left 07
G42 2D Cutter Compensation Right 07
G43 Tool Length Compensation + (Add) 08
G44 Tool Length Compensation - (Subtract) 08
G47 Text Engraving 00
G49 G43/G44/G143 Cancel 08
G50 Cancel Scaling 11
G51 Scaling 11
G52 Set Work Coordinate System 00 or 12
G53 Non-Modal Machine Coordinate Selection 00
G54 Select Work Coordinate System #1 12
G55 Select Work Coordinate System #2 12
G56 Select Work Coordinate System #3 12
G57 Select Work Coordinate System #4 12
G58 Select Work Coordinate System #5 12
G59 Select Work Coordinate System #6 12
G60 Uni-Directional Positioning 00
G61 Exact Stop Mode 15
G64 G61 Cancel 15
G65 Macro Subprogram Call Option 00
G68 Rotation 16
G69 Cancel G68 Rotation 16
G70 Bolt Hole Circle 00
G71 Bolt Hole Arc 00
G72 Bolt Holes Along an Angle 00
G73 High-Speed Peck Drilling Canned Cycle 09
G74 Reverse Tap Canned Cycle 09
G76 Fine Boring Canned Cycle 09
G77 Back Bore Canned Cycle 09
G80 Canned Cycle Cancel 09
G81 Drill Canned Cycle 09
G82 Spot Drill Canned Cycle 09
G83 Normal Peck Drilling Canned Cycle 09
G84 Tapping Canned Cycle 09
G85 Boring Canned Cycle 09
G86 Bore and Stop Canned Cycle 09
G89 Bore In, Dwell, Bore Out Canned Cycle 09
G90 Absolute Position Command 03
G91 Incremental Position Command 03
G92 Set Work Coordinate Systems Shift Value 00
G93 Inverse Time Feed Mode 05
G94 Feed Per Minute Mode 05
G95 Feed per Revolution 05
G98 Canned Cycle Initial Point Return 10
G99 Canned Cycle R Plane Return 10
G100 Cancel Mirror Image 00
G101 Enable Mirror Image 00
G103 Limit Block Buffering 00
G107 Cylindrical Mapping 00
G110 #7 Coordinate System 12
G111 #8 Coordinate System 12
G112 #9 Coordinate System 12
G113 #10 Coordinate System 12
G114 #11 Coordinate System 12
G115 #12 Coordinate System 12
G116 #13 Coordinate System 12
G117 #14 Coordinate System 12
G118 #15 Coordinate System 12
G119 #16 Coordinate System 12
G120 #17 Coordinate System 12
G121 #18 Coordinate System 12
G122 #19 Coordinate System 12
G123 #20 Coordinate System 12
G124 #21 Coordinate System 12
G125 #22 Coordinate System 12
G126 #23 Coordinate System 12
G127 #24 Coordinate System 12
G128 #25 Coordinate System 12
G129 #26 Coordinate System 12
G136 Automatic Work Offset Center Measurement 00
G141 3D+ Cutter Compensation 07
G143 5-Axis Tool Length Compensation + 08
G150 General Purpose Pocket Milling 00
G154 Select Work Coordinates P1-P99 12
G156 Broaching Canned Cycle 09
G167 Modify Setting 00
G174 CCW Non-Vertical Rigid Tap 00
G184 CW Non-Vertical Rigid Tap 00
G187 Setting the Smoothness Level 00
G234 Tool Center Point Control (TCPC) 08
G253 G253 Orient Spindle Normal To Feature Coordinate System 00
G254 Dynamic Work Offset (DWO) 23
G255 Cancel Dynamic Work Offset (DWO) 23
G266 Visible Axes Linear Rapid % Motion 00
G268 Enable Feature Coordinate System 14
G269 Disable Feature Coordinate System 14

Recently Viewed Items

You Have No Recently Viewed Items Yet

Feedback
Haas Logo

Haas Delivered Price

This price includes shipping cost, export and import duties, insurance, and any other expenses incurred during shipping to a location in France agreed with you as a buyer. No other mandatory costs can be added to the delivery of a Haas CNC Product.

KEEP UP WITH THE LATEST HAAS TIPS AND TECHNOLOGY...

Sign up now!   

HAAS TOOLING ACCEPTS THE FOLLOWING:

  • Service & Support
  • Owners
  • Request Service
  • Operator Manuals
  • Haas Parts
  • Rotary Repair Request
  • Pre-Install Guides
  • Shopping Tools
  • Build & Price a New Haas
  • Available Inventory
  • The Haas Price List
  • CNCA Financing
  • About Haas
  • Accessibility Statement
  • DNSH Statement
  • Export Compliance
  • Careers
  • Certifications & Safety
  • Contact Us
  • History
  • Terms & Conditions
  • Haas Tooling Terms & Conditions
  • Privacy
  • Warranty
  • Haas Community
  • Haas Certification Program
  • Haas Motorsports
  • Gene Haas Foundation
  • Haas Technical Education Community
  • Events
  • Join the Conversation
  • Facebook
  • X
  • Flickr
  • YouTube
  • LinkedIn
  • Instagram
  • TikTok
© 2026 Haas Automation, Inc – CNC Machine Tools

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

2800 Sturgis Rd., Oxnard, CA 93030
Toll Free: (888) 817-4446 / Fax: 805-278-8554