771
G-Code, CAD, and CAM discussions / Re: Newbie questions about circle pocket cutting
« on: October 15, 2008, 07:10:10 PM »
The wizards are a quick way to machine common tasks. When you specify a tool in the wizard, it calculates the diameter of the tool into the code. Notice there is no tool offset commands in the code (G42-G43,G40). There may be some wizards that work differently, I haven't looked at them all. If you need a smaller hole, you will haft to re-enter the wizard and change your numbers. That's the way I understand it, anyways. If you have a CAM package, most likely you will have the option to change your hole diameter by changing the tool number or diameter in Mach3. You could also do a wizard for roughing out the pocket, then write a simple circle path manually with tool comp, for the finish pass. This would allow you to make changes to the diameter.
There are many ways to accomplish this, and it basically boils down to personal preference on the methods you choose. Chapter 7.7, and Chapter 10 of the manual may deserve a good reading. I'm not the village expert on subs and G-code, so I will not go into detail.
Quote
Secondly, once this is perfect I want to stick it in a subroutine. I'm going to want to cut many of these parts out of a single sheet of Plexiglas, so I figure I can have a main program that's just "move to location, call routine to cut part, move to next location, call routine, etc." But the wizard spits out absolute coordinates, how can I convert them to relative coordinates so they can go in a subroutine? Or is there a better way to accomplish what I'm trying to do?
There are many ways to accomplish this, and it basically boils down to personal preference on the methods you choose. Chapter 7.7, and Chapter 10 of the manual may deserve a good reading. I'm not the village expert on subs and G-code, so I will not go into detail.