G code Generator for Mills

More
09 Dec 2013 07:18 - 09 Dec 2013 07:20 #41425 by BigJohnT
I've been working off and on coding a G code Generator for mills written in python. It includes a database of taps and drills to make life easier.

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
Last edit: 09 Dec 2013 07:20 by BigJohnT.

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 04:08 #41443 by BigJohnT
Replied by BigJohnT on topic G code Generator for Mills
The Facing part it fully working now....

Anyone try this yet?

JT

Please Log in or Create an account to join the conversation.

  • Dan Falck
  • Dan Falck's Avatar
  • Visitor
  • Visitor
10 Dec 2013 13:12 #41454 by Dan Falck
Replied by Dan Falck on topic G code Generator for Mills
I opened it and looked at it a bit. It looks nice. It looks like you've put a lot of work into it. I will try it out when I come up for air :)

Thanks for coding it.

Dan

Please Log in or Create an account to join the conversation.

More
10 Dec 2013 19:13 #41469 by BigJohnT
Replied by BigJohnT on topic G code Generator for Mills
To get the latest one use this link. Seems like I just got a lesson on browser and web site cashing.

gnipsel.com/files/g-code-generator

JT

Please Log in or Create an account to join the conversation.

More
23 Feb 2014 21:33 #44081 by BigJohnT
Replied by BigJohnT on topic G code Generator for Mills
I have added quite a bit to this and the current version is 1.6.05

JT
The following user(s) said Thank You: bottleworks

Please Log in or Create an account to join the conversation.

More
10 Mar 2014 04:48 #44616 by pi.r
Replied by pi.r on topic G code Generator for Mills
Hi BigJohnT..!

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. :whistle:
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.

More
11 Mar 2014 04:30 #44638 by BigJohnT
Replied by BigJohnT on topic G code Generator for Mills
I've fixed the facing step over error. BTW, you enter in step over percent as a whole number. I added info in the help file about that and the preferences tab.

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.

More
11 Mar 2014 07:12 - 11 Mar 2014 07:38 #44643 by pi.r
Replied by pi.r on topic G code Generator for Mills
OK - Tested again - The step over is correct. - Great..!

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... :dry:
Last edit: 11 Mar 2014 07:38 by pi.r. Reason: Clarification and misspelling

Please Log in or Create an account to join the conversation.

More
11 Mar 2014 19:21 #44664 by BigJohnT
Replied by BigJohnT on topic G code Generator for Mills

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.

More
11 Mar 2014 19:45 #44666 by BigJohnT
Replied by BigJohnT on topic G code Generator for Mills
Looks like my debugging print statements get sent to Axis so I removed them.

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.

Moderators: Dan FalckSkullworks
Time to create page: 0.112 seconds
Powered by Kunena Forum