MyHaas Welcome,
!
Haas Tooling Guest Order History MyHaas/HaasConnect Sign In Register Haas Tooling My Account Order History Return History MyHaas/HaasConnect Sign Out Welcome, My Machines Latest Activity My Quotes My Account My Users Sign Out
0
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
    • Haas Vertical Mills 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
      • Compact Mills
      • Gantry Series
      • SR Sheet Routers
      • Extra-Large VMC
      • Double-Column Mills
      • Control Simulator
      • Mill Automatic Parts Loader
      • VMC/UMC Side-Loading Automatic Parts Loader
      • Compact Automatic Parts Loader
    • Product Image Multi-Axis Solutions
      Multi-Axis Solutions
      Multi-Axis Solutions View All
      • Multi-Axis Solutions
      • Y-Axis Lathes
      • 5-Axis Mills
    • Haas Lathes Lathes
      Lathes
      Lathes View All
      • Lathes
      • ST Series
      • Dual-Spindle
      • Box Way Series
      • Toolroom Lathes
      • Chucker Lathe
      • Haas Bar Feeder V2
      • Lathe Automatic Parts Loader
    • Haas Horizontal Mills Horizontal Mills
      Horizontal Mills
      Horizontal Mills View All
      • Horizontal Mills
      • 50-Taper
      • 40-Taper
    • Haas Rotaries & Indexers 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
    • Product Image Automation Systems
      Automation Systems
      Automation Systems View All
      • Automation Systems
      • Mill Automation
      • Lathe Automation
      • Automation Models
    • Haas Drill Centers Desktop Machines
      Desktop Machines
      Desktop Machines View All
      • Desktop Machines
      • Desktop Mill
      • Desktop Lathe
    • Haas Shop Equipment Shop Equipment
      Shop Equipment
      Shop Equipment View All
      • Shop Equipment
      • Bandsaw
      • Knee Mill
      • Surface Grinder, 2550
      • Surface Grinder, 3063
      • Laser Cutting Machine
    • 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
    • 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
      • Fiber Laser
    • View All
    • View All
      • HTEC Curriculum Support
    • View All
      • Haas 10 kg Cobot Package
      • Cobot Kits
    • View All
    • View All
      • 4 - AUTOMATION SYSTEMS
      • Mill Toolholding
      • Carousel-V2
    • View All
    • View All
    • View All
      • VF-4SS
    • 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
      Automation Accessories Shop Support Mill Toolholding Mill Cutting Tools Boring Systems Mill Workholding Lathe Toolholding Lathe Cutting Tools Lathe Workholding Package Kits ER Collets & Chucks Holemaking Threading Broaching Tombstones & Kits Manual Chucks For Milling Deburring & Abrasives Tool Presetter & Heat Shrinkers Storage & Handling Machine Maintenance Tooling Accessories Apparel & Accessories Measuring & Inspection Winner's Circle Winner's Circle Clearance Today's Hot Deals
    • Haas Tooling
    • Winner's Circle
      Winner's Circle Shop All
      • WINNERS_CIRCLE-1Y
    • Winner's Circle
      Winner's Circle Shop All
      • WC-1Y-EU
    • Today’s Hot Deals
      Today’s Hot Deals Shop All
      • Mill Toolholding
      • Mill Tooling
      • Measuring & Inspection
      • Boring Systems
      • Mill Workholding
      • Shell Mill Kits
      • Lathe Toolholding
      • Lathe Tooling
      • Lathe Workholding
      • ER Collets & Chucks
      • Holemaking
      • Threading
      • Broaching
      • Tool Storage
      • Apparel & Accessories
    • Clearance
      Clearance Shop All
    • Measuring & Inspection
      Measuring & Inspection Shop All
      • Probe Kits & Accessories
      • Edge & Center Finders
      • Comparative Measuring Gauges
      • Height Gauges
      • Calipers
      • Threaded Plug & Ring Gauges
      • Gauge Blocks
      • Pin Gauges
      • Drop Indicators
      • Dial Test Indicators
      • Bore Gauges
      • Indicator Accessories
      • V Blocks
      • Setup Blocks
      • Depth Measuring
      • Micrometers
      • Micrometer Accessories
      • Micrometer Kits
      • Bore Gauge Kits
      • Starter Kits
      • Indicator Kits
      • Caliper Kits
      • Toolholder Check Station
      • Height Setters
      • Coordinate Measuring Machines
    • Automation Accessories
      Automation Accessories Shop All
      • Cobot Kits
      • Cobot Kits
      • Protective Barriers
      • Grippers
      • Robot Cell Accessories
    • Shop Support
      Shop Support Shop All
      • Air Compressors
      • Laser Marking Machines
      • Bandsaw Blades
      • Bandsaw Accessories
      • Surface Grinding Wheels
      • Shop Equipment Accessories
    • Mill Toolholding
      Mill Toolholding Shop All
      • End Mill Holders
      • Shell Mill Holders
      • Shrink Fit Holders
      • ER Collet Chucks
      • Milling Chucks & Collets
      • NC Drilling Chucks
      • Pull Studs / Retention Knobs
      • Rotary Tool Holder & Tool Chuck Kits
      • Hydraulic Milling Chucks & Collets
      • Toolholder Attachments & Wrenches
      • Mill Broaching Holders
    • Mill Tooling
      Mill Tooling Shop All
      • Shell Mill Bodies
      • Milling Inserts
      • End Mills
      • Chamfer Mills & Inserts
      • Indexable End Mill Bodies
      • Ball End Mills
      • Chamfer End Mills
      • Roughing End Mills
      • Indexable Ball End Mills & Inserts
      • Shell Mill Kits
      • Chamfer Mill Kits
      • Indexable End Mill Kits
      • Dovetail Cutters
      • Indexable Dovetail Cutters
      • Engraving End Mills
      • Rotary Burrs / Die Grinding Bits
      • Keyseat Cutters
      • Corner Rounding End Mills
      • Slot Mill Bodies
      • CNC Router Bits For Wood
    • Boring Systems
      Boring Systems Shop All
      • Boring Heads & Cartridges
      • Boring Holders & Extensions
    • Mill Workholding
      Mill Workholding Shop All
      • Fixed-Jaw Vises
      • Self-Centering Vises
      • Adapter Plates
      • Vise Jaws
      • Vise Mounts & Fixtures
      • Vise Kits
      • Vise Parallels
      • Rotary Vise Kits
      • Fixture Clamps & Rails
      • Automated Workholding Kits
      • Tooling Fixture Subplates
      • Toolmakers' Vises
      • Clamp Force Gauges
      • Collet Fixtures
      • Angle Plates
    • Lathe Toolholding
      Lathe Toolholding Shop All
      • TL & CL Static Turning Holders
      • BOT Static Turning Holders
      • BMT Static Turning Holders
      • Live / Driven Turning Holders
      • Turning Holder Reduction Sleeves / Bushings
      • VDI Static Turning Holders
      • Turning Holder Accessories
    • Lathe Tooling
      Lathe Tooling Shop All
      • Cut-Off Tool Blocks & Blades
      • Cut-Off Tooling Kits
      • Turning Inserts
      • Grooving & Cut-Off Tools
      • Internal (ID) Grooving & Threading Tools
      • Threading Inserts
      • Threading Tools
      • Boring Bars / Internal (ID) Turning Tools
      • External (OD) Turning Tools
      • Cermet Turning Inserts
      • CBN Turning Inserts
      • Haas Notch Grooving & Threading Inserts
      • Haas Notch Grooving & Threading Tools
      • Micro Turning Tools
      • Desktop Lathe Tools
    • Lathe Workholding
      Lathe Workholding Shop All
      • Live Centers
      • Spindle Reduction Sleeves / Liners
      • Quick-Change Collets
      • Quick-Change Collet Chucks
      • 5C Collets
      • 5C Collet Sets
      • Lathe Jaw Boring Rings
      • Lathe Jaws
      • Bar Pullers
      • Scroll Chucks
      • Guide Pins
      • Collet Accessories
    • Package Kits
      Package Kits Shop All
      • Chip Clearing Fan Kits
      • Cutting Tool Kits
      • Indexable End Mill Kits
      • Cut-Off Tool Block & Blade Kits
      • Drill & Tap Kits
      • Indexable Drilling Kits
      • Shell Mill Kits
      • Chamfer Mill Kits
      • Rotary Tool Holder & Tool Chuck Kits
      • Lathe Starter Kits
      • Workholding Kits
      • Rotary Vise Kits
      • Vise Kits
      • 3-Jaw Chuck Kits for Mills
      • Tombstone Kits
      • Reduction Sleeve Kits
      • Automated Workholding Kits
      • Measuring & Inspection Kits
      • Starter Kits
      • Bore Gauge Kits
      • Caliper Kits
      • Indicator Kits
      • Micrometer Kits
    • ER Collets & Chucks
      ER Collets & Chucks Shop All
      • ER Straight-Bore Collets
      • ER Sealed Collets
      • ER Tap Collets
      • ER Collet Sets & Accessories
      • ER Collet Chucks
      • Straight Shank ER Collet Chucks
      • Straight Shank Keyless NC Drilling Chucks
    • Holemaking
      Holemaking Shop All
      • Carbide Drills
      • Indexable Drill Bodies
      • Indexable Drill Inserts
      • Modular Drill Bodies
      • Modular Drill Heads
      • Cobalt Drills & Sets
      • Center Drills
      • Reamers
      • Indexable Drilling Kits
      • Spot Drills
      • Spade Drill Bodies
      • Spade Drill Inserts
      • Countersinks
    • Threading
      Threading Shop All
      • Taps
      • Threading Inserts
      • Threading Tools
      • Thread Mills
      • Pipe Taps
      • Drill Tap Kits
    • Broaching
      Broaching Shop All
      • Broaching Tools
      • Broaching Inserts
    • Tombstones
      Tombstones Shop All
      • Tombstones
      • Tombstone Kits
      • Vise Cluster Towers
    • Manual Chucks For Milling
      Manual Chucks For Milling Shop All
      • 3-Jaw Chucks & Mounts for Mills
    • Deburring & Abrasives
      Deburring & Abrasives Shop All
      • Abrasive Pads
      • Deburr Tools
      • Deburr Wheels
      • Abrasive Sheets & Rolls
      • Sharpening / Lapping Stones
    • Tool Presetter & Heat Shrinkers
      Tool Presetter & Heat Shrinkers Shop All
      • Tool Presetting Machines
      • Shrink Fit Machines
    • Tool Storage
      Tool Storage Shop All
      • Tool Carts
      • Tool Tray
      • Tool Bags
    • Machine Maintenance
      Machine Maintenance Shop All
      • Spindle Test Bars
      • Levels
      • Refractometers
      • Machine Additives & Supplies
      • Machine Accessories
      • Machine Maintenance Kits
    • Tooling Accessories
      Tooling Accessories Shop All
      • Spindle & Toolholder Taper Cleaners
      • Haas Shop Lift
      • Toolholder Fixtures
      • CNC Chip Clearing Fans
      • Hammers & Mallets
      • Anti-Fatigue Mats
      • Layout Tools
      • Wrenches
      • Magnetic Tools
      • Torque Screwdrivers
      • Hand Cutting Tools
      • Shop Stools
      • Lifting Magnets
      • Safety Apparel
      • Cutting Tool Sharpeners
    • Apparel & Accessories
      Apparel & Accessories Shop All
      • Accessories
      • Apparel
    • HAAS TOOLING QUICK LINKS
      NEW PRODUCTS NEW PRODUCTS NEW PRODUCTS NEW PRODUCTS
      MOST POPULAR MOST POPULAR
      TOOLING PROMOS TOOLING PROMOS
      FINANCING & OPEN TERMS FINANCING & OPEN TERMS PAY BY INVOICE PAY BY INVOICE
      FAQs FAQs
      KITS CREATED FOR YOU KITS CREATED FOR YOU
  • Haas Service Parts Main Menu
      Automatic Pallet Changer Lathe Turret Tool Changer Chip Management Coolant Counterbalance Electrical Cabinet Enclosure Hydraulics Lubrication Maintenance Pendant Probing Rotary Spindle Tailstock
    • Haas Service Parts
    • Automatic Pallet Changer
      Automatic Pallet Changer Shop All
      • HMC - Automatic Pallet Changer
      • VMC - Automatic Pallet Changer
    • Lathe Turret
      Lathe Turret Shop All
      • Lathe - Turret
      • Live Tooling
    • Tool Changer
      Tool Changer Shop All
      • Side Mount
      • Umbrella
    • Chip Management
      Chip Management Shop All
      • Multi Auger
      • Single Auger
    • Coolant
      Coolant Shop All
      • Auxiliary Filter
      • HPC-300 (Lathe)
      • HPC-1000 (Lathe)
      • Oil Skimmer
      • Standard Coolant
      • TSC-300 (Mill)
      • TSC-1000 (Mill)
      • Coolant Refill
      • Loc-Line
    • Counterbalance
      Counterbalance Shop All
      • Charge & Discharge Hose
    • Electrical Cabinet
      Electrical Cabinet Shop All
      • Fans
      • Filters
      • Upgrade Kits
    • Enclosure
      Enclosure Shop All
      • Accessories
      • Air Nozzle
      • Decals
      • Door Bumpers
      • Lighting
      • Windows, Gaskets, & Weather Strip
      • Chip & Coolant Management
    • Hydraulics
      Hydraulics Shop All
      • Filters
      • Gauges
      • Heat Exchanger
      • Hoses
    • Lubrication
      Lubrication Shop All
      • Bijur Mechanical Lubrication
      • Minimum Lubrication
    • Maintenance
      Maintenance Shop All
      • Grease, Oil, & Sealants
    • Pendant
      Pendant Shop All
      • Floppy Disk & USB
      • Keypad
      • Keys
      • Lens
      • Gaskets & Seals
    • Probing
      Probing Shop All
      • Mill Probing
      • Lathe Tool Presetter
    • Rotary
      Rotary Shop All
      • Rotary Gaskets & Seals
    • Spindles
      Spindles Shop All
      • Couplings
      • Gaskets & Seals
      • Spindle Motor Drive
      • Gearbox Drive
      • Tool Release Piston
    • Tailstock
      Tailstock Shop All
      • Handles
