On Sun, 29 Jan 2012 10:43:18 -0800, you wrote: >Regarding messing with the g-code interpreter, my vote is that g-code >should describe axis position, feedrate; and spindle speed and >direction, and little more. Everything else should be handled with CAM, >including canned cycles and such. Less is more. > >If one insists on "improving" g-code, I would start over with a language >using keywords rather than letters. The need to to extract the most >context from single symbols is a throwback from when teletypes ran at >300 Baud. > >Just my opinion based on very limited experience.
Your limited experience is good, IMO. My experience comes from working in the commercial world for 40 yrs. The simpler the code, the better. It doesn't matter these days how long the code is, but it has to be simple. The guys running CNC machines in factories are not rocket scientists. They don't have to be. Subroutines are a big NO. They are rarely understandable to anyone else other than the geek who wrote them, and they are impossible to recover from if anything goes wrong. Canned cycles aren't much better! None of the modern commercial code I see contains either. Fanuc controls, in the main, can't feed hold in a canned cycle or subroutine and recover. They can with plain Gcode. One of the companies I do a bit for make hydraulic manifolds. They start with a steel forging. It has over 40 holes drilled and reamed in it and ALL are threaded for plugs or hose connectors. The rough forgings are over £1000 each. There are four of these in each machine on a tombstone mount, one of the risky actions is drilling through end to end, (600mm) then reaming with a scissor action floating reamer. The whole process is done with G1 and G0 moves. Not a peck or deep hole cycle in sight. Simple reason is the ops can hear if it goes wrong, stop the machine, jog out, rewind a few lines, change tools and carry on. Some may think it's clever writing fancy subs and others may marvel at how clever you are reducing 100 to 4 lines of code. Those who actually work in the real Engineering world often laugh/curse and think - what a **** Steve Blackmore -- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users