I know I'm 2 yrs late but awesome video. I run an ST 30 and ST 35. I'm new in this field and finding that learning the code and the machines is very challenging. I'm 44 and never went to school for CNC machines or programming. Most days are good except when I have to hunt for job programs or make a new program from using commands from different job cycles. Lol the kid that trains me makes it look easy. When I lived in Michigan I ran a Homag CNC milling machine. It was for cutting sheets of plywood, particle board, melamine or laminated table tops used as furniture. It was a new machine when shipped to our facility and when I finally learned it (about 6 months later) I wanted to become the best (3 years later). However this machine didn't use G&M codes the way Haas does. Point is that when the Homag clicked for me I fell in love with it. I know I will master this machine. You pointed out line for line. The P Q codes always stumps me. 101 and 102 as well. Thank you.
I know it’s been a year but to clarify the P and Q and 101 / 102 question. Any line of code can have a N number to identify it. Some programmers put every single line as a n number, starting from N1 and counting up. Some programmer only use a N number at tool changes or other useful points. It’s just a way to identify a line of code. You can’t use the same number twice in a program and it’s best to keep them in order. These types of canned cycles need to know where the first and last line of code is. If you start the cycle at n500 the P in the canned cycle should be “P500”. Same idea for the Q value.
Titan your badass brother!!!! I was at the G and M code phase when I started watching your videos and they inspired me to just dive into programming ..thank you sir for all that you do to educate people and thank you for your role in keeping manufacturing jobs on our soil!!!!have a blessed day to all reading this is
Great video Tyson! I’m the lathe guy at my work. The feed rate in the body of the canned cycle is used by a G70 if you use one. I’ve found that you don’t actually need to put it in cycle at all. You can put it with your G70 line when you use one.
X (minor) z (threads length) k(thread height in radial minor-major/2 = THR) d depth of cut (K/ square root of passes wanting to take= Depth) F (feed rate which is equal to pitch so 1/TPI) rpm is not apart of the g76 line of code but is suggested to got 125-150IPM x TPI
This is pretty much exactly what they're teaching us at my Tech School. Really the only difference is how you're going home. My instructors teach " G28 U0. W0.; ". However, I really like splitting it up to have U & W on separate lines w/ U coming first to avoid ramming the turret into the tail-stock/B-axis spindle. :)
Thanks titan for teaching me g code it really helps me I decided to just start learning it so if my friends at school need help when setting up a machine I can help them or the teacher can help them.
As as safety precaution and general rule not to crash a lathe, we always program with a G90 on the work offset line G90 G54, G90 G55, etc. Why did you not use a G90 in the work offset line to make sure you weren't accidently in G91 just in case you forgot to run the program visually in graphics? Love the videos fellas
@@alexroman197 Thank you for the comment and for correcting me. I have a great deal of more time on mills compared to lathes. In reviewing all of my referencing notes, you are correct. I'm very much out of practice and only run a Mazak laser currently. I miss programming everyday. Thank you though.
Finally, LATHE VIDS! Thanks for the video Tyson. One thing I learnt was I am glad I work on Mazaks! Don't get me wrong I started out on G-code with no canned cycles! But working with Mazaks for the last 10 years, I have been spoilt. lol.
On a sinumerik , you automatically have canned cycles , but you can make custom cycles with R variables (on a lathe i know , it had 169 or 199 R variables) . You can almost write a "C+" program for the cycle , let's say a rigid keyway broaching .
I tremble a bit at the thought that soon A.I. may actually do this bit of U.I. programming. The possibilities are scary but awesome. The idea of A.I. supplying the framework (source) coding is just wow. Giving the machine an "eye" could be a huge mistake I guess.
You should show people the different types of canned cycles there's type 1 and type 2 canned cycles(I'm sure you know) also people if you touch off to the face of the part and wanting to take off 1" off make sure and minus 1" on your work offset if not you'll just be cutting air or program G00 Z0.1 G01 Z-1.
Great videos Tyson. I am currently working on Mills but my boss wants me to learn Lathe and be more familiar with it. Where can I take beginners lathe classes online? I just would like to know more about tips and tricks of it. I understand the controls and how to operate the machine but having trouble understanding canned cycles. Can you refer me to where I can take online classes please?
Hello, I have some confusion about turning cycle when Tyson explained about turning down 1.5 to 1 inch dia.He left .01 in U for finishing.In N106 line why he went to X1.0 .Just confused if it should be X 1.01 or not?
if i would run a shaft with a follow rest that opens and closes with an m code would i be able to use a haas canned cycle? we have romis at my shop that we have to write every line by hand. Looking at buying haas. would the m code also be repeated using the canned cycle? Thanks for your time.
if i understand it correctly, the paths of the canned cycles that are used in the roughing passes, is really meant to describe the paths that an eventual finish pass is supposed to go. what i don't understand in this description is the m30 after every part, since m30 sends you home in the program. do you toggle your way back to the start of the next part every time, or how does it work? or do you copy the part into a new program when needed?
M30 does not send you home. M30 ends the program. The reason he put M30 after every operation is because it's an example program which he copies and pastes from. So if he only needs the roughing portion, he copies that to a new program and runs it. M30 is already there so the program will stop when it's done.
Tyson, your canned cycles do not have to go all in one direction. If you added a z value to your first line of code inside the cycle, you are telling the control you are doing a type 2 cycle and not a type one. Haas has a video about type 1 and type two g71 cycles.
Hi Tyson. On your i/d program I see you are starting at X1.5, doesn’t that have to be less than your 1st X diameter in the cycle. Just asking i’m Quite new to this.
I think they meant the trick is to keep it as an auxiliary program with all the safety code and comments you need and just change a few numbers to get to what you want.
Finally More lathe videos please !! Thanks for this !!!
I know I'm 2 yrs late but awesome video. I run an ST 30 and ST 35. I'm new in this field and finding that learning the code and the machines is very challenging. I'm 44 and never went to school for CNC machines or programming. Most days are good except when I have to hunt for job programs or make a new program from using commands from different job cycles. Lol the kid that trains me makes it look easy. When I lived in Michigan I ran a Homag CNC milling machine. It was for cutting sheets of plywood, particle board, melamine or laminated table tops used as furniture. It was a new machine when shipped to our facility and when I finally learned it (about 6 months later) I wanted to become the best (3 years later). However this machine didn't use G&M codes the way Haas does. Point is that when the Homag clicked for me I fell in love with it. I know I will master this machine. You pointed out line for line. The P Q codes always stumps me. 101 and 102 as well. Thank you.
I know it’s been a year but to clarify the P and Q and 101 / 102 question.
Any line of code can have a N number to identify it. Some programmers put every single line as a n number, starting from N1 and counting up. Some programmer only use a N number at tool changes or other useful points. It’s just a way to identify a line of code. You can’t use the same number twice in a program and it’s best to keep them in order. These types of canned cycles need to know where the first and last line of code is. If you start the cycle at n500 the P in the canned cycle should be “P500”. Same idea for the Q value.
Titan your badass brother!!!! I was at the G and M code phase when I started watching your videos and they inspired me to just dive into programming ..thank you sir for all that you do to educate people and thank you for your role in keeping manufacturing jobs on our soil!!!!have a blessed day to all reading this is
Great video Tyson! I’m the lathe guy at my work. The feed rate in the body of the canned cycle is used by a G70 if you use one. I’ve found that you don’t actually need to put it in cycle at all. You can put it with your G70 line when you use one.
X (minor) z (threads length) k(thread height in radial minor-major/2 = THR) d depth of cut (K/ square root of passes wanting to take= Depth) F (feed rate which is equal to pitch so 1/TPI) rpm is not apart of the g76 line of code but is suggested to got 125-150IPM x TPI
Threading canned cycles are a little more tricky. That would make a great video!
Awesome video tyson, very clear and very informative.
Pops will be proud... BOOM
I thank you for this clarification
Great video, small tip, put your mo8 on your tool/offset line to ensure the coolant is flowing fully when the tool reaches the part
This is pretty much exactly what they're teaching us at my Tech School. Really the only difference is how you're going home. My instructors teach " G28 U0. W0.; ". However, I really like splitting it up to have U & W on separate lines w/ U coming first to avoid ramming the turret into the tail-stock/B-axis spindle. :)
Thanks titan for teaching me g code it really helps me I decided to just start learning it so if my friends at school need help when setting up a machine I can help them or the teacher can help them.
I wish you guys did the rocket and taught G & M Code for the lathes, like you did for the Mill and 1M part. Good video, thanks.
There is a ton of videos for the Rocket.
Will produce more G & M Code videos. Search G & M Code on my channel for lots of videos
Love canned cycles...we used them all the time at my old shop
Extremely Helpful, Tyson, Thanks for doing this video.
You're really great at explaining things thoroughly. Keep it up!
As as safety precaution and general rule not to crash a lathe, we always program with a G90 on the work offset line G90 G54, G90 G55, etc. Why did you not use a G90 in the work offset line to make sure you weren't accidently in G91 just in case you forgot to run the program visually in graphics? Love the videos fellas
I could be mistaken but the G90 code is mainly for the Mills.
@@alexroman197 Thank you for the comment and for correcting me. I have a great deal of more time on mills compared to lathes. In reviewing all of my referencing notes, you are correct. I'm very much out of practice and only run a Mazak laser currently. I miss programming everyday. Thank you though.
@@justinepperson4905 to add on that X and Y for absolute, U and W for incremental. You can see he is using U and W with the homing G28 code.
G90 is the default on lathes. No one ever uses G91 in lathes. G91 is only really used with mills to send the spindle home.
Awesome video Tyson!! would love to see your process for cutting jaws in lathe. How you get the id and od diameters to start programming.
Finally, LATHE VIDS! Thanks for the video Tyson.
One thing I learnt was I am glad I work on Mazaks! Don't get me wrong I started out on G-code with no canned cycles! But working with Mazaks for the last 10 years, I have been spoilt. lol.
On a sinumerik , you automatically have canned cycles , but you can make custom cycles with R variables (on a lathe i know , it had 169 or 199 R variables) . You can almost write a "C+" program for the cycle , let's say a rigid keyway broaching .
I’ve also found that using a type 2 cycle helps with notching on roughing inserts
dang ! thanks for laying it down at the control!
If your so worried about saveing time put your z&x and turn on violent on all on the same line
Coolant not violent , dam phone
I never understood how to use the G54 in the lathe. My G54 is allways at home coordinates. More lathe videos would be amazing.
Nice. I need more lathe, I am 100% mill hand. This is awesome. There is an ST35Y at work no one knows anything about. I want to get it going.
G72 is canned in the z and 71 is x. Learned all this about 12 years ago
love this type of knowledge Tyson!
4 fingers is code for 3 lines... Got it.
Thanks for the tips. I'm learning how to use a st20y so it's really helpful.
Great video , thanks
I tremble a bit at the thought that soon A.I. may actually do this bit of U.I. programming. The possibilities are scary but awesome. The idea of A.I. supplying the framework (source) coding is just wow. Giving the machine an "eye" could be a huge mistake I guess.
Keep it up! Awesome presentation!
Been using canned cycles for years.
Tyson's of cnc BOOM! I like that!😂
You don't have to run a finish pass in the same program block you can put G70 in separate block
Thanx
You should show people the different types of canned cycles there's type 1 and type 2 canned cycles(I'm sure you know) also people if you touch off to the face of the part and wanting to take off 1" off make sure and minus 1" on your work offset if not you'll just be cutting air or program G00 Z0.1 G01 Z-1.
I'm torn between outputting cam in canned cycle vs geometry. They both have their pros and cons and I can never decide which is best.
Very educated video thanks a lot!
Great videos Tyson. I am currently working on Mills but my boss wants me to learn Lathe and be more familiar with it. Where can I take beginners lathe classes online? I just would like to know more about tips and tricks of it. I understand the controls and how to operate the machine but having trouble understanding canned cycles. Can you refer me to where I can take online classes please?
Can you make a program that it shows how to cut a collet with 2 step and pie jaws from the beginning thanks
Could you do a beginner lathe g-code
Nice video
Can you make a video about vqc on the lathe as well?
Hello,
I have some confusion about turning cycle when Tyson explained about turning down 1.5 to 1 inch dia.He left .01 in U for finishing.In N106 line why he went to X1.0 .Just confused if it should be X 1.01 or not?
if i would run a shaft with a follow rest that opens and closes with an m code would i be able to use a haas canned cycle? we have romis at my shop that we have to write every line by hand. Looking at buying haas. would the m code also be repeated using the canned cycle? Thanks for your time.
Does anyone know how to copy from 'MDI' and paste to program? Is it possible?
if i understand it correctly, the paths of the canned cycles that are used in the roughing passes, is really meant to describe the paths that an eventual finish pass is supposed to go. what i don't understand in this description is the m30 after every part, since m30 sends you home in the program. do you toggle your way back to the start of the next part every time, or how does it work? or do you copy the part into a new program when needed?
M30 does not send you home. M30 ends the program.
The reason he put M30 after every operation is because it's an example program which he copies and pastes from. So if he only needs the roughing portion, he copies that to a new program and runs it. M30 is already there so the program will stop when it's done.
So you don't have to put a retract value in the can cycle line
Any idea how to set the tool height offset with a small piece of paper
Can a G96 go in a G71 cycle?
❤
Never got to learn the cnc lathe in school beyond theory... so much of what you said was lost on me...
You say people this?
Tyson, your canned cycles do not have to go all in one direction. If you added a z value to your first line of code inside the cycle, you are telling the control you are doing a type 2 cycle and not a type one. Haas has a video about type 1 and type two g71 cycles.
@Yeah Right I agree not every control can take a type 2 cycle. But he's on a haas, not another control.
Hi Tyson.
On your i/d program I see you are starting at X1.5, doesn’t that have to be less than your 1st X diameter in the cycle.
Just asking i’m Quite new to this.
No it was a o/d program
Hi. Did you realy nead G50 when you use G96 (G96 is fix S speed)? When you use G95 for VC you need G50 to limit the max. speed.
G96 is Constant surface speed, G97 is Constant RPM. You need Rpm Cap if you use a G96 S... M3 code.
G96 is not fixed spindle speed. G97 is fixed spindle speed.
What is the point in using U and W vs X and Z on a G 28 line?
please send fanuc program of hex making on cnc 2 axis lathe machine
Can’t be done if you don’t have a c axis with live tooling
G28 U0. And G28 W0. Is bad for cicle time. Is better G53
Hi
V9comfrom porgram
Boom and then just kiss it
That is not a trick it’s a canned cycle ffs
I think they meant the trick is to keep it as an auxiliary program with all the safety code and comments you need and just change a few numbers to get to what you want.