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 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
The milling strokes dening each character, i.e., the font, are compiled G-code
in the HAAS control. The font characters may be redened by supplying a dif-
ferent G-code program, giving it the name O09876. This program must conform
to the format expected by the HAAS control.
Note: Avoid using program number O09876 for programs other than font den-
ing. Overwriting O09876 with a regular milling program will prevent G47 from
functioning properly.
For guidance, some of the code from the built-in font program is shown be-
low. The example below may be used as a template. Code should be written
exactly as shown.
P values to engrave specic 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 ~
Example
To engrave “$2.00” two lines of code are necessary. The rst will be using a
P36 to engrave the dollar sign ($), and the second will use P0 (2.00). Note that
the axes will need to be shifted between the rst and second line of code in
order to make a space between the dollar sign and the 2.
Example O9876 G-Code Program Comments
% % marks the start of the program.
O9876 (Engraving) The program number must be 9876.
#700= #4003 Save G90/G91
#701= #4001 Save G00/G01 etc.
G00 X#24 Y#25
Z#18 If R, move there with users G90/G91
#702= #5003 - #26