×

Search Results

Web Pages

Images

    • <
    • 1
    • >
Use the up and down arrows to select a result. Press enter to go to the selected search result. Touch device users can use touch and swipe gestures.
MyHaas Welcome,
!
Haas Tooling Guest Order History MyHaas/HaasConnect Sign In Register Haas Tooling My Account Order History Return History MyHaas/HaasConnect Sign Out Welcome, My Machines Latest Activity My Quotes My Account My Users Sign Out
0
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
    • >

17 - Mill - G-Codes

Mill Operator's Manual


  • 0 - Mill - Table of Contents
  • 1 - Mill - Introduction
  • 2 - Mill - Legal Information
  • 3 - Mill - Safety
  • 4 - Mill - Control Pendant
  • 5 - Mill - Control Display
  • 6 - Mill - Device Manager
  • 7 - Mill - TouchScreen Feature
  • 8 - Mill - Part Setup
  • 9 - Mill - Umbrella Tool Changer
  • 10 - Mill - SMTC
  • 11 - Mill - Operation
  • 12 - Mill - Programming
  • 13 - Mill - Macros
  • 14 - Mill - Control Icons
  • 15 - Mill - Remote Jog Handle
  • 16 - Mill - Options Programming
  • 17 - Mill - G-Codes
  • 18 - Mill - M-Codes
  • 19 - Mill - Settings
  • 20 - Mill - Other Equipment

