×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Tool Path Equation
2

Tool Path Equation

Tool Path Equation

(OP)
This is really a math question but I don't know where else to ask it.

I need the equation (if there is one)of the curve for the path of the center of a circle which is rolling around an ellipse.  Any suggestions for math forums would also be appreciated.

RE: Tool Path Equation

More than you could ever want to know about an elipse at:

http://mathworld.wolfram.com/Ellipse.html

Using equation 10 from that site, simply add the r of your circle to both a and b.  (I think)

RE: Tool Path Equation

(OP)
I do like math world.  But the problem appears simple but may not be.  One can easily find a point on an ellipse.  And it's easy to find the tangent and normal at the point.  And then separate the the X and Y components from the circle radius and add them to the point on the ellipse X and Y.  What is not clear is how to find the inverse.

RE: Tool Path Equation

sreid,
Isn't it the equation for an ellipse, larger-or smaller-by the radius of the circle?  Am I missing something?
Regards,
Lcubed

RE: Tool Path Equation

(OP)
A visualization.  Make the ellipse thin and roll the circle around the ellipse.  The trace of the circle center is sort of like two straight line with circular arcs at the ends.  It's some kind of oval but clearly not an ellipse.

RE: Tool Path Equation

Not sure if you really need an inverse function, per se.  

If you know where the major and minor widths are, subtracting the diameter of the circle leaves you with the two axes of the ellipse itself.

TTFN

RE: Tool Path Equation

You start out with the fact that you are mapping the new coordinates from the x-y coordinates of the ellipse. The slope at the new points are dy'/dx' which are equal to dy/dx at the corresponding points of the ellipse. If the eq of the ellipse is:
x^2/a^2+y^2/b^2=1 then
dy/dx=-x/y*b^2/a^2 and the normal to the ellipse which passes thru the centre of the circle is -dx/dy=y/x*a^2/b^2.
Therefore you can write the slope eq of the ellipse in terms of the new coordinates as
dy'/dx'=(-x'-rho*cos(thet))/(y'-rho*sin(thet))*b^2/a^2
where thet is the arctan of dx'/dy' and rho the radius of circle and therefore
sin(thet=dx'/dy'/sqrt(1+dx'/dy')^2)
cos(thet)=1/sqrt(1+dx'/dy')^2)
Now you have a difficult diff eq that probably doesn't have a closed solution, but may be more useful than mapping a solution.

RE: Tool Path Equation

I did not check zekeman's calculation, but what you are looking for is the mathematical problem, covered in the "differential geometry" : You are looking for the ENVELOPE created by the circle with the diameter = radius of the tool, when it rolls around the ellipse.
If zekeman's method does not work, search on the Web for the mathematical solution.
 

RE: Tool Path Equation

(OP)
Thanks to all.  The magic term is "Parallel Curve."

RE: Tool Path Equation

We used the term "equidistant";
"parallel" was used for straight lines only.
But it was on another continent, long time ago and not in English language. Mathematically it is solved as envelope, in CAD we call it "offset" - all of it the same.

RE: Tool Path Equation

If you roll a circle around a circle, you get a circle.

A circle is just a special ellipse where both axis are equal.

Why wouldn't this also work for the general case?

sreid,  why wouldn't it be an ellipse?

Going back to mathworld, you are just changing the constant a to a different constant, a+r.  Seems like it should get you a larger ellipse.

RE: Tool Path Equation

Recommend you check that circle diameter is less than the "with" of the ellipse at the narrow endpoints.

Mathematically stated ??   The ellipse rate of curvature must be greater than the circles rate of curvature at all points.

RE: Tool Path Equation

Good point. Stated another way, if you are thinking of cutting an ellipse with a milling cutter, you must have the radius of the cutter less than the smallest radius of curvature of the ellipse due to undercutting. Therefore the tool path you get by rolling does not translate into the reverse at points where the curvature criteria is not met.Any book on cams or gears for has an explanation of undercutting.

RE: Tool Path Equation

MintJulep: You are incorrect.  If you have AutoCAD, you can prove it to yourself very easily. Draw an ellipse, and then create a second curve by offsetting the ellipse by some arbitrary amount. Then overlay a second (unique) ellipse with the same major and minor axes as the offset curve. You will find there is a difference between the ellipse and the offset curve - although the offset curve (which is actually a piecewise approximate spline) will look just like an ellipse to the casual observer. I believe there is a closed form equation for this curve, albeit a very complicated one, although why anyone would need one in this day and age is beyond me. A numerical solution to any desired degree of accuracy (using the simultaneous Newton Raphson method for example) should be fairly straightforward, and of course there is always CAD and the tool path offset capability built into all modern NC machining software.
Although it sometimes works and can provide insight, I am afraid that if you make a habit of generalizing from the special to the general case you will make a lot of mistakes!

RE: Tool Path Equation

Finding the centre of a circle rolling around the outside of an ellipse is a simple task when given the points (Xe,Ye), on an ellipse (Ae and Be) (the semi major and minor axes of the ellipse) and the radius of the rolling circle Rc.

