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

Thread: Cutting a non-circular arc ?

  1. #1
    Registered greybeard's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    1,386
    Downloads
    0
    Uploads
    0

    Cutting a non-circular arc ?

    If I want to cut a parabolic path, or any non-circular arc, do I need to be able to programme ?
    The alternative to writing hundreds of lines of code for small incremental moves would be to either write my own program, , or to be able to tell the machine to run some sort of iterative code that stops after a given number of cycles, then moves on the the next instruction.
    Any help, please ?
    John
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.


  2. #2
    Registered vlmarshall's Avatar
    Join Date
    Mar 2006
    Location
    usa
    Posts
    474
    Downloads
    0
    Uploads
    0
    Well, there's no canned cycle that will cut a parabolic arc, but if you can define the arc mathematically, I don't see why you couldn't get EMC to move from point to point along the arc.

    Running for a set number of cycles and them moving on, or cutting each cycle with a slightly different path (such as stepping down, or over, or along a radius) is the REASON I switched from Mach3 to EMC. I use conditional loops and program variables constantly at work, and just HAD to have them at home, too.

    http://www.linuxcnc.org/docview/html/gcode_main.html
    http://www.youtube.com/user/vlmarshall


  3. #3
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    The end result is always a series of short, straight moves. The easiest way to get there is to find a CAD program that'll let you do what you want, and export a .dxf of line segments and convert that to g-code.

    Another easy way is to use Excel to output the G-code.
    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)


  4. #4
    Registered
    Join Date
    Dec 2008
    Location
    canada
    Posts
    226
    Downloads
    0
    Uploads
    0
    Programming the part's surface path isn't so hard... figuring out how to compensate for the shape of your cutter can be fun though
    I.E. calculate the path of a vertical circular arc...
    x^2+Z^2=R^2
    Z=(R^2-X^2)^.5

    If your cutter is a sphere, it would come out fine if you just subtract its radius from the final radius, but if your cutter is a cylinder, flat end, like an end mill.... then you need some Trig. to find your cutter compensation... same for a parabola and a round cutter.


  • #5
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,265
    Downloads
    0
    Uploads
    0
    Hi John, I had a small program a couple of years ago that created code for mirrors, lenses and I think it would do parabola's as well, I cannot think of its name but if I can dig it up I will let you know.

    Cheers.

    Russell.


  • #6
    Registered beege's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    546
    Downloads
    0
    Uploads
    0
    If an ellipse is oriented in one of the axes, it would be a one axis scaling thing, which I don't know if EMC has.


  • #7
    Registered greybeard's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    1,386
    Downloads
    0
    Uploads
    0
    Morning all, and hi Russell.
    Welcome to another room in Greybeard's Home for the Bewildered.

    My request for this bit of info comes from my other thread on working out a centre line Roman letter plot.
    To generate a decent looking serif, the 60 degree v-cutter needs to follow a short parabolic helix, and given the emc doesn't have a gcode for that, it's going to be a series of short cuts, ramping down to the final depth of the main stroke of the letter.

    I have no problem with producing the function of the curve, but only have a vague idea on how to write the gcode such that the interpreter will calculate a series of steps for me.
    For example, if I needed to cut a sine curve -
    X [#1], y[ sin^-1#1] (where #1 goes from 0 to 1 in steps of 0.05 )(Not sure if ^ is the correct symbol for "to the power of")
    Then when #1 reaches 1, the plot moves on to the next line of code.
    I have some idea that this uses an IF -, THEN -, structure, but I don't know how to set it out.
    Regards
    John
    Last edited by greybeard; 02-27-2010 at 12:37 PM. Reason: syntax
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.


  • #8
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    2,265
    Downloads
    0
    Uploads
    0
    Hmmm... V-Carve would do this pretty easily

    Russell.


  • #9
    Registered greybeard's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    1,386
    Downloads
    0
    Uploads
    0
    If I had a dog, I wouldn't have to bark
    John
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.


  • #10
    Registered vlmarshall's Avatar
    Join Date
    Mar 2006
    Location
    usa
    Posts
    474
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by greybeard View Post
    Morning all, and hi Russell.
    Welcome to another room in Greybeard's Home for the Bewildered.

    My request for this bit of info comes from my other thread on working out a centre line Roman letter plot.
    To generate a decent looking serif, the 60 degree v-cutter needs to follow a short parabolic helix, and given the emc doesn't have a gcode for that, it's going to be a series of short cuts, ramping down to the final depth of the main stroke of the letter.

    I have no problem with producing the function of the curve, but only have a vague idea on how to write the gcode such that the interpreter will calculate a series of steps for me.
    For example, if I needed to cut a sine curve -
    X [#1], y[ sin^-1#1] (where #1 goes from 0 to 1 in steps of 0.05 )(Not sure if ^ is the correct symbol for "to the power of")
    Then when #1 reaches 1, the plot moves on to the next line of code.
    I have some idea that this uses an IF -, THEN -, structure, but I don't know how to set it out.
    Regards
    John
    Something like:

    O100 While [#1 LE 1]
    G1 X [#1], Y[ SIN^-1#1]
    #1=[#1+.05]
    O100 ENDWHILE

    ...but the [sin^-1] doesn't work.
    http://www.youtube.com/user/vlmarshall


  • #11
    Registered greybeard's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    1,386
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by vlmarshall View Post
    Something like:

    O100 While [#1 LE 1]
    G1 X [#1], Y[ SIN^-1#1]
    #1=[#1+.05]
    O100 ENDWHILE

    ...but the [sin^-1] doesn't work.
    Thanks for your help vlmarshal.
    My [sin^-1 *#1] was a complete guess as to how to express
    "that number which was the sine of n degrees, where n went from 0 degrees to 90 degrees in 20 steps".
    I think it should have read Y[SIN[**-1]#1], but I see it wouldn't have worked anyway.

    I'll see what I can learn about the WHILE/ENDWHILE command, but I may come back for more help.

    Regards
    John
    Last edited by greybeard; 02-27-2010 at 03:50 PM.
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.


  • #12
    Registered greybeard's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    1,386
    Downloads
    0
    Uploads
    0
    Is there a list of O-codes showing specific meaning associated with particular numbers, or does the operator define their own meaning ?
    It's like doing jigsaw puzzles in the dark.
    Enjoy today's problems, for tomorrow's may be worse.


  • Page 1 of 3 123 LastLast

    Similar Threads

    1. Need Help!- Circular Cut
      By mikelohj in forum LinuxCNC (formerly EMC2)
      Replies: 1
      Last Post: 06-18-2009, 01:19 PM
    2. What do you know about this circular saw???
      By mailloux in forum WoodWorking
      Replies: 5
      Last Post: 10-16-2007, 11:34 PM
    3. Circular pockets not cutting round - Help!
      By watsonstudios in forum DIY CNC Router Table Machines
      Replies: 6
      Last Post: 07-05-2007, 04:42 PM
    4. Circular Cut
      By Sanghera in forum GRZ Software- MeshCAM
      Replies: 13
      Last Post: 11-13-2006, 11:26 AM
    5. Circular Milling - G12/G13
      By HPT in forum Servo Motors and Drives
      Replies: 6
      Last Post: 05-14-2006, 02:22 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.