Lathe G code Generator

More
22 Dec 2014 23:10 - 22 Dec 2014 23:15 #54218 by BigJohnT
I'm working on a G code generator for the lathe that includes a roughing cycle.

What I have now in my mind is to enter the following items into the generator and it spit out the correct code.

Inch MM check box
Tool Number (not used if blank)
Roughing Depth
Finish Pass Depth (not used if blank)
Surface Speed and RPM limit.
Material Diameter
Z Clearance Point
List of lines or arcs that describe the profile from the outside to the center.

A tab will have the Lathe Arc Generator on it so you can get the arc G code and send it to the list.

The roughing cycle does a feed move to the Z end then a feed move following the contour of the line or arc so the finish pass is a constant depth of cut. Then a feed move out by X step depth. Then rapid moves to Z clearance and over to the next step.

Some screen shots of tests.





The Arc Generator



JT
Attachments:
Last edit: 22 Dec 2014 23:15 by BigJohnT.
The following user(s) said Thank You: Dimitrios, Rick G, fabworx, bjames28, joekline9, tkamsker

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

More
18 Feb 2015 18:06 #56072 by tkamsker
Replied by tkamsker on topic Lathe G code Generator
looks very promising
nice
keep up the good work
thomas

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

More
19 Feb 2015 21:31 #56119 by Rick G
Replied by Rick G on topic Lathe G code Generator
Pretty cool John, looking forward to giving it a try!

Rick G

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

More
21 Feb 2015 06:08 #56172 by joekline9
Replied by joekline9 on topic Lathe G code Generator
I Like it. :)

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

More
21 Feb 2015 21:29 #56186 by BigJohnT
Replied by BigJohnT on topic Lathe G code Generator
I need to get this finished, been backlogged with computer problems...

JT

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

More
23 Feb 2015 04:02 - 23 Feb 2015 04:13 #56223 by BigJohnT
Replied by BigJohnT on topic Lathe G code Generator
I made some progress this morning on this, I've embedded a GladeVCP tab in Axis and will use the python interface to send the file to Axis. I'm pretty sure I'm on the right track with this as you can modify the path then load it in axis to view it with the back plot. Saves having a separate back plot.



Edit: Well, crumb the file lathe02.ngc shows loaded in the title bar but the splash code is still displayed so Axis is not "seeing" the new code.

JT
Attachments:
Last edit: 23 Feb 2015 04:13 by BigJohnT.

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

More
23 Feb 2015 05:16 #56225 by BigJohnT
Replied by BigJohnT on topic Lathe G code Generator
Looks like I can use axis-remote to load the file YEA!

In my python I just have to use os.system('axis-remote file_name.ngc') to load the file and have Axis update.

JT

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

More
16 Mar 2015 22:31 #56892 by jlviloria
Replied by jlviloria on topic Lathe G code Generator
John, greetings,


I just wanted to ask how you are going with the project I'm working on something similar but with remap (g71 cycle Fanuc style), first. I am learning programming. and python, you could share your code?



thanks,


Jorge Viloria

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

More
17 Mar 2015 19:25 #56937 by BigJohnT
Replied by BigJohnT on topic Lathe G code Generator
Right now it is a jumble of code bits... I've worked out the roughing for arcs and lines but have not combined all the work into a cohesive file. I do have some tutorials on Python and Gtk on my web site.

JT
Attachments:
The following user(s) said Thank You: jlviloria, jo_key

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

More
14 Apr 2021 20:03 #205936 by rocr
Replied by rocr on topic Lathe G code Generator
Hello,

I see this is an old thread, but is this still available, and can be used?

thanks

Ron

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

Time to create page: 0.153 seconds
Powered by Kunena Forum