Go To :

17.1 Mill G-Codes Introduction

Mill G-Codes Introduction

This page gives detailed descriptions of the G-codes that you use to program your 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?
  • 17.1 Mill - G-Codes
  • 17.2 Cutting G-Codes
  • 17.3 Cutter Compensation
  • 17.4 Canned Cycles
  • 17.5 Special 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

Cutting G-Codes

The main cutting G-codes are categorized into interpolation motion and canned cycles. Interpolation motion cutting codes are broken down into:

G01 - Linear Interpolation Motion
G02 - Clockwise Circular Interpolation Motion
G03 - Counter-Clockwise Circular Interpolation Motion
G12 - Clockwise Circular Pocket Milling
G13 - Counter-Clockwise Circular Pocket Milling

Linear Interpolation Motion

G01 Linear Interpolation Motion is used to cut straight lines. It requires a feedrate, specified with the Fnnn.nnnn address code. Xnn.nnnn, Ynn.nnnn, Znn.nnnn, and Annn.nnn are optional address codes to specify cut. Subsequent axis motion commands will use the feed rate specified by G01 until another axis motion, G00, G02, G03, G12, or G13 is commanded.

Corners can be chamfered using the optional argument Cnn.nnnn to define the chamfer. Corners can be rounded using the optional address code Rnn.nnnn to define the radius of the arc. Refer to G01 Linear Interpolation Motion (Group 01) for more information

