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

Thread: Deriving radius from I and J addresses

  1. #1
    Registered
    Join Date
    Jul 2010
    Location
    USA
    Posts
    169
    Downloads
    0
    Uploads
    0

    Deriving radius from I and J addresses

    Two questions:

    First, given a circular interpolation command like G3X..Y..I..J.., if XYIJ are all known, is it possible to compute the radius represented by these values?

    Second, is this the best area on CNCZone to post questions regarding CNC programming, or is there a more appropriate area??

    Thanks


  2. #2
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,291
    Downloads
    0
    Uploads
    0
    I moved it to a more appropriate forum.


    It's easy to find the radius using Pythagorean Theorem. I and J give you the center, and X and Y give you the end.

    A^2+B^2=C^2

    If IJ mode is incremental, you'll need to do some basic math to get the center.
    Attached Thumbnails Attached Thumbnails Deriving radius from I and J addresses-ij.gif  
    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
    Jul 2010
    Location
    USA
    Posts
    169
    Downloads
    0
    Uploads
    0
    Thanks much for the reply, and the move.

    Not quite following the Pythagorean Theorem suggestion, however. Maybe if I throw out some numbers, if you have a minute we could work an example.

    G41 X-.2706 Y-1.738 F12. D10
    G3 X-.2657 Y1.6832 I-19.4299 J1.738

    NCPlot tells me that I just cut a 3.4256" long arc with a center located at X-19.7005 Y0.0, and a radius of 19.5075.

    Are you saying that I can plug any/some/all of these values into Pythagorean Theorem and arrive at 19.5075??? (In absolute mode).

    Thanks


  4. #4
    Registered BlueChip's Avatar
    Join Date
    Jun 2003
    Location
    Massachusetts
    Posts
    158
    Downloads
    0
    Uploads
    0

    Auto Conversions

    If you have a lot of these to do ... or if you're looking for an automated route ... KipwareXC can perform these calculations automatically. INC I and J and K to ABS I and J and K or reverse ... and R to either INC or ABS I and J and K and reverse.

    Kentech Inc. - Real World Machine Shop Software for more info and videos.


  • #5
    Registered
    Join Date
    Jul 2010
    Location
    USA
    Posts
    169
    Downloads
    0
    Uploads
    0
    Nope. Just wondering if there is a way to calculate the radius without going the automated route. But thanks...


  • #6
    Registered
    Join Date
    Jul 2010
    Location
    USA
    Posts
    169
    Downloads
    0
    Uploads
    0
    Sorry...I get it now...

    19.4299^2 + 1.738^2 = Radius ^ 2 or I^2 + J^2 = R^2

    Thanks again...
    Last edited by eliot15; 01-31-2011 at 08:05 PM. Reason: More info


  • #7
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,291
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by eliot15 View Post
    Thanks much for the reply, and the move.

    Not quite following the Pythagorean Theorem suggestion, however. Maybe if I throw out some numbers, if you have a minute we could work an example.

    G41 X-.2706 Y-1.738 F12. D10
    G3 X-.2657 Y1.6832 I-19.4299 J1.738

    NCPlot tells me that I just cut a 3.4256" long arc with a center located at X-19.7005 Y0.0, and a radius of 19.5075.

    Are you saying that I can plug any/some/all of these values into Pythagorean Theorem and arrive at 19.5075??? (In absolute mode).

    Thanks
    Looks like Incremental IJ, so the center of the circle is:
    X = -19.4299 + (-.2076) = -19.7005
    Y = 1.738 + (-1.738) = 0

    Base of the triangle (distance between center and end) is
    -.2657 - (-19.7005) = 19.4348

    The other Leg is
    1.6832 - 0 = 1.6832

    Radius = Square Root ((19.4348^2) + (1.6832^2)
    Radius = 19.5075

    Simple.

    Edit: You did it for Absolute IJ, but the code is incremental IJ
    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)


  • #8
    Registered
    Join Date
    Jul 2010
    Location
    USA
    Posts
    169
    Downloads
    0
    Uploads
    0
    Can you explain that briefly. I'm in G90, so in general my code is in absolute mode. But I've heard that I & J are almost always in incremental mode. Does the control just know to read them as incemental values, unless you do something to tell the control to read them as absolute values???

    I'm using a FANUC control. Is it the case that it ONLY reads IJ as incremental values?? And older controls read IJ as absolute values maybe?????

    I'm running out the door and don't really have time to think about this at the moment. Maybe I'm overlooking the obvious.

    Thanks again...


  • #9
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    With the default parameter setting, IJK are always incremental, being the position of the center with respect to the start point (current position of the tool).

    With IJK, R is not specified. If you specify R also, IJK information is ignored.


  • #10
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,291
    Downloads
    0
    Uploads
    0
    I'm using a FANUC control. Is it the case that it ONLY reads IJ as incremental values?? And older controls read IJ as absolute values maybe?????
    Never used a Fanuc, but some controls allow you to specify which you want to use.
    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)


  • #11
    Registered mmcp42's Avatar
    Join Date
    Dec 2010
    Location
    UK
    Posts
    327
    Downloads
    0
    Uploads
    0
    the standard (NIST RS274) defines I and J as offsets to the centre of the arc
    so even in absolute X and Y, I and J are relative to the current X, Y position

    HTH


  • #12
    Registered
    Join Date
    Jul 2010
    Location
    USA
    Posts
    169
    Downloads
    0
    Uploads
    0
    Thanks much for the replys.


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Need Help!- Radius to end of Arc Differs From Radius to Startline
      By Bob La Londe in forum Machines running Mach Software
      Replies: 2
      Last Post: 08-09-2010, 10:16 PM
    2. Need Help!- Radius to end of arc differs from radius to start?
      By Jamy in forum LinuxCNC (formerly EMC2)
      Replies: 2
      Last Post: 08-23-2009, 12:28 AM
    3. I/O Addresses
      By KARD in forum CamSoft Products
      Replies: 1
      Last Post: 04-28-2008, 01:55 PM
    4. Need Help!- deriving quadratic equation
      By HuFlungDung in forum General CAM Discussion
      Replies: 1
      Last Post: 02-05-2008, 12:12 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.