On Tuesday 25 September 2012 08:20:32 Michael Haberler did opine:

> Gene -
> 
> have you tried SUBROUTINE_PATH:
> http://www.linuxcnc.org/docs/devel/html/config/ini_config.html#_rs274ng
> c_section_a_id_sub_rs274ngc_section_a ?
> 
> -m

ISTR I ran across that once before Michael, and rejected it because it is 
an .ini function, which unless I setup a separate /config/ directory and 
restart linuxcnc each time I change gcode programs to start a new job, 
wouldn't be near as practical, at least for me, as being able to specify, 
or derive somehow, an individual, job specific path which would then exist 
in the environment once it was set, until specifically zeroed out by 
another mcode (or whatever), or reset by the parent code for beginning a 
new job.  Exactly the same idea as specifying all the G7\G8 etc stuff in 
line 3 of a new file.

Perhaps not an mcode, but an 'oword' family function like the 'call' which 
does 'setsubpath' which actually does this specifying of SUBROUTINE_PATH 
might make more sense?

> Am 25.09.2012 um 04:09 schrieb Gene Heskett:
> > Greetings all;
> > 
> > The last time I tried to see if I could put all the files for a given
> > project in its own subdir of nc_files, I ran into the path list
> > problem when calling named subroutines and was forced to put the
> > subroutines in the higher level nc_files directory.  So ATM I
> > probably have 30 or more such files that could be moved out of that
> > root dir and into the subdir they go with IF we had the ability to
> > command, in the gcode src file, a string pointing at the correct
> > subdir, one that could be automatically appended to the path if the
> > subroutine is not found in the nc_files root directory.
> > 
> > Actually, there might be a second way too.  If we record the directory
> > path at open time, and then just assume the subroutine is in the same
> > dir as the top level source gcode is.
> > 
> > A third way might be to use a full pathlist in the call statement, and
> > when the sub has been loaded, strip the string down to the last *.ngc
> > of that pathlist.
> > 
> > Is this something that can eventually be done?
> > 
> > Thanks.
> > 
> > Cheers, Gene


Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
try again

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to