CNC Machinist Calculator Ultra

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

G47 P X Y Z R I J E F (TEXT)

Addresses

AddressWhat it does
PP0 engraves the literal text. P1 engraves a sequential serial number. P32 to P126 engraves one ASCII character
X YStart point of the text, lower left of the first letter
ZEngraving depth
RReturn plane
IText angle in degrees
JText height
EPlunge feed rate
FEngraving feed rate

How it works

Non-modal, group 00.

Example program

T8 M06 (90 DEG ENGRAVING TOOL)
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

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

G47 P [X] [Y] [Z] [I] J R E F [D] [K]

Addresses

AddressWhat it does
PP0 literal text in a comment, P1 serial number, P2 date and time, 32 to 126 ASCII character
X Y ZStart point of the text and depth of cut for the plane
IAngle of rotation
JHeight of text
RReturn plane
EPlunge feed rate
FEngraving feed rate
DSmoothness, D1 rough to D3 finish
KMax corner rounding

How it works

Non-modal, group 00.

Example program

T1111 (ENGRAVING TOOL, LIVE)
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

Related codes

G187 · G17

G47 on other controls

The same number can mean something different on another control.

ControlMeaning
FanucTool position offset double increase
Brother SpeedioTool offset double increase
Hurco WinMax (NC)Tool offset double increase
FadalTool 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

App Store Google Play