Home › G-codes › Haas NGC › G47
G47 Text engraving
Haas NGC G-code · Mill, Lathe
On mills: Text engraving
Engraves text or a serial number using a cycle. The text goes in parentheses on the same line. P picks literal text or sequential serial number.
Format
Addresses
| Address | What it does |
|---|---|
P | P0 engraves the literal text. P1 engraves a sequential serial number. P32 to P126 engraves one ASCII character |
X Y | Start point of the text, lower left of the first letter |
Z | Engraving depth |
R | Return plane |
I | Text angle in degrees |
J | Text height |
E | Plunge feed rate |
F | Engraving feed rate |
How it works
Non-modal, group 00.
Example program
G90 G54 G00 X.5 Y.5 S8000 M03 (START OF TEXT)
G43 H08 Z.5 (APPROACH)
G47 P0 X.5 Y.5 I0. J.25 R.05 Z-.005 F15. E5. (PART 101)
…
The full 5-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Text must be in parentheses after the codes on the same line.
- Use a small Z depth and a sharp engraving tool. Check part flatness first.
On lathes: Text engraving
Engraves a line of text, a serial number or the date with one block using a live tool. On a lathe it works in the G17 or G19 plane, not G18.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
Addresses
| Address | What it does |
|---|---|
P | P0 literal text in a comment, P1 serial number, P2 date and time, 32 to 126 ASCII character |
X Y Z | Start point of the text and depth of cut for the plane |
I | Angle of rotation |
J | Height of text |
R | Return plane |
E | Plunge feed rate |
F | Engraving feed rate |
D | Smoothness, D1 rough to D3 finish |
K | Max corner rounding |
How it works
Non-modal, group 00.
Example program
M133 P4000 (LIVE TOOL FORWARD 4000 RPM)
G98 G17 (FEED PER MINUTE, XY PLANE)
G00 G54 X0 Y0 Z.1 (APPROACH FACE)
…
The full 7-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- Settings 29 and 73 must be off for G47.
- Engraving along an arc is not supported.
- A G187 E.002 before G47 keeps the letters sharp. Command G187 alone after to restore.
Related codes
G47 on other controls
The same number can mean something different on another control.
| Control | Meaning |
|---|---|
| Fanuc | Tool position offset double increase |
| Brother Speedio | Tool offset double increase |
| Hurco WinMax (NC) | Tool offset double increase |
| Fadal | Tool offset double expansion |
Every G-code for Haas NGC in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open G47 in the app All Haas NGC G-codes