Page 1 of 3 123 LastLast
Results 1 to 12 of 28

Thread: How would you do an oval?

  1. #1
    Registered
    Join Date
    Apr 2012
    Location
    USA
    Posts
    68
    Downloads
    0
    Uploads
    0

    How would you do an oval?

    Hi,

    I've been playing around with the G02 command using emc2 sim mode, but I don't see a way to do an oval. How would you make an oval?

    Thanks,

    Alan


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,289
    Downloads
    0
    Uploads
    0
    Do you mean an ellipse?
    An oval is two half circles with straight lines between them. Two G2's and two G1's.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  3. #3
    Registered
    Join Date
    Apr 2012
    Location
    USA
    Posts
    68
    Downloads
    0
    Uploads
    0
    Hi Gerry,

    Quote Originally Posted by ger21 View Post
    Do you mean an ellipse?
    An oval is two half circles with straight lines between them. Two G2's and two G1's.
    Yes, I'm sorry, an ellipse - how would it be done?

    Thanks,

    Alan


  4. #4
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4,519
    Downloads
    0
    Uploads
    0
    You can either simulate an ellipse with multiple arcs or you can write a macro that will calculate the elliptical points down to the resolution of your machine. Either way, you need to be fairly knowledgeable and practiced on your math skills.
    http://www.kirkcon.com/


  • #5
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,289
    Downloads
    0
    Uploads
    0
    I draw it in AutoCAD with arcs and create the code from that.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #6
    Registered
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    985
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by alank2 View Post
    Hi Gerry,



    Yes, I'm sorry, an ellipse - how would it be done?

    Thanks,

    Alan
    Hi Alan,
    Here's an example of how to machine an ellipse using User Macro. The resolution of the ellipse is achieved via variable #4.

    Regards,
    Bill

    %
    O0021
    N1 G00 G17 G21 G40 G80
    G91 G28 Z0.0
    G28 Y0.0
    T01 M06
    S1000 M03
    G90 G54
    #1=100 (X RADIUS)
    #2=50 (Y RADIUS)
    #3=0 (START ANGLE)
    #4=50 (NUM OF POINTS)
    #5=360/#4(ANGLE INCREMENT)
    #6=0 (COUNTER)
    #24=#1*COS[#3]
    #25=#2*SIN[#3]
    G00 X#24 Y#25
    G43 Z10.000 H01
    G01 Z1.000 F1000.0
    G01 Z-5.000 F100.0
    #6=#6+1
    #3=#3+#5
    WHILE [#6 LE [#4] ] DO1
    #24=#1*COS[#3]
    #25=#2*SIN[#3]
    G01 X#24 Y#25 F300.0
    #6=#6+1
    #3=#3+#5
    END1
    G00 Z10.000
    G91 G28 Z0.0
    G28 Y0.0
    M30
    %


  • #7
    Registered
    Join Date
    Apr 2012
    Location
    USA
    Posts
    68
    Downloads
    0
    Uploads
    0
    Hi,

    Thanks everyone!! I'll try out that code Bill!

    Alan


  • #8
    Registered neilw20's Avatar
    Join Date
    Jun 2007
    Location
    Australia
    Posts
    3,424
    Downloads
    0
    Uploads
    0
    As long as the long axis is X or Y, you can change the scaling on 1 axis, then just program a circle.
    Easy in MAch3. Not sure about emc2 though. Never used it. Never wanted to. Probably never will.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.


  • #9
    Registered
    Join Date
    Jul 2003
    Location
    Holmen, WI
    Posts
    1,193
    Downloads
    0
    Uploads
    0
    here is an example written for linuxcnc.

    LinuxCNC Documentation Wiki: Oword

    I have not tried it...

    sam


  • #10
    Registered
    Join Date
    Sep 2010
    Location
    Australia
    Posts
    985
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by alank2 View Post
    Hi,

    Thanks everyone!! I'll try out that code Bill!

    Alan
    Hi Alan,
    The Macro Language used in my example is for a Fanuc or Yasnac control, but the logic and math is the same irrespective of the control.

    Regards,

    Bill


  • #11
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by ger21 View Post
    I draw it in AutoCAD with arcs and create the code from that.
    Let us say major/minor diameters and angle of major dia with x-axis is given.
    What do you do next?


  • #12
    Registered FuddMcDee's Avatar
    Join Date
    Jul 2011
    Location
    USA
    Posts
    60
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by angelw View Post
    Hi Alan,
    Here's an example of how to machine an ellipse using User Macro. The resolution of the ellipse is achieved via variable #4.

    Regards,
    Bill

    %
    O0021
    N1 G00 G17 G21 G40 G80....
    %
    Thanks a ton for this, I mean really, a ton. It's useful little goodies like this that make me ok(ish) with not using software to write programming. I came up with a hole boring sub with variables like the program you have here, and I was far happier than I imagine I would've been had the code just gotten thrown at me.


  • Page 1 of 3 123 LastLast

    Similar Threads

    1. Aluminum half/oval rounds
      By kiramunch@sympa in forum General Metalwork Discussion
      Replies: 0
      Last Post: 03-15-2011, 03:52 PM
    2. Oval Wire Compression Spring
      By cnckid in forum Mechanical Calculations/Engineering Design
      Replies: 0
      Last Post: 01-15-2011, 01:52 AM
    3. oval thread
      By riverracer in forum Mastercam
      Replies: 7
      Last Post: 10-22-2009, 03:14 AM
    4. Oval/Round Toolpath Chatter
      By Absolute Steve in forum Shopsabre
      Replies: 11
      Last Post: 04-16-2009, 10:26 PM
    5. Oval holes
      By abcdef in forum General Metalwork Discussion
      Replies: 5
      Last Post: 08-11-2007, 02:40 PM

    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.