Circular Interpolation Motion

G02 and G03 are the G-codes for circular cutting motions. Circular Interpolation Motion has several optional address codes to define the arc or circle. The arc or circle begins cutting from the current cutter position [1] to the geometry specified within the G02/ G03 command.

Arcs can be defined using two different methods. The preferred method is to define the center of the arc or circle with I, J and/or K and to define the end point [3] of the arc with an X, Y and/or Z. The I J K values define the relative X Y Z distances from the starting point [2] to the center of the circle. The X Y Z values define the absolute X Y Z distances from the starting point to the end point of the arc within the current coordinate system. This is also the only method to cut a circle. Defining only the I J K values and not defining the end point X Y Z values will cut a circle.

The other method to cut an arc is to define the X Y Z values for the end point and to define the radius of the circle with an R value.

Below are examples of using the two different methods to cut a 2" (or 2 mm) radius, 180 degree, counter-clockwise arc. The tool starts at X0 Y0 [1], moves to the starting point of the arc [2], and cuts the arc to the end point [3]:

1

Method 1:
%
T01 M06 ;
...
G00 X4. Y2. ;
G01 F20.0 Z-0.1 ;
G03 F20.0 I-2.0 J0. X0. Y2. ;
...
M30 ;
%

Method 2:
%
T01 M06 ;
...
G00 X4. Y2. ;
G01 F20.0 Z-0.1 ;
G03 F20.0 X0. Y2. R2. ;
...M30 ;
%

