- Posts: 3410
- Thank you received: 0
Lathe G code Generator
11 years 10 months ago #54218
by BigJohnT
Lathe G code Generator was created 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
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.
Attachment not found
Attachment not found
The Arc Generator
Attachment not found
JT
Please Log in to join the conversation.
11 years 8 months ago #56072
by tkamsker
Replied by tkamsker on topic Lathe G code Generator
looks very promising
nice
keep up the good work
thomas
nice
keep up the good work
thomas
Please Log in to join the conversation.
11 years 8 months ago #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
Rick G
Please Log in to join the conversation.
11 years 8 months ago #56172
by joekline9
Replied by joekline9 on topic Lathe G code Generator
I Like it.
Please Log in to join the conversation.
11 years 8 months ago #56186
by BigJohnT
Replied by BigJohnT on topic Lathe G code Generator
I need to get this finished, been backlogged with computer problems...
JT
JT
Please Log in to join the conversation.
11 years 8 months ago #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. [strike]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. [/strike]
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
Attachment not found
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
Please Log in to join the conversation.
11 years 8 months ago #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
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 to join the conversation.
11 years 7 months ago #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
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 to join the conversation.
11 years 7 months ago #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
JT
Please Log in to join the conversation.
Time to create page: 0.083 seconds
