I've added the scaling and decimals to this.
I've used it for a while but not done any official documentation yet. I'll start that here...
There is a variable at the beginning of the macro itself (#110) to scale the numbers. A one in this variable will give numbers about .312" tall, A two,
.625" tall, etc..
I use a carbide 90 degree deburr/chamfer tool to engrave the numbers, goes .01" deep.
Macro uses the G59 offsets and changes them in order to offset the number's zero point from the chosen offset's zero point. This was so you could call the macro from a part program and engrave a part number anywhere on the part.
Macro will engrave up to a six digit number, followed by up to a six digit decimal. (Most controls won't accept a number with 12 digits.)
Macro uses G52 to shift X. If you cancel the macro while running go to MDI and enter "G52 X0".
G65 P20 A H X Y Z
A - Number To Engrave (Required)
H - Offset To Use (Required)
X - Amount To Offset X
Y - Amount To Offset Y
Z - Amount To Offset Z
If X, Y, or Z is not used the number will engrave at the chosen offset's zero.
G65 P20 A45.876 H55. X1. Y2. Z3.
Will engrave 45.876 at G55 X - 1." Y - 2." Z - 3.".
Any question or comments appreciated. I was thinking of limiting it to 3 place decimals and calling the scale factor from the macro call. Another easy addition would be to throw in a multiplier and make the scaling more 1 to 1".