Re: NC subprograms



Hi Dave,

> I ended up using subprograms for EVERYTHING. M98 is "call subprogram" and
> M99 (replaces M30 at end of subprogram) is
> "return to main program". I also wanted 2 areas on screen with
> main program in one and current subprogram (if any) in the other.
> The area where the program scrolls is not very wide, it seems like this
> would fit if it's worth the work to put it there.
> 
> Dave
> 

This is a snip for rs274ngc.cc, is M98 and M99 really defined ? There's a -1 at
position 98 and 99 and in addition to that I can't find M98 and M99 in the
rs274ngc documentation.

<snip>
Modal groups and modal group numbers for M codes are described in [NCMS,
page 7]. We have added M60 as an extension of the language
so the language can be used to control the K&T 800 machine.

The groups are:
group 4 = {m0,m1,m2,m30,m60} - stopping
group 6 = {m6}               - tool change
group 7 = {m3,m4,m5}         - spindle turning
group 8 = {m7,m8,m9}         - coolant
group 9 = {m48,m49}          - feed and speed override switch bypass

*/

static int ems[] SET_TO {
   4,  4,  4,  7,  7,  7,  6,  8,  8,  8,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
   4, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,  9,  9,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
   4, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};

/*
</snip>

Max




Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact