Hello Guest it is April 20, 2024, 04:52:59 AM

Author Topic: Line Numbers in G Code  (Read 3008 times)

0 Members and 1 Guest are viewing this topic.

Line Numbers in G Code
« 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.
Regards,
Ray L.

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Line Numbers in G Code
« Reply #1 on: November 05, 2008, 12:06:54 PM »
You can use them if you wish, Mach has no need for them.

Graham
Without engineers the world stops
Re: Line Numbers in G Code
« Reply #2 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.
Regards,
Ray L.

Offline Graham Waterworth

*
  • *
  •  2,672 2,672
  • Yorkshire Dales, England
    • View Profile
Re: Line Numbers in G Code
« Reply #3 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
Without engineers the world stops