I got it working :-) My files were stored in a subdirectory. So, I had to move them to the PROGRAM_PREFIX path and it worked.
I thought the files are searched in the directory where the calling code is stored. Thank you. Thorsten Am Samstag, den 12.09.2009, 21:35 -0400 schrieb Kenneth Lerman: > What directory is the file you are providing in? The .ini file should > have a line PROGRAM_PREFIX=some_directory in the [DISPLAY] section. > > That directory is where the file should be located. The file name should > be something like: 1.ngc or name.ngc. > > Ken > > Thorsten Seefeldt wrote: > > I tried this using the emc2-sim version 1:2.3.3 > > I also use the actual non-sim version of emc2. > > > > Greetings > > > > Thorsten > > > > > > Am Samstag, den 12.09.2009, 01:44 +0300 schrieb Alex Joni: > >> What emc2 version are you using? > >> > >> Regards, > >> Alex > >> > >> ----- Original Message ----- > >> From: "Thorsten Seefeldt" <[email protected]> > >> To: "Enhanced Machine Controller (EMC)" <[email protected]> > >> Sent: Saturday, September 12, 2009 1:15 AM > >> Subject: Re: [Emc-users] EMC G-Code - Calling Files > >> > >> > >>> I changed the ini file as you told me, but it still does not work. > >>> Some more ideas? > >>> > >>> > >>> Thorsten > >>> > >>> > >>> Am Donnerstag, den 10.09.2009, 20:12 +0200 schrieb Thomas Jager: > >>>> Try setting: > >>>> > >>>> [RS274NGC] > >>>> LAZY_CLOSE = 1 > >>>> > >>>> In your ini file. > >>>> > >>>> On Thu, 2009-09-10 at 19:54 +0200, Thorsten Seefeldt wrote: > >>>>> Hello, > >>>>> > >>>>> I want to call a subroutine which I have moved to a separate file. > >>>>> The documentation says this can be done like this: > >>>>> > >>>>> o<myfile> call (a named file) > >>>>> > >>>>> ------ > >>>>> > >>>>> myfile.ngc > >>>>> o<myfile> sub > >>>>> ... > >>>>> o<myfile> endsub > >>>>> M2 > >>>>> > >>>>> Unfortunately this does not work. Nothing happens when the command > >>>>> "o<myfile> call" is executed. > >>>>> > >>>>> Can somebody please send me a working example? > >>>>> > >>>>> Many Thanks > >>>>> > >>>>> > >>>>> Thorsten > >>>>> > >> > >> > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus > > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Emc-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
