View Full Version : milling an elipse


gallzer
02-21-2008, 01:47 PM
Hi guys,

Recently i've have to mill different sizes of eliptical holes, does anyone have a program, in heidenhain preferably, that only involves altering the length and width of the elipse. It would save me a bit of time and hassle loading from a computer into the machine each time!

Thanks for any help.

High Seas
02-21-2008, 04:05 PM
One of the members has shared a small program to do something similar.
Sorry don't recall the member or the specific title - but it was a followup in a thread, "Milling a Sphere", I believe - -- Hope that helps.
:cheers: Jim

samco
02-21-2008, 04:28 PM
I don't know if this will help... This is written for emc2

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Oword#Sample_2_Subroutine_Sample_ellipse

sam

Andre' B
02-21-2008, 04:35 PM
Some simple macro B stuff.
Remove the #104 line and the G68 and G69 lines if your control dones not do rotation.


G0X0Y0

#100=0.5(X RADIUS)
#101=2.0(Y RADIUS)
#102=1(ANGLE STEP)
#104=15.0(ROTATE PATTERN)
(****************)
#103=-1(COUNTER)
G68X0Y0R#104
G1G41X[#100*COS[#103]] Y[#101*SIN[#103]] D1 F10.0
WHILE [#103 LE 360] DO1
G1X[#100*COS[#103]] Y[#101*SIN[#103]] F10.0
#103=#103+#102
END1
G1G40X0Y0
G69

Kiwi
02-21-2008, 05:34 PM
One of the members has shared a small program to do something similar.
Sorry don't recall the member or the specific title - but it was a followup in a thread, "Milling a Sphere", I believe - -- Hope that helps.
:cheers: Jim

Try this
http://www.cnczone.com/forums/showthread.php?p=411719#post411719

Kiwi
02-22-2008, 02:28 AM
gallzer
I've altered the Ellipse program to produce Heidenhain code.
As I don't know this language, please check, and advise errors.

High Seas
02-22-2008, 03:53 AM
Kiwi - I am still looking to mill a rugby ball! Any luck on that code? Thanks for popping in - I forgot that you were the guy!
How could I do THAT?! Pretty ordinary - eh?
:cheers: Jim

Kiwi
02-22-2008, 05:13 AM
Jim
I posted the program for a ellipsoid to the other thread just a few days ago.
http://www.cnczone.com/forums/showth...719#post411719
You are slipping in your old age ;-)

GrantM
02-22-2008, 06:53 AM
Quick way is to simply set the axis scaling (assuming you have that feature) of one axis to 200% and do a circle (G2/G3) - instant elipse!

Only problem with this is the cutter radius. If it's very fine cutter and/or you don't need absolute perfect accuracy, then it may not be a problem. CRC generally will stuff up when done like this, so if you use this method, probably best to use fine cutter and leave CRC off.

gallzer
02-22-2008, 09:12 AM
thanks for all the replies guys i'll have a go at andre bs program, but hopefully altering it to heidenhain. Kiwi your generator is great but i'd prefer to use the same program only having to alter the x and y dinensions.

High Seas
02-22-2008, 05:01 PM
Kiwi -- Thanks - Must be the thin air up here on the Hard Stand!
Jim
oops get a 404 - not found - I'll go looking - cheers

Kiwi
02-22-2008, 05:14 PM
Jim...I get the same 404. The one in #5 is the same but does work.

Kiwi
02-22-2008, 05:16 PM
Jim..I get the same 404. Try the link on #5 which works.

Sorry for duplication...I thought the previous post failed.

High Seas
02-22-2008, 05:21 PM
Found it via your sig to posts listing -- Thanks - That should be SweatAs"
:cheers: Jim

Kiwi
02-22-2008, 07:10 PM
Gallzer
For those who know enough to write a macro is certainly a very practical solution.

Can someone confirm the Heidenhain code the program generates is the correct format.
I will modify the program if necessary so the program generates usable code.