127
G Codes
96-8000 rev R June 2007
See the Macros section for more information.
Literal String Engraving
This method is used to engrave desired text on a part. The text should be in the form of a comment on the same
line as the P0 statement. For example:
G47 P0 (ENGRAVE THIS)
will produce
ENGRAVE THIS
Example
This example will create the figure shown.
G47 P0 X2.0 Y2.0 I45. J.5 R.05 Z-.005 F15.0 E10.0 (TEXT TO ENGRAVE)
TEXT TO ENGRAVE
3
4
5
6
3
4
5
6
2
2
1
1
0.5"
45
o
-45
o
0
o
180
o
270
o
90
o
In this example:
G47 P0 select literal string engraving
X2.0 Y2.0 select 2.0, 2.0 as the starting point for the text.
I45. places the text at a positive 45° angle
J.5 sets the text height to 0.5 inch
R.05 commands the cutter to retract to 0.05 inch (mm) above the cutting plane after engraving
Z-.005 selects a 0.005 inch (mm) deep cut
F15.0 selects an engraving feedrate of 15 units/min
E10.0 commands the cutter to plunge at a rate of 10 units/min
P values to engrave specific characters:
32 blank 41 ) 59 ; 93 ]
33 ! 42 * 60 < 94 ^
34 “ 43 + 61 = 95 _
35 # 44 , 62 > 96 ‘
36 $ 45 - 63 ? 97-122 a-z
37 % 46 . 64 @ 123 {
38 & 47 / 65-90 A-Z 124 |
39 ‘ 48-57 0-9 91 [ 125 }
40 ( 58 : 92 \ 126 ~