I believe that this is even worse of a rewrite that Chris suggests. It would require major changes to the set of limitations imposed on the author of the interpreter when he wrote it.
There is a variable in the interpreter that allows you to set the acceptable concavity of a corner. I've played with that variable just a bit. It requires a recompile of the relevant files but programs run with different allowances show some really interesting issues. Long ago I posted a few pics of the resulting tool path for developers to look at. My conclusion was that the way the interpreter handles the concave problem now is that it moves the tool tip to the endpoint of the first move into the corner, then goes from there to wherever the second move ends with proper tool offset. The big problem is that for the most part the interpreter considers only two blocks of code, the current line for which it has already stacked a set of canonical commands, and next line for which it is building a set of moves. As it is now, the gouge code is simply a "go or gouge" boolian. If gouge it stops and raises the error message. For a single concave corner it should be possible to compute a bisector of the angle and figure out how far short of the corner the current tool has to stop so as not to gouge. From there it should move with a proper tool offset along the second line. The problem is compounded by the fact that the next corner after the concave may also need to be figured into the original corner. One need only imagine a 0.250 groove with two 90s back in and a 0.375 tool to see that the interpreter should raise the gouging error message rather than attempt the moves. Quite a few similar sorts of problems were considered when the author of the interpreter did his work. Some of those examples are still available in the RS274NGC web stuff -- wherever it is these days. If we were contouring using tiny straight lines like many of the CAM programs spit out, we will quickly come to discover great difficulty in what at first blush seems a rather simple computation. I took a look at a Mitsubishi control manual and the example shown is of an inside radius quite a bit larger than the tool used to cut it. The text reads, "In the cutter compensation mode, up to five blocks of the program are read in advance, and a check for interference due to the tool diameter is made based on the shape of the third block ahead." That same book lists two possible ways to enter compensated moves so that, "The cutter compensation vector amount and direction are retained" or, "The cutter compensation vector direction is updated by IJ." All of that by way of saying it will be hard to do, not that it should not be done or put into the list of things to do. Rayh On Fri, 2007-05-04 at 13:22 -0500, Chris Radek wrote: > On Fri, May 04, 2007 at 11:44:07AM -0500, Jon Elson wrote: > > Here's another question from a customer. He wants to be able to > > run G-code with two G1 moves at right angles on an inside > > corner, while G41/G42 cutter radius compensation is in force. > > He claims most other controls handle this smoothly and > > correctly, as you can't actually gouge the inside corner no > > matter the tool diameter. > > > > Any thoughts on whether this is hard or not? > > Aside from any (inevitable?) argument about whether it's good or bad > to round concave corners without warning, I can certainly understand > that's one of the things a user might want. > > Unfortunately allowing this is not a simple tweak. It would require a > substantial rewrite of the cutter comp code. > > Here's a thread from Feb: > > http://thread.gmane.org/gmane.linux.distributions.emc.devel/266/focus=267 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
