G code Generator for Mills
- Posts: 7855
- Karma: 194
- Thank you received: 883
I have the following working so far for hole making.
Spot Drill
Drill
Ream
Rigid Tapping
And I have facing working almost, just a couple of things to add and that will be done.
Any feedback is appreciated.
Enjoy
JT
Please Log in or Create an account to join the conversation.
- Posts: 7855
- Karma: 194
- Thank you received: 883
Anyone try this yet?
JT
Please Log in or Create an account to join the conversation.
- Dan Falck
-
- Visitor
-

Thanks for coding it.
Dan
Please Log in or Create an account to join the conversation.
- Posts: 7855
- Karma: 194
- Thank you received: 883
gnipsel.com/files/g-code-generator
JT
Please Log in or Create an account to join the conversation.
- Posts: 7855
- Karma: 194
- Thank you received: 883
JT
Please Log in or Create an account to join the conversation.
I just tested the 1.7.02 version in my simulator install, and I must say that It looks really promising...
But it looks like you have a little bug in the facing function.

The input in the "Step over" field is not handled as expected. When empty, you get 75% of the tool diameter as expected. But when any value is given, the step over becomes 1/100 of that value, regardless of the tool diameter.
Also, as I live in "mm territory", I found the "Preferences" tab a little bit confusing. There is a radio-button for inch / metric selection (with a to me unclear function). There is also a "Preamble" field where the unit is selected by the G20/G21 code. I suspect there could be unexpected results if those two settings don't harmonize. Some kind of automated cross-update, or other solution to eliminate that possibility would be nice. I'm afraid I can't really come up with any good suggestion at this point.
You do put a lot of work into this, and I do rally appreciate everything you share with us.
Please Log in or Create an account to join the conversation.
- Posts: 7855
- Karma: 194
- Thank you received: 883
The inch/mm radio button was an idea I had that didn't pan out and they do nothing. The only thing you need is G21 in the preamble to be mm. I should remove it!
JT
Please Log in or Create an account to join the conversation.
But now I noticed that the Y start point, and the entire 1:st loop, is shifted inwards by the value of the step over. With step over values > 50% (> ½ tool radius) there will be a strip of uncut surface around the 4 outer edges. You need to include a tool radius compensation there.
"Send to Axis" works, but I get 2 extra lines in the beginning of the code (has to be removed for Axis to run). The 2 lines holds the values of the step over in %, and the step over in distance (mm/inch). Those 2 extra lines does not show up in the output frame when generating the code, and is not included in "Copy to Clipboard".
And one other thing... Is the "Save to File" feature implemented? The save dialog pops up, but nothing happens when I hit the save button.
Not so much positive feedback today... only more nagging.... sorry...

Please Log in or Create an account to join the conversation.
- Posts: 7855
- Karma: 194
- Thank you received: 883
BigJohnT wrote: The inch/mm radio button was an idea I had that didn't pan out and they do nothing. The only thing you need is G21 in the preamble to be mm. I should remove it!
JT
Actually the inch/mm give sane presets lol.
JT
Please Log in or Create an account to join the conversation.
- Posts: 7855
- Karma: 194
- Thank you received: 883
The save to file had a bug that I fixed.
I'm not seeing any issues with the step over location.
What are you entering?
What did you get?
What did you expect?
I've uploaded 1.7.04
JT
Please Log in or Create an account to join the conversation.