On 13 October 2010 06:39, Rudy Munguia <[email protected]> wrote:
> but EMC2 stops at the first M98 saying it is not recognized, am I not right in > using M98 to refer to the subs? I think the page you found was a compilation of how other G-code dialects do it (M98 seems to be Haas). The EMC2 way is: ... O100 CALL O200 CALL ... O100 SUB .... O100 ENDSUB O200 SUB ... O200 ENDSUB If you prefer, you can refer to the subroutines by name rather than number: O<pocket> CALL ... O<pocket> SUB ... O<pocket> ENDSUB Also, the subroutine G-code (and the enclosing SUB/ENDSUB can be in a separate file stored in the default .ngc file location: file mycode.ngc: ... O<pocket> CALL M2 file pocket.ngc: O<pocket> SUB .... .... .... O<pocket> ENDSUB See this link for more details: http://wiki.linuxcnc.org/emcinfo.pl?SubProgramFiles -- atp ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