Below is an example of how to cut a 2" (or 2 mm) radius circle:

%
T01 M06 ;
...
G00 X4. Y2. ;
G01 F20.0 Z-0.1 ;
G02 F20.0 I2.0 J0. ;
...
M30 ;
%

Cutter Compensation

Cutter compensation is a method of shifting the tool path so that the actual centerline of the tool moves to either the left or right of the programmed path.

Normally, cutter compensation is programmed to shift the tool in order to control feature size. The offset display is used to enter the amount that the tool is to be shifted.

The offset can be entered as either a diameter or radius value, depending on Setting 40, for both the geometry and wear values. If diameter is specified, the shift amount is half of the value entered.

The effective offset values are the sum of the geometry and wear values. Cutter compensation is only available in the X Axis and the Y Axis for 2D machining (G17). For 3D machining, cutter compensation is available in the X Axis, Y Axis, and Z Axis (G141).

General Description of Cutter Compensation

G41 selects cutter compensation left. This means that the control moves the tool to the left of the programmed path (with respect to the direction of travel) to compensate for the tool radius or diameter defined in the tool offsets table (Refer to Setting 40). G42 selects cutter compensation right, which moves the tool to the right of the programmed path, with respect to the direction of travel.

A G41 or G42 command must have a Dnnn value to select the correct offset number from the radius / diameter offset column. The number to use with D is in the far-left column of the tool offsets table.The value that the control uses for cutter compensation is in the GEOMETRY column under D (if Setting 40 is DIAMETER) or R (if Setting 40 is RADIUS).

If the offset value is negative, cutter compensation operates as though the program specifies the opposite G code. For example, a negative value entered for a G41 will behave as if a positive value was entered for G42. Also, when cutter compensation is active (G41 or G42), you may use only the X-Y plane (G17) for circular motions. Cutter compensation is limited to compensation in only the X-Y plane.

G40 cancels cutter compensation and is the default condition when you power on your machine. When cutter compensation is not active, the programmed path is the same as the center of the cutter path. You may not end a program (M30, M00, M01, or M02) with cutter compensation active.

The control operates on one motion block at a time. However, it will look ahead at the next (2) blocks that have X or Y motions. The control checks these (3) blocks of information for interference. Setting 58 controls how this part of cutter compensation works. Available Setting 58 values are Fanuc or Yasnac.

If Setting 58 is set to Yasnac, the control must be able to position the side of the tool along all of the edges of the programmed contour without overcutting the next two motions. A circular motion joins all of the outside angles.