First thing is to find the angle of the normal to the ellipse at a given point (Xe,Ye). This is done first on a circle  where Ac = Bc = Be,
with points (Xc,Yc) and the tangent of the normal is (Yc/Xc).

By considering the ellipse as a X scaled circle the tangent scales as well, so that at a point (Xe,Ye) we now have the normal angle ;

        Theta = ArcTan ( Yc * Ae  /  Xc * Be )

Then positioning the roller centre (Xr,Yr) is adding the X and Y components of a triangle whose hypotenuse is the ellipse normal of length Rc.

So the coordinates of the rolling circle on the ellipse are :

    Xr  =  Xe + ( Rc * Cos ( ArcTan ( Yc * Ae  /  Xc * Be ) ) )

    Yr  =  Ye + ( Rc *  Sin ( ArcTan ( Yc * Ae  /  Xc * Be ) ) )  

If the circle were to roll inside the ellipse then the components would be subtracted from the ellipse points.

Plug some numbers into this if it seems too good to be true.
No need to plunge into differential geometry or the Newton-Raphson method, more an understanding of conics and coordinate geometry.

A constant offset from any ellipse does not give another ellipse, the new curve is an oval.  




RE: Tool Path Equation

Kapitan: As I understand it, sreid did not ask how to calculate the tool path parametrically, starting out with the coordinates of a known ellipse, which as you say is a relatively simple matter - he specifically asked for an equation for the tool path (ie a direct relationship between the x and  y values of the curve). You inevitably end up with two interrelated equations, just like those you have written, which either have a very complicated closed form solution (which I believe does exist) or require a numerical solution , which (I repeat) can be achieved with a Newton Raphson iterative routine (such as that employed by TK solver for example). I again repeat - why sreid requires such a specific equation if he needs it only for machining purposes is beyond me, since one can compute the path in terms of the coordinates of the original ellipse by a number of means, including yours.

RE: Tool Path Equation

Kapitan,
A  small point. Your equations(in parametric form) are almost ok except that your terms in Ae/Be should be (Ae/Be)^2.

If you have a graphing calculator, the curve can be shown nicely, using the parametric feature.

RE: Tool Path Equation

English muffin,Kapitan

There is nothing inherently wrong with the idea of presenting a solution in parametric form, and nothing in the question precludes such a solution.
However as a practical matter, if sreid intends to use the solution for machining an elliptical part with a milling cutter then he would be well served to use the parametric form which is slightly incorrect as presented. They should read:
 Xr=x + Rc*cos(arctan(y/x*(a/b)^2)
 Yr=y + Rc*sin(arctan(y/x*(a/b)^2

The ellipse being:

x^2/a^2+y^2/b^2=1
Again for machining, the solution is not valid for the undercutting condition,
Rho<Rc
where Rho= radius of curvature at x,y coordinate of ellipse.

RE: Tool Path Equation

Is this a toolpath for a machining center????

If so, why not just use a G41 or G42 command and the original path that you want the cutter to follow. If the control uses FANUC programming language all of this is a moot point.

RE: Tool Path Equation

Correction:

My comment about undercutting applies only to cutting an internal ellipse where it is obvious you can't, if the radius of curvature at any point of the ellipse is less than the cutter radius.

No such limitation exists for the convex ellipse.

RE: Tool Path Equation

zekeman : Oh - I didn't say there was anything wrong with a parametric equation - its just that a parametric equation seemed so obvious that sreid's "if there is one" suggested to me that he was looking for an explicit solution. It's still not clear what he wants it for - if its for machining then the parametric equation would be OK, but as jbel and myself have suggested, just about any decent NC software can do this anyway.

RE: Tool Path Equation

english muffin,

Point well taken.
I do think some of these problems are real engineering situations and others are purely academic and the author should indicate as such so that people like you can address the problem properly.

RE: Tool Path Equation

Agreed, far too often we are not told the full story by the author or left with cybersilence, or both.

Whether or not there is any NC machining involved here I don't know and there is no shortage of CAD and NC programming packages to define geometry, but it is surely better to have some understanding of what's happening. It's very easy to just be an operator of such systems and not much more.

If a cutter is inside the ellipse, then an immediate and exact value of it's largest radius can be found ;

Minimum radius of Ellipse on major axis,
        Rmin = B^2 / A
and if needed, the other case,
        Rmax = A^2 / B

RE: Tool Path Equation

If you want to calculate it, you don't need the equation:
If you have a computer, you can solve a problem many ways
even by trial and error.

Else you can blow the result( for fix numbers ) into
a PROM or you can add a small computer module just to
calculate it. See jkmicro or bagotronics ( <www....com>
of course ) both make lowcost PC compatible singleboard computer cards.

<nbucska@pcperipherals DOT com> subj: eng-tips
read FAQ240-1032

RE: Tool Path Equation

(OP)
I'm happy to see that this question peaked peoples interest.  I did find a really elegant solution at Math World for Parallel Curves

http://mathworld.wolfram.com/ParallelCurves.html

The reason for the question is that we machine a lot of ellipse sections and we create our own tool path code.  Clearly as others have suggested it's not hard to calculate the required tool center but they are kind of klunky.  It's usually nice to be able to plug a number into an equation and get and answer.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources