I'm not with my Mach pc for a few days, but I was wondering about how flexible Mach is when it comes to the order of subprograms and main code etc in a gcode file; so I thought I'd just ask instead.
My code runs fine, when the subprograms are written in numerical order, but it would be useful if they could be written in the order in the attached text file; I have a program that generates my gcode, which I can modify easily to resemble that in the attachment, but putting them in numerical order would be much more difficult.
Does Mach allow subprograms to be listed in non numerical order? Does it matter if some appear after the 'M30' line? My code has no main program as such; the main code is in sub 411, and it never gets to M30 because a macro called before that closes the file and opens the next one in the folder.
As I said, it runs fine when the subs are in numerical order; the only change to the attached version is the order they are written in.