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
    • >

G-code, M-code, and Setting

Service Home G47 Text Engraving (Group 00)

G47 Text Engraving (Group 00)

G47 Text Engraving (Group 00)


G47 lets you engrave a line of text, or sequential serial numbers, with a single G-code. To use G47, Settings 29 (G91 Non-Modal) and 73 (G68 Incremental Angle) must be OFF.

NOTE: Engraving along an arc is not supported.
*D - Controls the smoothness level, D1(rough), D2(medium), or D3(finish). If D is not used then default is D3.
*E - Plunge feed rate (units/min)
F - Engraving feed rate (units/min)
*I - Angle of rotation (-360. to +360.); default is 0
*K - Sets the max corner rounding value. If K is not used then default is K 0.002 inch or 0.002 mm depending on how setting 9 is set.
*J - Height of text in in/mm (minimum = 0.001 inch);
default is 1.0 inch (1.0 mm)
P - 0 for literal text engraving
- 1 for sequential serial number engraving
- 2 for the date and time formated as (MM/DD/YYYY HH:MM:SS)
- 32-126 for ASCII characters
*R - Return plane
*X - X start of engraving (When using G17 plane)
*Y - Y start of engraving (When using G17 plane)
*Z - Depth of cut (When using G17 plane)
*Y - Y start of engraving (When using G19 plane)
*Z - Z start of engraving (When using G19 plane)
*X - Depth of cut (When using G19 plane)

*indicates optionalLiteral Text EngravingThis method is used to engrave text on a part. The text should be in the form of a comment on the same line as the G47 command. For example, G47 P0 (TEXT TO ENGRAVE), will engrave TEXT TO ENGRAVE on the part.

NOTE: On Mills G47 can only be used on the G17 plane while on Lathes G47 can be used on either the G17 or G19 plane. G47 can not be used on the G18 plane.


NOTE: Corner rounding can cause engraved characters to appear rounded and make them harder to read. To improve the sharpness and readability of engraved text, consider lowering the corner-rounding values with a G187 E.xxx value before the G47 command. Suggested starting E values are E0.002 (inch) or E0.05 (metric). Command a G187 alone after the engraving cycle to restore the default corner-rounding level. Refer to the example below:
G187 E.002 (PREFACE ENGRAVING WITH A G187 E.xxx);
G47 P0 X.15 Y0. I0. J.15 R.1 Z-.004 F80. E40. (Engraving Text);
G00 G80 Z0.1;
G187 (RESTORE NORMAL CORNER ROUNDING FOR SMOOTHNESS);


