Is there a setting I can use to number my gcode lines so I can trace a problem? The program I'm working on now has over 10,000 lines of code, and it's hard to trace anything.
Is there a setting I can use to number my gcode lines so I can trace a problem? The program I'm working on now has over 10,000 lines of code, and it's hard to trace anything.
you need to edit your gpp file:
under @init_post, make sure you have the following:
blknum_gen = TRUE
blknum_exist = TRUE
blknum = 1 ;starting block no
blknum_delta = 1 ;block no increment
blknum_max = 9999999
Then all blocks of code under @line, @arc and @rapid_move etc (and any others that are outputing code) need to use:
{nb,
NOT
{nl,
nb = new block with block number
nl = new line without block number
Hope that helps!
It depends how your post is set up. Have a look in your MAC file to see if there is a part option setting to show line numbers or not. Failing that, have a look in your GPP file under the heading "GPPL variables" for either "blknum_gen = false" or "blknum_exist = true"
and set those accordingly.
If they are not present it is either have a go at editting your post or call your reseller.
Thanks, I'll give it a try.