On Sun, 2011-03-13 at 11:45 -0400, Mark wrote: > I'd write a small program in c or python to solve this. > > You only need to solve the problem for 1/4 of the perimeter. After that, > rotate and mirror > > Here are my thoughts on solving it: > > - find parameteric equations for an arc of the circle in 1st quadrant and > the edge of the square > - http://en.wikipedia.org/wiki/Parametric_equation > - for simplicity, I'm assuming a radius of 1 > - circle: x=a*cos(t); y=a*sin(t); in first quadrant, 0<t<pi/2 > - line with slope -1: *x1=-t+1; y1=t; 0<t<1* > - circle with parameter range 0 to 1: *x2=cos(pi*t/2); y2=sin(pi*t/2); > 0<t<1* > - assuming material thickness of 1 unit, with the square on the bottom > at z=0: *z1=0; z2=1* > - compute n values of x1,y1,x2,y2 between 0 and 1 with a for loop > - use x2, y2, z2 as X,Y,Z in the gcode > - use x1, y1, z1, x2, y2, z2 to find values for A, B, and/or C > > Mark > > On Sat, Mar 12, 2011 at 5:30 PM, Viesturs Lācis > <[email protected]>wrote: > > > Hello, gentlemen! > > > > I would like to ask, if anyone has an idea, how to create a code to > > produce this kind of part (both files contain the same model, I just > > saved it in 2 different formats): > > http://www.cutting.lv/fileadmin/user_upload/Test.IGS > > http://www.cutting.lv/fileadmin/user_upload/Test.STL > > > > My goal would be cutting this part from thick slab of material. Those > > flat planes represent top and bottom surfaces of the slab. > > Basically I would like to get code, in which the waterjet (or any 5 > > axis plasma or cuts a circle on the top, but rotary joints that tilt > > the head would move so that something like a square is on the bottom. > > > > So the problem is finding out the necessary tilt angle, which > > corresponds to the slope of the edge. I thought that it could be > > something like dividing the top contour (in this case - the circle) in > > 0.1 mm segments and then getting the slope angle, but I have no idea, > > how to do that. > > > > Can anyone recommend some kind of solution? Is there some _affordable_ > > CAM application that can do that (I have found one that costs 12K EUR, > > but I do not even consider that to be an option)? Or can I calculate > > that myself with some trigonometry? Since I know the distance from one > > plane to another (that is the thickness of material), I would need > > only horizontal distance from one line to another to get the angle > > with atan function. The distance between both lines could be > > calculated in 0,1 - 0,2 mm increments. That would not affect the > > quality of the result and probably would not create insanely long code > > for such a small part. > > > > I would appreciate any ideas on this matter. > > I think that any solution that works will do! > > > > Thanks, > > Viesturs > > Hi Viesturs,
That must have been a pretty clean iges file as it imported into synergy just fine. Much better than some of the Catia stuff I've gotten. Unfortunately, I don't have the slightest how to CAM it in 4 axis or 5 axis. It is rather small so 4 axis should do it. Just plain calculations do make sense and even if the code is 10K lines or so you really don't care. Have fun. Dave > > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > > A question and answer guide to determining the best fit > > for your organization - today and in the future. > > http://p.sf.net/sfu/internap-sfd2d > > _______________________________________________ > > Emc-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/emc-users > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