NOTE: Engraving along an arc is not supported.
The characters available for engraving are:A-Z, a-z 0-9, and ` ~ ! @ # $ % ^ & * - _ = + [ ] { } \ | ; : ' " , . / < > ?Not all of these characters can be entered from the control. When programming from the mill keypad, or engraving parenthesis (), refer to the following Engraving Special Characters section.This example creates the figure shown.
%
O60471 (G47 TEXT ENGRAVING) ;
(G54 X0 Y0 is at the bottom-left of part) ;
(Z0 is on top of the part) ;
(BEGIN PREPARATION BLOCKS) ;
T1 M06 (Select tool 1) ;
G00 G90 G40 G49 G54 (Safe startup) ;
G00 G54 X2. Y2. (Rapid to 1st position) ;
S1000 M03 (Spindle on CW) ;
G43 H01 Z0.1 (Activate tool offset 1) ;
M08 (Coolant on) ;
(BEGIN CUTTING BLOCKS) ;
G47 P0 (TEXT TO ENGRAVE) X2. Y2. I45. J0.5 R0.05 Z-0.005 F15. E10. ;
(Starts at X2. Y2., engraves text at 45 deg) ;
(BEGIN COMPLETION BLOCKS) ;
G00 G80 Z0.1 (Cancel canned cycle) ;
G00 Z0.1 M09 (Rapid retract, Coolant off) ;
G53 G49 Z0 M05 (Z home, Spindle off) ;
G53 Y0 (Y home) ;
M30 (End program) ;
%
Engraving Program Example


In this example, G47 P0 selects literal string engraving. X2.0 Y2.0 sets the starting point for the text at the bottom left corner of first letter. I45. places the text at a positive 45 angle. J.5 sets the text height to 0.5 units-in/mm. R.05 retracts cutter to 0.05 units above part after engraving. Z-0.005 sets an engraving depth of -0.005 units. F15.0 sets an engraving, XY move, feedrate of 15 units per minute. E10.0 sets a plunge, -Z move, feedrate of 10 units per minute.Special CharactersEngraving Special Characters involves using G47 with specific P values (G47 P32-126).P- values to engrave specific characters

G47P Values for Special Characters

32 space 59 ; semicolon
33 ! exclamation mark 60 < less than
34 " double quotation mark 61 = equals
35 # number sign 62 > greater than
36 $ dollar sign 63 ? question mark
37 % percent sign 64 @ at sign
38 & ampersand 65-90 A-Z capitol letters
39 ' closed single quote 91 [ open square bracket
40 ( open parenthesis 92 \ backslash
41 ) close parenthesis 93 ] closed square bracket
42 * asterisk 94 ^ caret
43 + plus sign 95 _ underscore
44 , comma 96 ' open single quote
45 - minus sign 97-122 a-z lowercase letters
46 . period 123 { open curly bracket
47 / slash 124 | vertical bar
48-57 0-9 numbers 125 } closed curly bracket
58 : colon 126 ~ tilde

Example:To engrave $2.00, you need (2) blocks of code. The first block uses a P36 to engrave the dollar sign ($), and the second block uses P0 (2.00).

NOTE: Shift the X/Y start location between the first and second line of code to make a space between the dollar sign and the 2.
This is the only method to engrave parenthesis ().Engraving Sequential Serial NumbersThis method is used to engrave numbers on a series of parts with the number being increased by one each time. The # symbol is used to set the number of digits in the serial number. For example, G47 P1 (####), limits the number to four digits while (##) would limit the serial number to two digits.

NOTE: Engraving along an arc is not supported.
This program engraves a four digit serial number.
%
O00037 (SERIAL NUMBER ENGRAVING) ;
T1 M06 ;
G00 G90 G98 G54 X0. Y0. ;
S7500 M03 ;
G43 H01 Z0.1 ;
G47 P1 (####) X2. Y2. I0. J0.5 R0.05 Z-0.005 F15. E10. ;
G00 G80 Z0.1 ;
M05 ;
G28 G91 Z0 ;
M30 ;
%
Initial Serial NumberThere are two ways to set the initial serial number to be engraved. The first requires replacing the # symbols within the parenthesis with the first number to be engraved. With this method, nothing is engraved when the G47 line is executed (it is only setting the initial serial number). Execute this once and then change the value within the parenthesis back to # symbols to engrave normally.The following example will set the initial serial number to be engraved to 0001. Run this code once and then change (0001) to (####).
G47 P1 (0001) ;
The second method for setting the initial serial number to be engraved is to change the Macro Variable where this value is stored (Macro Variable 599). The Macros option does not need to be enabled.Press [CURRENT COMMANDS] then press [PAGE UP] or [PAGE DOWN] as needed to display the MACRO VARIABLES page. From that screen, enter 599 and press Down cursor.Once 599 is highlighted on the screen, type in the initial serial number to engrave, [1] for example, then press [ENTER] .The same serial number can be engraved multiple times on the same part with the use of a macro statement. The macros option is required. A macro statement as shown below could be inserted between two G47 engraving cycles to keep the serial number from incrementing to the next number. For more details, see the Macros section of this manual.Macro Statement: #599=[#599-1]Engraving Around the Outside of a Rotary Part (G47, G107)You can combine a G47 Engraving cycle with a G107 Cylindrical Mapping cycle to engrave text (or a serial number) along the outside diameter of a rotary part.This code engraves a four digit serial number along the outer diameter of a rotary part.
%
O01832 (CHANNEL ON 1.5 ROTARY PART);
(MOUNT ROTARY ON RIGHT SIDE OF TABLE);
(X ZERO IS FACE OF STOCK);
(Y ZERO IS ROTARY CL)(TOUCH OFF TOOLS ON TOP OF PART);
(STOCK IS 1.5 DIA);
(T11 = ENGRAVING TOOL);
(WRAP ENGRAVING AROUND CYLINDER, G107 G47);
T11 M06;
M11;
M03 S12000;
G57 G90 G00 G17 G40 G80;
X0.323 Y0. A0. (START POINT OF ENGRAVE);
G43 H11 Z0.1;
/ G107 A0. Y0. R0.75;
G187 P3 E0.002;
G47 P0 (ROTARY) X0.323 Y0.177 I45. J0.15 R0.05 Z-0.004 F30. E10.;
G00 Z0.1;
G187;
G107;
T11 M06;
M11;
M03 S12000;
G57 G90 G00 G17 G40 G80;
X0.323 Y0. A0. (START POINT OF ENGRAVE);
G43 H11 Z0.1;
/ G107 A0. Y0. R0.75;
G187 P3 E0.002;
G47 P1 (S/N ####) X0.79 Y-0.28 I45. J0.15 R0.05 Z-0.004 F30. E10.;
G00 Z2. M09;
G107;
G90 G00 A70.;
G53 G00 G90 Y0;
G187;
M30;
%
Engraving Date and timeUsing the address code P2 with G47 will engrave the Date and time the engraving is being done. The date and time format will be MM/DD/YYYY HH:MM:SSThis code engraves the date and time.
%
O62649 (DATE AND TIME ENGRAVING - DEFAULT P2 TEXT)
(G54 X0. Y0. IS BOTTOM LEFT CORNER)
(G54 Z0. IS TOP OF PART)
(T1 - ENGRAVING TOOL)
G20 G40 G49 G54 G90 (SAFE START UP);
T1 M06;G00 G54 X2. Y1. (ENGRAVING START POSITION);
S10000 M03 (START SPINDLE CW);
G43 H01 Z0.1 (ACTIVATE TOOL OFFSET 1);
M08 (COOLANT ON);
(ENGRAVING WILL BE FORMATTED AS MM/DD/YYYY HH:MM:SS);
G47 P2 X2. Y1. I35. J0.4 R0.05 Z-0.002 F40. E15.;G00 Z1. M09 (BACK OFF PART);
G28;
M30;
%
For more details on this cycle, refer to the G107 section.

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