Hello Les,
is it possible to let sheetcam add numbers for each line in the generated
codes?
This would be helpful when searching for specific lines/commands in the gcode.
Thank you very much and best regards,
Marc
Numbers for each line in generated programs?`
- Les Newell
- Site Admin
- Posts: 3685
- Joined: Thu May 11, 2006 8:12 pm
- Les Newell
- Site Admin
- Posts: 3685
- Joined: Thu May 11, 2006 8:12 pm
Go to Options->machine->post processor and click on the 'edit post' button. Add this to the end of the file:
Now save it and close the editor. Go back to Options->machine->post processor and select 'USBCNC (edited)'
That should do the trick.
Code: Select all
function OnNewLine()
post.Text ("N")
post.Number (lineNumber, "0000")
lineNumber = lineNumber + 10
end
That should do the trick.