Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: How to programme an ellipse?

  1. #1
    Registered
    Join Date
    Jan 2012
    Location
    Norge
    Posts
    3
    Downloads
    0
    Uploads
    0

    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
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,668
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    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
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,668
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    Ops, missed the lathe part.


  • #6
    Registered
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    11,960
    Downloads
    0
    Uploads
    0
    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
    Registered samu's Avatar
    Join Date
    Feb 2007
    Location
    quebec
    Posts
    264
    Downloads
    0
    Uploads
    0
    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:
    macro programing


  • #8
    Registered
    Join Date
    Jan 2012
    Location
    Norge
    Posts
    3
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    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
    Registered fordav11's Avatar
    Join Date
    Aug 2011
    Location
    Fordaville
    Posts
    1,668
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    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.


  • Page 1 of 2 12 LastLast

    Similar Threads

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

    Tags for this Thread

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.