Lathe OD Turning

More
05 Oct 2010 10:31 #4521 by Rick G
Replied by Rick G on topic Re:OD Turning Subroutine
Hello John,

Has the file www.linuxcnc.org/www.linuxcnc.org/media/kunena/attachment...3ae267fd15d6a555.txt been moved or renamed? :unsure:

Rick G

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

More
05 Oct 2010 12:16 - 05 Oct 2010 12:17 #4523 by hpopols
Replied by hpopols on topic Re:OD Turning Subroutine
Hello Rich,

Your address is bad (<br%20/>?!), you are looking for : www.linuxcnc.org/media/kunena/attachment...3ae267fd15d6a555.txt ?

Xavier
Last edit: 05 Oct 2010 12:17 by hpopols.

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

More
05 Oct 2010 12:22 - 05 Oct 2010 12:24 #4524 by BigJohnT
Replied by BigJohnT on topic Re:OD Turning Subroutine
Hi Rick,

It seems to have vaporized into electron dust.

I'll have to upload it again... my network is off atm so it will be a bit later today before I can upload it again.

John
Last edit: 05 Oct 2010 12:24 by BigJohnT.

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

More
05 Oct 2010 20:10 #4527 by BigJohnT
Replied by BigJohnT on topic Re:OD Turning Subroutine
Rick, here it is again.

John

File Attachment:

File Name: od-210333a...df8c.txt
File Size:1 KB
Attachments:

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

More
06 Oct 2010 10:07 #4532 by Rick G
Replied by Rick G on topic Re:OD Turning Subroutine
Thanks John, hope to try this weekend.

Rick

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

More
12 Dec 2010 12:26 #5980 by Rick G
Replied by Rick G on topic Re:OD Turning Subroutine
Hello John,

Thanks for posting your subs. I was using your od sub the other day and I wondered if it could be modified to use existing part files. Perhaps to run the same part from different stock sizes.

The below assumes a G92 to set work piece.
I made the part file testrun.ngc a sub by adding the 0<testrun> sub and o<testrun> endsub to it.

Below is untested, and a possible starting point, what do you think?

; 100717:10.32 john thornton
; adapt for ngcgui format by:
; 1. making a subroutine with positional parms
; 2. shorten some names for visibility in gui

;; modify to use existing part file
;; final diameter is smallest diameter of smallest section of part

o<od4> sub
#<Material_Dia> = #1 (=2.000 Material Diameter)
#<Final_Dia> = #2 (=1.500 Final Diameter)
#<Depth_Cut> = #3 (=0.010 Depth of Cut)
#<Final_Cut> = #4 (=0.000 Final Cut)
#<SurfaceSpeed> = #5 (=100 Surface Speed)
#<FeedRate> = #6 (=2 Feed Rate)
#<Max_RPM> = #7 (=1500 Max Spindle RPM)
#<Z_EndOfCut> = #8 (=-0.5 End of Cut)
#<Z_StartOfCut> = #9 (=0.100 Start of Cut)
#<RToolNumber> = #10 (=3 Roughing Tool)
#<FToolNumber> = #11 (=3 Finishing Tool)
#<Coolant> = #12 (=8 Flood=8, Off=9)
;;
#<Cut-Depth> = #13 (=1.000 Deepest Cut)
#<Mat_plus> = #14 (=3.000 Material Plus)


T#<RToolNumber> M6
G43 G7 G96 D#<Max_RPM> S#<SurfaceSpeed>
;G7
F#6
M3 M#<Coolant>

;; add depth of deepest cut to Material diam
#14=[#13+#<Material_Dia>]
G0 X#14 Z#<Z_StartOfCut>

o100 while [#14 gt #<Material_Dia>]

O101 if [[#14-#<Depth_Cut>] gt #<Final_Dia>]
#14=[#14-#<Depth_Cut>]
O101 else
#14=#<Material_Dia>
O101 endif

;;reset cord system
G10 L2P1 X#14
;; go to sub program

o<testrun> call

G0 X#14
G0 Z#<Z_StartOfCut>

o100 endwhile

M5 M9
G0 Z#<Z_StartOfCut>
G49

o<od4> endsub


The testrun program could be ....

o<testrun> sub
G0 X2.00
G0 Z0.00
G1 X1.5
G1 Z-.5
G1 X1.75
G1 Z-.75
G1 X2.00 Z-1.25

o<testrun> endsub

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

More
12 Dec 2010 13:11 #5981 by BigJohnT
Replied by BigJohnT on topic Re:OD Turning Subroutine
Hi Rick,

I'm not sure what you doing here exactly... it is early in the morning for me.

If you have Dewey's gui embedded into Axis you can just press any axis key and it enters the current value. So you jog up to a start point then press the axis key and it enters the value.

John

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

More
12 Dec 2010 13:26 #5982 by Rick G
Replied by Rick G on topic Re:OD Turning Subroutine
John,

Sort of a G71 with a gui?

If I have a finish path for a part that I want to run I am setting a start position to work down to it by the entered maximum cut per pass.
I am re setting the machine position with G10 each pass until done. Been up about 4 hours now.

Rick G

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

More
12 Dec 2010 13:55 #5983 by BigJohnT
Replied by BigJohnT on topic Re:OD Turning Subroutine
Been up 3 here lol.

I think I understand... if you have a profile you cut the profile at the start OD then increment it in by "depth" until the last pass is at final depth?

Is G71 a roughing routine or something like that?

John

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

More
12 Dec 2010 14:06 #5984 by Rick G
Replied by Rick G on topic Re:OD Turning Subroutine
Exactly.
Does the same thing as your od sub but a more complex shape is possible that is contained in another sub.
I believe G71 is a roughing routine in other interfaces and I believe someone might be working on it for EMC.

Rick

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

Time to create page: 0.154 seconds
Powered by Kunena Forum