On Sat, 2009-06-13 at 09:34 -0400, Kenneth Lerman wrote:
... snip  
> Without reverse engineering the actual slot angles, etc, it is difficult 
> to really *know* what the code does. Assuming though, it is intended to 
> do what the AXIS backplot shows it is doing, the code can be greatly 
> improved. Just to be sure, I'm going to start by stating what I think 
> the intention of the code is.
> 
> The code mills a disk. The disk has a center hole and twenty-five radial 
> slots. The slots have equal size and spacing. The spacing is different 
> than the slot width.

Spacing and slot width should be the same. I usually check this in
backplot by running the file in a simulated machine configuration, doing
a global replace of "g41" with "(g41)", then reload and run the file
again. This gives you both tool center and edge paths. Oh, and the tool
table needs to be set too.

The basic method I used was to draw the slot shape in QCAD, run this
through dxf2gcode, then gedit and check the g-code with backplot until
the g-code runs properly for the one slot. Then I used OpenOffice to
turn the line and curve center points that are in Cartesian format, into
polar format, Openoffice is again used to create equations to convert
the polar coordinates back into Cartesian but leaving the angle as a
variable. Finally I plug these equations for each x, y, i, j back into
the original g-code. Loops are set up to cut a complete slot form on
each pass for the current slot angle which gets incremented by 360/n
degrees. There is a roughing and finish form for each feature. The
roughing forms get loops to increment Z.

If I left radius as a variable in the equations, the slot circle
diameter would be easier to change. This could be done with any form
that need to be rotated. To rotate around a point other than (0,0), I
think, would just need an offset added to the equations for x and y ,
( [x+a], [y+b]).

I banged on this just to the point that I got a viable part file, so
there is room for updates.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to