586,111 active members*
3,543 visitors online*
Register for free
Login
Results 1 to 13 of 13
  1. #1
    Join Date
    Jan 2012
    Posts
    13

    How to programme an ellipse?

    Hello, boys and girls.
    I really need help here.

    We have a Dah-Lih lathe with fanuc manual 0-MC software.
    How is the best way to program an elliptic toolpath? Is there a function for this, or can i use a mathematical expression? Or do i simply have to use a CAM-software for this?

    Best regards
    Daniel

  2. #2
    Join Date
    Aug 2011
    Posts
    2517
    there is no built-in function. cam software is easiest as it can give you multiple tangential arcs.
    it can also be done using macro.
    I wrote a 20 or 30 line macro to do an ellipse on a mill years ago.

  3. #3
    Join Date
    May 2007
    Posts
    781
    If the control has the optional macro B this bit of code will do it.
    Code:
    #100= 2    (X AXIS RADIUS)
    #101= 0.25  (Y SCALE, 1.0 FOR A CIRCLE)
    #102= 1    (STEP ANGLE)
    (----------------------)
    
    #103= 0    (CURRENT ANGLE)
    G1X[#100*COS[0]]Y[#101*#100*SIN[0]]
    
    WHILE [#103 LT 360] DO1
    G1X[#100*COS[#103]]Y[#101*#100*SIN[#103]]F10.0
    #103=#103+#102
    END1
    G1X[#100*COS[360]]Y[#101*#100*SIN[360]]
    G0X0.0Y0.0

  4. #4
    Join Date
    Aug 2011
    Posts
    2517
    that's for a mill. it won't really help on a lathe though
    I've turned many ellipses on lathes. the easiest way is with cam software.

  5. #5
    Join Date
    May 2007
    Posts
    781
    Ops, missed the lathe part.

  6. #6
    Join Date
    Jul 2005
    Posts
    12177
    It should be possible to convert Andre' B's macro to generate an elliptical toolpath by swapping Y for Z, yes?
    An open mind is a virtue...so long as all the common sense has not leaked out.

  7. #7
    Join Date
    Feb 2007
    Posts
    314
    without cam, macro is a good way to do it. But an ellipse approximated with line of a constant angular increment won't have the same tolerance all along the profile, especially if there is a big difference between X and Y radius. I wrote a macro trying to solve that using an increment inversely proportional to the distance from the center to the current point on the ellipse. It's a mill macro but like Geof said, it is not to hard to convert in lathe macro. More detail here:
    http://www.cnczone.com/forums/508047-post9.html

  8. #8
    Join Date
    Jan 2012
    Posts
    13
    I'm sorry guys, my english got mixed up a bit there, I ment that it's a mill. So i'm going to try what Andre' B suggests.


    Thanks! This was really helpfull since i'm really new to all this!
    Have a nice day!

  9. #9
    Join Date
    Feb 2006
    Posts
    1792
    Using a scale factor for y-axis does not make it exact ellipse, though it would look like one. If a mathematically true ellipse is to be made, one has to use its mathematical equation.

  10. #10
    Join Date
    May 2007
    Posts
    781
    You are right, only the center of the tool is moving in an ellipse, disregarding the cord error.
    The part that is cut will be distorted some by the radius of the tool.
    Turning on radius compensation should take care of that.

    But keep the end mill small relative to the minor diameter and for many jobs it is not going to make a measurable difference.

  11. #11
    Join Date
    Aug 2011
    Posts
    2517
    An ellipse is one of those curves you can't really 'measure' so it's not usually that important if it's not perfect as long as it is smooth.
    Our hacky programmers in the office don't have a clue and draw an ellipse in Autocad then manually best-fit 3 or 4 curves per quadrant with close-enough tangents then dimension the start/end points and center points to get the coordinates then use that data to program the part.
    Depending on how knowledgeable your quality control people are that method can normally be used with impunity.

  12. #12
    Join Date
    Feb 2006
    Posts
    1792
    In manual drawing also (isometric projection), an ellipse is drawn using four-center method, consisting of four arcs. It looks pretty good. The method is explained in all engineering-drawing books.

  13. #13
    Join Date
    Aug 2011
    Posts
    2517
    there's also a 5 center method which is even better.
    see the details and other interesting elliptical facts here.....
    Ellipse

Similar Threads

  1. FACETED ELLIPSE
    By cncstephen in forum Mastercam
    Replies: 12
    Last Post: 06-15-2011, 10:23 AM
  2. ELLIPSE
    By BOBINETTE in forum Mach Wizards, Macros, & Addons
    Replies: 11
    Last Post: 07-05-2009, 12:34 AM
  3. Wrapped Ellipse
    By TZ250 in forum BobCad-Cam
    Replies: 1
    Last Post: 05-22-2009, 09:07 AM
  4. super ellipse
    By Solgaard in forum Commercial CNC Wood Routers
    Replies: 2
    Last Post: 01-30-2009, 08:11 AM
  5. Milling an Ellipse
    By Dave4x4 in forum Uncategorised CAM Discussion
    Replies: 2
    Last Post: 02-28-2008, 10:24 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •