Lathe G code Generator

More
22 Dec 2014 23:10 - 22 Dec 2014 23:15 #54218 by BigJohnT
BigJohnT created the topic: Lathe G code Generator
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
More
18 Feb 2015 18:06 #56072 by tkamsker
tkamsker replied the topic: Lathe G code Generator
looks very promising
nice
keep up the good work
thomas
More
19 Feb 2015 21:31 #56119 by Rick G
Rick G replied the topic: Lathe G code Generator
Pretty cool John, looking forward to giving it a try!

Rick G
More
21 Feb 2015 06:08 #56172 by joekline9
joekline9 replied the topic: Lathe G code Generator
I Like it. :)
More
21 Feb 2015 21:29 #56186 by BigJohnT
BigJohnT replied the topic: Lathe G code Generator
I need to get this finished, been backlogged with computer problems...

JT
More
23 Feb 2015 04:02 - 23 Feb 2015 04:13 #56223 by BigJohnT
BigJohnT replied the 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.
More
23 Feb 2015 05:16 #56225 by BigJohnT
BigJohnT replied the 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
More
16 Mar 2015 22:31 #56892 by jlviloria
jlviloria replied the 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
More
17 Mar 2015 19:25 #56937 by BigJohnT
BigJohnT replied the 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
Time to create page: 0.316 seconds
Powered by Kunena Forum