If Setting 58 is set to Fanuc, the control does not require that the tool cutting edge be placed along all edges of the programmed contour, preventing overcutting. However the control will generate an alarm if the cutter’s path is programmed so that it will overcut. The control joins outside angles less than or equal to 270 degrees with a sharp corner. It joins outside angles of more than 270 degrees with an extra linear motion.

These diagrams show how cutter compensation works for the possible values of Setting 58. Note that a small cut of less than the tool radius and at a right angle to the previous motion will work only with the Fanuc setting.

Cutter Compensation, YASNAC Style,G41 with a Positive Tool Diameter or G42 with a Negative Tool Diameter:

[1] Tool Path Actual Center,
[2] Programmed Tool Path,
[3] Start Point,
[4] Cutter Compensation. G41 / G42 and G40 are commanded at the start and end of the tool path.

Cutter Compensation, YASNAC Style, G42 with a Positive Tool Diameter or G41 with a Negative Tool Diameter:

[1] Tool Path Actual Center,
[2] Programmed Tool Path,
[3] Start Point,
[4] Cutter Compensation. G41 / G42 and G40 are commanded at the start and end of the tool path.

Cutter Compensation, FANUC Style, G41 with a Positive Tool Diameter or G42 with a Negative Tool Diameter:

[1] Tool Path Actual Center,
[2] Programmed Tool Path,
[3] Start Point,
[4] Cutter Compensation. G41 / G42 and G40 are commanded at the start and end of the tool path.

Cutter Compensation, FANUC Style, G42 with a Positive Tool Diameter or G41 with a Negative Tool Diameter:

[1] Tool Path Actual Center,
[2] Programmed Tool Path,
[3] Start Point,
[4] Cutter Compensation. G41 / G42 and G40 are commanded at the start and end of the tool path.

Improper Cutter Compensation:

[1] Move is less than cutting comp radius,
[2] Workpiece,
3] Tool.

NOTE: A small cut of less than tool radius and at a right angle to the previous motion will only work with the Fanuc setting. A cutter compensation alarm will be generated if the machine is set to the Yasnac setting.

Feed Adjustments in Cutter Compensation

When using cutter compensation in circular moves, there is the possibility of speed adjustments to what has been programmed. If the intended finish cut is on the inside of a circular motion, the tool should be slowed down to ensure that the surface feed does not exceed what was intended by the programmer. There are problems, however, when the speed is slowed by too much. For this reason, Setting 44 is used to limit the amount by which the feed is adjusted in this case. It can be set between 1% and 100%. If set to 100%, there will be no speed changes. If set to 1%, the speed can be slowed to 1% of the programmed feed.

When the cut is on the outside of a circular motion, there is no speed-up adjustment made to the feed rate.

Cutter Compensation Entry (Yasnac) Type A and B:

[1] Programmed Path,
[2] Tool Center Path,
[r] Tool Radius

Cutter Compensation Entry (Fanuc style) Type A and B:

[1] Programmed Path,
[2] Tool Center Path,
[r] Tool Radius

Circular Interpolation and Cutter Compensation

In this section, the usage of G02 (Circular Interpolation Clockwise), G03 (Circular Interpolation Counterclockwise) and Cutter Compensation (G41: Cutter Compensation Left, G42: Cutter Compensation Right) is described.

Using G02 and G03, we can program the machine to cut circular moves and radii. Generally, when programming a profile or a contour, the easiest way to describe a radius between two points is with an R and a value. For complete circular moves (360 degrees), an I or a J with a value must be specified. The circle section illustration will describe the different sections of a circle.

By using cutter compensation in this section, the programmer will be able to shift the cutter by an exact amount and be able to machine a profile or a contour to the exact print dimensions. By using cutter compensation, programming time and the likelihood of a programming calculation error is reduced due to the fact that real dimensions can be programmed, and part size and geometry can be easily controlled.

Here are a few rules about cutter compensation that you must follow closely for successful machining operations. Always refer to these rules when you write your programs.

  1. Cutter compensation must be turned ON during a G01 X,Y move that is equal to or greater than the cutter radius, or the amount being compensated.
  2. When an operation using cutter compensation is done, the cutter compensation will need to be turned OFF, using the same rules as the turn ON process, i.e., what is put in must be taken out.
  3. In most machines, during cutter compensation, a linear X,Y move that is smaller than the cutter radius may not work. (Setting 58 - set to Fanuc - for positive results.)
  4. Cutter compensation cannot be turned ON or OFF in a G02 or G03 arc movement.
  5. With cutter compensation active, machining an inside arc with a radius less than what is defined by the active D value causes the machine to alarm. Can not have too big of a tool diameter if the radius of arc is too small.

