Thanks for your response. I own a miniature horizontal CNC mill and am a C# Visual Studio SQL programmer for a living. The programs the vendor provides with the mill have no comments.
After spending hours trying to memorize G-codes so I could understand their code, I was completely thrilled to find you efforts. I ran the vendor’s code through your program and finally was able to see what it was doing.
Paramount Die Company is very close to where I live and I want to talk to them about a part time programming job. http://www.paradie.com/
They use GibbsCam software and from their product line, it looks like they use lathes.
Here is the list of M Codes – CNC Milling and Lathe I was looking at:
Complete list of G and M codes which are common in almost all the cnc controls which are used in cnc machine workshops around the world.
If your utility could just display the Description that they have beside the codes, it would save the tremendous effort required to either memorize or look up each code as it it used.
Might be handy to put the gcode descriptions in an editable file (yes, I know source code is editable, but it’s a bigger project), at least for the non-RS274X codes added for 3D printers and controller vendor additions.
The code is already set up for me to add a command line option for this.
However, I need to expand the definition file so that command groups can be identified, as well as the priorities between commands, etc. And that requires dome refactoring.
No problems, obviously if you have a reliable source for those other codes feel free to send me a reference, or put them into tokenDefinitions.json yourself and send me a pull request (you may need to do a fork to get github to accept it back)
Did you get a chance to address the inappropriate use of G0 issue?
All my free time has gone into turning part of a 100 year old barn (where flat, level, and plumb were novel concepts) into a wood and Maslow shop, so CNC time has been non-existent. The swamprats have yet to express an opinion but no parts or have been disappearing. Need to leave them room for a nest in a corner just in case
I’m all for that too, with an option to turn any upward Z move into a rapid. Estlcam, which our friend @Metalmaslow sells at a great price, does G0 retracts. Carbide Create, which does G1 retracts, has been my main weapon of choice lately and they’ve promised to open their post processor system which should sort this one out.
However we’re trying to lead md8n into producing a much needed gcode optimizer, which qualifies as scope creep. Next he’ll be encouraged to lump moves between rapids together and do a TSP solution on them (I’ve used optimizers that do this, with mixed results. Bounce all over gcode generators see a big benefit, ones that make even a modest attempt at decent travel moves don’t).
With luck I’ll be starting a base cabinet prototype today using the rebelted/realigned/rebladed older delta contractor saw in the expanded mooseshop, Hopefully the swamprats haven’t chewed up or removed a link from the belt. There will be extended width cabinets for corners, with a difficult to reach section for a swamprat hangout. It’s been an iterative process, each improvement contributes to the next one, after the obligatory half day trip to the hardware store or week long amazon prime “2 day” shipping cycle, of course.