What's new
What's new

G47 Engraving with G107 4th Wrapping - Why are my letters overlapping?

Deezums

Plastic
Joined
Feb 20, 2017
Hello again!

I'm trying to engrave some text around the outside of a round part on a HRT210 4th axis in an early 2000ish VF7. I found a badass program on the internet somewhere wrote by a fella named Bill, something Haas should have done themselves! It lets you type all your text and gives you a total length of engraving based off a given text height, either that or an angles of rotation based off height and part diamater. With this info and the circumference of my part I'm able to position text equally around the diameter, in theory...

Here is what my code looks like, pretty simple stuff. Some stuff changed, but the relevant data is still there.

%
O00120
(O120 G47 S/N with G107 Wrap)
T6 M06
M03 S7500
G56 G90 G00 G17 G40 G80
X0.1 Y0. A0. (Start Point of Engrave)
G43 H06 Z0.1
G107 A0. Y0. R0.8 (R is Radius of Part)
G47 P0 (SOME WORDS SOME WORDS) X0.05 Y0. I-90. J0.075 R0.05 Z-0.005 F3. E1.5
G47 P0 (MORE WORDS, STATE) X0.05 Y1.9131 I-90. J0.075 R0.05 Z-0.005 F3. E1.5
G47 P0 (SIZE SIZE) X0.05 Y3.1564 I-90. J0.075 R0.05 Z-0.005 F3. E1.5
G47 P0 (SERIAL NUMBER) X0.05 Y3.8667 I-90. J0.075 R0.05 Z-0.005 F3. E1.5
G47 P0 (00-####) X0.05 Y4.1472 I-90. J0.075 R0.05 Z-0.005 F3. E1.5
G00 Z0.1 M09
G91 G28 Z0.
G90
G107 (Turn OFF Cylindrical Mapping)
M05
M30
%

For some reason this won't work properly. (SOME WORDS) engraves in place as programmed, but (MORE WORDS) engraves +90deg spaced from the end of (SOME WORDS.) From there it all seems downhill.

I've managed to run this exact code only on another slightly newer VF4, also with a HRT210. It works fine there. I've tried comparing parameters and searching google for more but can't come up with anything obvious.

Help, please!!
 
G107 won't run anything but negative numbers in the Y axis linearly, go figure! Swapping I-90. for I270. and inverting all y values fixed the problem.
 
Make sure you have correct diameter of part in rotational Dia. setting.


Take your dia and x Pi
Lock Y in g107

Take that number and it's your 0/360° i.e. 10" then Y 0= 0° and y-5.=180°.
Anyway plot 360° using the Y inch measurement.
Play with it a bit, it becomes real easy to map-wrap your diameter.
 
Thanks SIM, that's about what I came up with. I have to engrave different length strings of text though and I wanted equal spacing between all strings. To do that I needed to know how long each string of font is so I can subtract from the total circumference.

Here's a link to a place where you might ask for the cool program that does just that if anyone needs it, you'll have to add the forbidden URL...

.com/forums/haas-mills/206952-haas-engraving-macro-g47.html
 








 
Back
Top