This illustration shows how the tool path is calculated for the cutter compensation.

The detail section shows the tool in the starting position and then in the offset position as the cutter reaches the workpiece.

Circular Interpolation G02 and G03:

[1] 0.250" diameter endmill,
[2] Programmed path,
[3] Center of Tool,
[4] Start Position,
[5] Offset Tool Path.

Programming exercise showing tool path.

This program uses cutter compensation. The toolpath is programmed to the centerline of the cutter. This is also the way the control calculates for cutter compensation.

%
O40006 (Cutter comp ex-prog) ;
(G54 X0 Y0 is at the lower left of part corner) ;
(Z0 is on top of the part) ;
(T1 is a .250 dia endmill) ;
(BEGIN PREPARATION BLOCKS) ;
T1 M06 (Select tool 1) ;
G00 G90 G40 G49 G54 (Safe startup) ;
X-1. Y-1. (Rapid to 1st position) ;
S1000 M03 (Spindle on CW) ;
G43 H01 Z0.1(Tool offset 1 on) ;
M08(Coolant on) ;
(BEGIN CUTTING BLOCKS) ;
G01 Z-1. F50. (Feed to cutting depth) ;
G41 G01 X0 Y0 D01 F50. (2D Cutter Comp left on) ;
Y4.125 (Linear motion) ;
G02 X0.25 Y4.375 R0.375 (Corner rounding) ;
G01 X1.6562 (Linear motion) ;
G02 X2. Y4.0313 R0.3437 (Corner rounding) ;
G01 Y3.125 (Linear motion) ;
G03 X2.375 Y2.75 R0.375 (Corner rounding) ;
G01 X3.5 (Linear motion) ;
G02 X4. Y2.25 R0.5 (Corner rounding) ;
G01 Y0.4375 (Linear motion) ;
G02 X3.4375 Y-0.125 R0.5625 (Corner rounding) ;
G01 X-0.125 (Linear motion) ;
G40 X-1. Y-1. (Last position, cutter comp off) ;
(BEGIN COMPLETION BLOCKS) ;
G00 Z0.1 M09 (Rapid retract, Coolant off) ;
G53 G49 Z0 M05 (Z home, Spindle off) ;
G53 Y0 (Y home) ;
M30 (End program) ;
%

Canned Cycles

Canned cycles are G-codes that do repetitive operations such as drilling, tapping, and boring. You define a canned cycle with alphabetic address codes. While the canned cycle is active, the machine does the defined operation every time you command a new position, unless you specify not to.

Canned cycles simplify part programming. Most common Z-axis repetitive operations, such as drilling, tapping, and boring, have canned cycles. When active, a canned cycle executes at every new axis position. Canned cycles execute axis motions as rapid commands (G00) and the canned cycle operation is performed after the axis motion. This applies to G17, G19 cycles, and Y-Axis movements on Y-Axis lathes.

Drilling Canned Cycles

All four drill canned cycles can be looped in G91, Incremental Programming mode.

  • The G81 Drill Canned Cycle is the basic drilling cycle. It is used for drilling shallow holes or for drilling with Through Spindle Coolant (TSC).
  • The G82 Spot Drill Canned Cycle is the same as the G81 Drill Canned Cycle except that it can dwell at the bottom of the hole. The optional argument Pn.nnn specifies the duration of the dwell.
  • The G83 Normal Peck Drilling Canned Cycle is typically used for drilling deep holes. Peck depth can be variable or constant and always incremental. Qnn.nnn. Do not use a Q value when programming with I, J, and K.
  • The G73 High-Speed Peck Drilling Canned Cycle is the same as the G83 Normal Peck Drilling Canned Cycle except that tool peck retraction is specified with Setting 22 - Can Cycle Delta Z. Peck drilling cycles are advised for hole depths greater than 3 times the diameter of the drill bit. The initial peck depth, defined by I, should generally be a depth of 1 tool diameter.

Tapping Canned Cycles

There are two tapping canned cycles. All tapping canned cycles can be looped in G91, Incremental Programming mode.

The G84 Tapping Canned Cycle is the normal tapping cycle. It is used for tapping right-hand threads.

