Wanting Gcode for an arc lathe
31 Aug 2016 22:48 #79803
by Clive S
Wanting Gcode for an arc lathe was created by Clive S
I don't have any cam for a lathe but could anybody help with some gcode to produce an arc.
the chord length is 150mm and the radius is 1407mm which is about 2mm at the centre of the chord. I need to make a small crown on a 150mm wide pulley.
the chord length is 150mm and the radius is 1407mm which is about 2mm at the centre of the chord. I need to make a small crown on a 150mm wide pulley.
Please Log in or Create an account to join the conversation.
31 Aug 2016 23:12 - 31 Aug 2016 23:13 #79804
by BigJohnT
Replied by BigJohnT on topic Wanting Gcode for an arc lathe
gnipsel.com/files/linuxcnc/gcode/
The l is lathe and the m is mill ie different planes and XZ vs XY.
JT
The l is lathe and the m is mill ie different planes and XZ vs XY.
JT
Last edit: 31 Aug 2016 23:13 by BigJohnT.
Please Log in or Create an account to join the conversation.
01 Sep 2016 05:23 - 01 Sep 2016 05:24 #79810
by emcPT
Replied by emcPT on topic Wanting Gcode for an arc lathe
G21 (MM UNITS)
G18 (XZ PLANE)
G95 (UNITS PER REVOLUTION)
G7 (DIAMETER MODE)
T101 M6 G43
G96 D2500 S400 M4
G0 X78.000 Z2
G0 X68.000
G1 Z0.75
G3 X74.718 Z-7.359 R4.750
G1 X71.935 Z-8.750
....
Last edit: 01 Sep 2016 05:24 by emcPT.
Please Log in or Create an account to join the conversation.
01 Sep 2016 08:55 #79816
by Clive S
Replied by Clive S on topic Wanting Gcode for an arc lathe
Thanks for the quick reply how do you use the arc generator with the axis displaygnipsel.com/files/linuxcnc/gcode/
The l is lathe and the m is mill ie different planes and XZ vs XY.
JT
Please Log in or Create an account to join the conversation.
01 Sep 2016 13:32 - 01 Sep 2016 13:41 #79833
by BigJohnT
Replied by BigJohnT on topic Wanting Gcode for an arc lathe
Looks like I needed to zip the files first.
gnipsel.com/files/linuxcnc/gcode/arcgenl18.py.zip
open the file in Axis and a Send to Axis button appears.
Edit: I probably need to add a G18 to the lathe one...
JT
gnipsel.com/files/linuxcnc/gcode/arcgenl18.py.zip
open the file in Axis and a Send to Axis button appears.
Edit: I probably need to add a G18 to the lathe one...
JT
Last edit: 01 Sep 2016 13:41 by BigJohnT.
Please Log in or Create an account to join the conversation.
01 Sep 2016 18:18 #79860
by Clive S
I have played with it in Axis but not sure how to use it. My goal is to create a crown on a roller 150mm wide I calculated that the chord length would be (same as roller) 150mm and the diam. of he circle to get 2mm crown would be 1407mm.
I am not sure how to plug the numbers in starting at Z0
X centre Arc 2
Z centre Arc -75
dia. of Arc 1407
Start angle 90
end angle 270
Direction CW
Where am I going wrong?
Could you please give me a hint. Thanks
Replied by Clive S on topic Wanting Gcode for an arc lathe
open the file in Axis and a Send to Axis button appears.
Edit: I probably need to add a G18 to the lathe one...
JT
I have played with it in Axis but not sure how to use it. My goal is to create a crown on a roller 150mm wide I calculated that the chord length would be (same as roller) 150mm and the diam. of he circle to get 2mm crown would be 1407mm.
I am not sure how to plug the numbers in starting at Z0
X centre Arc 2
Z centre Arc -75
dia. of Arc 1407
Start angle 90
end angle 270
Direction CW
Where am I going wrong?
Could you please give me a hint. Thanks
Please Log in or Create an account to join the conversation.
01 Sep 2016 20:17 - 01 Sep 2016 20:18 #79875
by BigJohnT
Your math is wrong, you have calculated the approximate radius of the arc. Next the degrees are not 180 but they are 6.11 degrees included so the correct entries would be
2
-75
2814.5
3.06
356.94
CW
I see another problem with the program you can't select units... so you can't run inch on machines set up for mm and the same on machines set up for mm you can't run inch.
Edit: I'm not a math wiz, I cheated and used SolidWorks to lay it out and get the angles...
JT
Replied by BigJohnT on topic Wanting Gcode for an arc lathe
open the file in Axis and a Send to Axis button appears.
Edit: I probably need to add a G18 to the lathe one...
JT
I have played with it in Axis but not sure how to use it. My goal is to create a crown on a roller 150mm wide I calculated that the chord length would be (same as roller) 150mm and the diam. of he circle to get 2mm crown would be 1407mm.
I am not sure how to plug the numbers in starting at Z0
X centre Arc 2
Z centre Arc -75
dia. of Arc 1407
Start angle 90
end angle 270
Direction CW
Where am I going wrong?
Could you please give me a hint. Thanks
Your math is wrong, you have calculated the approximate radius of the arc. Next the degrees are not 180 but they are 6.11 degrees included so the correct entries would be
2
-75
2814.5
3.06
356.94
CW
I see another problem with the program you can't select units... so you can't run inch on machines set up for mm and the same on machines set up for mm you can't run inch.
Edit: I'm not a math wiz, I cheated and used SolidWorks to lay it out and get the angles...
JT
Last edit: 01 Sep 2016 20:18 by BigJohnT.
Please Log in or Create an account to join the conversation.
01 Sep 2016 21:05 - 01 Sep 2016 21:16 #79879
by BigJohnT
Replied by BigJohnT on topic Wanting Gcode for an arc lathe
I updated the wizard to include units and fixed a couple of things.
If someone is going to use this I need to port the Tk over to GTK3...
JT
If someone is going to use this I need to port the Tk over to GTK3...
JT
Last edit: 01 Sep 2016 21:16 by BigJohnT.
Please Log in or Create an account to join the conversation.
01 Sep 2016 21:17 #79881
by Clive S
Replied by Clive S on topic Wanting Gcode for an arc lathe
JT
You have given me a light bulb moment re the start and end angle I was giving it the full 180 degrees. Instead of the angles from the centre of the circle to each end of the chord. I did that in autocad so I cheated as well
I had a typo above I calculated the radius as 1407. I said diam in stead of radius.
Not sure what you mean with the units. If I have G21 set I enter the units in MM I also have G18 set.
I will test this out in the morning
I do appreciate your help. Thanks
ps can this also be done without the ( I) peram using X Z R
You have given me a light bulb moment re the start and end angle I was giving it the full 180 degrees. Instead of the angles from the centre of the circle to each end of the chord. I did that in autocad so I cheated as well
I had a typo above I calculated the radius as 1407. I said diam in stead of radius.
Not sure what you mean with the units. If I have G21 set I enter the units in MM I also have G18 set.
I will test this out in the morning
I do appreciate your help. Thanks
ps can this also be done without the ( I) peram using X Z R
Please Log in or Create an account to join the conversation.
02 Sep 2016 08:41 #79894
by Clive S
Replied by Clive S on topic Wanting Gcode for an arc lathe
OK I have tried again with:-
2
-75
2814.5
3.06
356.94
CW
It is giving me X values of about 48 which can't be right.
After reading your last post#79879 I re downloaded it but I don't see any changes. Is the wizard only set up for inches as I am using metric.
2
-75
2814.5
3.06
356.94
CW
It is giving me X values of about 48 which can't be right.
After reading your last post#79879 I re downloaded it but I don't see any changes. Is the wizard only set up for inches as I am using metric.
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds