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
      • Haas Value Option Packages (VOP) Journey
    • 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
      • test-algolia-page
    • 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
    • >

G-code, M-code, and Setting

Service Home G68 Rotation (Group 16)

G68 Rotation (Group 16)

G68 Rotation (Group 16)



NOTE: You must purchase the Rotation and Scaling option to use this G-code. A 200-hour option tryout is also available; refer to Option Tryout for instructions.
*G17, G18, G19 - Plane of rotation, default is current
*X/Y, X/Z, Y/Z - Center of rotation coordinates on the selected plane**
*R - Angle of rotation, in degrees. Three-place decimal, -360.000 to 360.000.
*indicates optional**The axis designation you use for these address codes corresponds to the axes of the current plane. For example, in the G17 (XY plane), you would use X and Y to specify the center of rotation.When you command a G68, the control rotates all X, Y, Z, I, J, and K values about a center of rotation to a specified angle (R),.You can designate a plane with G17, G18, or G19 before G68 to establish the axis plane to rotate. For example:
G17 G68 Xnnn Ynnn Rnnn ;
If you do not designate a plane in the G68 block, the control uses the currently active plane.The control always uses a center of rotation to determine the positional values after rotation. If you do not specify a center of rotation, the control uses the current location.G68 affects all appropriate positional values in the blocks after the G68 command. Values in the line that contains the G68 command are not rotated. Only the values in the plane of rotation are rotated; therefore, if G17 is the current plane of rotation, the command affects only the X and Y values.A positive number (angle) in the R address rotates the feature counterclockwise.If you do not specify the angle of rotation (R), then the control uses the value in Setting 72.In G91 mode (incremental) with Setting 73 ON, the rotation angle changes by the value in R. In other words, each G68 command changes the rotation angle by the value specified in R.The rotational angle is set to zero at the beginning of the program, or you can set it to a specific angle with G68 in G90 mode.These examples illustrate rotation with G68. The first program defines a Gothic window shape to cut. The rest of the programs use this program as a subprogram.G68 Start Gothic Window, No rotation: [1] Work coordinate origin.


%
O60681 (GOTHIC WINDOW SUBPROGRAM) ;
F50. S15000 (SET FEED AND SPINDLE SPEED) ;
G00 X1. Y1. Z0.1(RAPID TO LOWER-LEFT WINDOW CORNER) ;
Z-.005;
G01 X2. (BOTTOM OF WINDOW) ;
Y2. (RIGHT SIDE OF WINDOW);
G03 X1. R0.5 (TOP OF WINDOW) ;
G01 Y1. (FINISH WINDOW) ;
Z0.1 (RETRACT Z BEFORE GOING TO THE NEXT WINDOW);
M99;
%
The first example illustrates how the control uses the current work coordinate location as a rotation center (X0Y0Z0).G68 Rotation Current Work Coordinate: [1] Work coordinate origin and center of rotation.


%
O60682 (ROTATE ABOUT WORK COORDINATE) ;
G59 (OFFSET) ;
G00 G90 X0 Y0 Z0.1 (WORK COORDINATE ORIGIN) ;
M98 P60681 (CALL SUBPROGRAM) ;
G90 G00 X0 Y0 (LAST COMMANDED POSITION) ;
G68 R60. (ROTATE 60 DEGREES) ;
M98 P60681 (CALL SUBPROGRAM) ;
G69 G90 X0 Y0 (CANCEL G68) ;
M30;
%
The next example specifies the center of the window as the rotation center.G68 Rotation Center of Window: [1] Work coordinate origin, [2] Center of rotation.


%
O60683 (ROTATE ABOUT CENTER OF WINDOW) ;
G59 (OFFSET) ;
G00 G90 X0 Y0 Z0.1 (WORK COORDINATE ORIGIN) ;
G68 X1.5 Y1.5 R60. ;
(ROTATE SHAPE 60 DEGREES ABOUT CENTER) ;
M98 P60681 (CALL SUBPROGRAM) ;
G69 G90 G00 X0 Y0 (CANCEL G68, LAST COMMANDED POSITION) ;
M30 ;
%
This next example shows how the G91 mode can be used to rotate patterns about a center. This is often useful for making parts that are symmetric about a given point.G68 Rotate Patterns About Center: [1] Work coordinate origin and center of rotation.


%
O60684 (ROTATE PATTERN ABOUT CENTER) ;
G59 (OFFSET) ;
G00 G90 X0 Y0 Z0.1 (WORK COORDINATE ORIGIN) ;
M97 P1000 L6 (CALL LOCAL SUBPROGRAM, LOOP 6 TIMES) ;
M30 (END AFTER SUBPROGRAM LOOP) ;
N1000 (BEGIN LOCAL SUBPROGRAM) ;
G91 G68 R60. (ROTATE 60 DEGREES) ;
G90 M98 P60681 (CALL WINDOW SUBPROGRAM) ;
G90 G00 X0 Y0 (LAST COMMANDED POSITION) ;
M99;
%
Do not change the plane of rotation while G68 is in effect.Rotation with Scaling:If you use scaling and rotation at the same time, you should turn on scaling before rotation, and use separate blocks. Use this template:
%
G51 ... (SCALING) ;
... ;
G68 ... (ROTATION) ;
... program ;
G69 ... (ROTATION OFF) ;
... ;
G50 ... (SCALING OFF) ;
%
Rotation with Cutter Compensation:Turn on cutter compensation after the rotation command. Turn off cutter compensation before you turn off rotation.

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