G74 Reverse Tap Canned Cycle is the reverse thread tapping cycle. It is used for tapping left-hand threads.

Boring and Reaming Cycles

There are (5) boring canned cycles. All boring canned cycles can be looped in G91, Incremental Programming mode.

  • The G85 Boring Canned Cycle is the basic boring cycle. It will bore down to the desired height and return to the specified height.
  • The G86 Bore and Stop Canned Cycle is the same as the G85 Boring Canned Cycle except that the spindle will stop at the bottom of the hole before returning to the specified height.
  • The G89 Bore In, Dwell, Bore Out Canned Cycle is the same as G85 except that there is a dwell at the bottom of the hole, and the hole continues to be bored at the specified feed rate as the tool returns to the specified position. This differs from other boring canned cycles where the tool either moves in Rapid Motion or hand jog to return to the return position.
  • The G76 Fine Boring Canned Cycle bores the hole to the specified depth and after boring the hole, moves to clear the tool from hole before retracting.
  • The G77 Back Bore Canned Cycle works similar to G76 except that before beginning to bore the hole, it moves the tool to clear the hole, moves down into the hole, and bores to the specified depth.

R Planes

R Planes, or return planes, are G-code commands that specify the Z-Axis return height during canned cycles.

The R Plane G-codes remain active for the duration of the canned cycle it is used with. G98 Canned Cycle Initial Point Return moves the Z axis to the height of the Z axis prior to the canned cycle.

G99 Canned Cycle R Plane Return moves the Z axis to the height specified by the Rnn.nnnn argument specified with the canned cycle. 

Special G-Codes

Special G-codes are used for complex milling. These include:

  • Engraving (G47)
  • Pocket Milling (G12, G13, and G150)
  • Rotation and Scaling (G68, G69, G50, G51)
  • Mirror Image (G101 and G100)

Engraving

The G47 Text Engraving G-code lets you engrave text (including some ASCII characters) or sequential serial numbers with a single block of code.

Refer to G47 Text Engraving (Group 00) for more information on engraving.

Pocket Milling

There are two types of pocket milling G-codes on the Haas control:

Circular Pocket Milling is performed with the G12 Clockwise Circular Pocket Milling Command and the G13 Counter-Clockwise Circular Pocket Milling Command G-codes.

The G150 General Purpose Pocket Milling uses a subprogram to machine user-defined pocket geometries.

Make sure that the subprogram geometry is a fully closed shape. Make sure that the X-Y starting point in the G150 command is within the boundary of the fully closed shape. Failure to do so may cause Alarm 370 - Pocket Definition Error.

Refer to G12 Circular Pocket Milling CW / G13 Circular Pocket Milling CCW (Group 00) for more information on the pocket milling G-codes.

Rotation and Scaling

NOTE:  You must purchase the rotation and scaling option to use these features. A 200-hour option tryout is also available.

G68 Rotation is used to rotate the coordinate system in the desired plane. You can use this feature together with G91 Incremental Programming mode to machine symmetrical patterns. G69 cancels rotation.

G51 applies a scaling factor to the positioning values in blocks after the G51 command. G50 cancels scaling. You can use scaling together with rotation, but be sure to command scaling first.

Refer to G68 Rotation (Group 16) for more information on the rotation and scaling G-codes.

Mirror Image

G101 Enable Mirror Image will mirror axis motion about the specified axis. Settings 45-48, 80 and 250 enable mirror imaging about the X, Y, Z, A, B, and C axes.

The mirror pivot point along an axis is defined by the Xnn.nn argument. This can be specified for a Y Axis that is enabled on the machine and in the settings by using the axis to mirror as the argument. G100 cancels G101.

Refer to G100/G101 Disable/Enable Mirror Image (Group 00) for more information on the mirror image G-codes.

Feedback

Recently Viewed Items

You Have No Recently Viewed Items Yet

Feedback
Haas Logo

美元价格不包括关税、报关费用、保险费、增值税及运费。
USD prices DO NOT include customs duty, customs fees, insurance, VAT, or freight.

人民币价格包含关税、报关费用、货运保险和增值税, 但不包括运费。
CNY prices include customs duty, customs fees, insurance, and VAT. DOES NOT include freight.

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
  • DNSH Statement
  • 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
© 2025 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