I believe that the 2.2 release has that functionality for numbered o-words. In that case, it looks for a file named o123.ngc. Named o-words are not supported in 2.2. The next major release will support named o-words. More precisely, the current trunk contains that code.
Ken ----- Original Message ----- From: "Dave Engvall" <[EMAIL PROTECTED]> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> Sent: Friday, March 21, 2008 2:34 PM Subject: Re: [Emc-users] newb question: multiple cnc programover multiple*.ngc files > What release/version of emc is required to make this go? > > Dave > On Mar 21, 2008, at 10:00 AM, Kenneth Lerman wrote: > >> The latest code for o-word subroutines permits multiple files to be >> used. If >> the "called" o-word has not been seen in the current file, the >> interpreter >> will look for a file named the same as the o-word with a suffix of >> ".ngc". >> The interpreter will look in the location specified by the >> "PROGRAM_PREFIX" >> variable in the DISPLAY stanza of the .ini file. >> >> So, "o101 call" will look for the file 101.ngc, "o<pocket Hole> >> call" will >> look for the file pockethole.ngc. [Remember that characters are >> converted to >> lower case and white space is removed in gcode files.] >> >> The PROGRAM_PREFIX variable can be rooted ("/home/lerman/ >> GcodeSubroutines") >> or relative ("GcodeSubroutine/Mill"). >> >> Be aware that this has not been fully tested. >> >> One really neat aspect of this is that one can write a file >> containing a >> subroutine and put the test code at the end. If the file is run >> directly, >> the test code will be executed. If the file is loaded on demand, >> the test >> code will not be executed. That's a purely accidental consequence >> of how >> things have been defined, but it's still prety neat. >> >> Ken >> >> ----- Original Message ----- >> From: "Dave Engvall" <[EMAIL PROTECTED]> >> To: "Enhanced Machine Controller (EMC)" <emc- >> [EMAIL PROTECTED]> >> Sent: Friday, March 21, 2008 12:47 PM >> Subject: Re: [Emc-users] newb question: multiple cnc program over >> multiple*.ngc files >> >> >>> Hi, >>> It would indeed be a nice feature if one could use a script to >>> sequentially run a series of g-code files. :-) >>> >>> Dave >>> On Mar 21, 2008, at 8:51 AM, Stephen Wille Padnos wrote: >>> >>>> rtwas wrote: >>>> >>>>> Hello, >>>>> >>>>> In the "Language Overview" section of the manual: >>>>> >>>>> http://www.linuxcnc.org/docs/2.2/html/gcode_main.html#cha:Language- >>>>> Overview >>>>> >>>>> I'm seeing this line: >>>>> >>>>> "A single program may be in a single file, or a program may be >>>>> spread >>>>> across several files.". >>>>> >>>>> >>>> I suspect that they're referring to the idea that you can use >>>> multiple >>>> files to machine a single part. There is no feature that allows >>>> you to >>>> "include" or "chain" G-code files. >>>> >>>> What some people do is make separate G-code files for each tool or >>>> process (roughing, finishing) they need. Since you don't lose >>>> machine >>>> position when you load a new file, you can split a long series of >>>> steps >>>> into multiple shorter files. >>>> >>>>> However the only way I can see to make use of g-code over multiple >>>>> files >>>>> is by using "m100-m199" >>>>> >>>>> >>>> Custom M codes can't command any motion, and they aren't G-code >>>> files, >>>> they're external programs (as in computer programs - you could >>>> run an >>>> editor with an M code if you like). >>>> >>>> - Steve >>>> >>>> >>>> -------------------------------------------------------------------- >>>> -- >>>> --- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Emc-users mailing list >>>> Emc-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/emc-users >>> >>> >>> --------------------------------------------------------------------- >>> ---- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Emc-users mailing list >>> Emc-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/emc-users >>> >> >> ---------------------------------------------------------------------- >> --- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Emc-users mailing list >> Emc-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users