Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: HimyKabibble on November 05, 2008, 11:17:59 AM

Title: Line Numbers in G Code
Post by: HimyKabibble on November 05, 2008, 11:17:59 AM
Do I understand correctly that G code does not require line numbers - i.e. - they can be deleted?

Does Mach pay attention to them?  Will it care it, for instance, they are out of sequence?  My post outputs line numbers, but it would sometimes be convenient to move blocks of code, to re-order operations to reduce unnecessary moves, but that would leave the numbers out of order.  I can, of course, write a simple Perl script to fix that, but I am one lazy SOB....

Regards,
Ray L.
Title: Re: Line Numbers in G Code
Post by: Graham Waterworth on November 05, 2008, 12:06:54 PM
You can use them if you wish, Mach has no need for them.

Graham
Title: Re: Line Numbers in G Code
Post by: HimyKabibble on November 05, 2008, 04:42:32 PM
Graham,

   So does Mach completely ignore them?  i.e. - If they are there, but not in proper sequence, will Mach care?  My guess is no.

Regards,
Ray L.
Title: Re: Line Numbers in G Code
Post by: Graham Waterworth on November 05, 2008, 04:54:06 PM
No it dose not care about them, they are ignored.

If you put them in there are more rules, e.g. you can not have a line number on the program number line 'N0001 O0001'

Graham