CNC programming a Lathe using driven tooling | G-Code Tutor | Skillshare

Playback Speed

  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x

CNC programming a Lathe using driven tooling

teacher avatar G-Code Tutor, Engineering Artist

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

8 Lessons (44m)
    • 1. Intro

    • 2. Subspindle

    • 3. Cross Axis Drilling

    • 4. Side tapping cycle

    • 5. Face peck drilling using G83

    • 6. Face Tapping using G84

    • 7. Z Axis milling using driven tooling

    • 8. Y Axis milling

  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels
  • Beg/Int level
  • Int/Adv level

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.





About This Class

Programming CNC Lathes and machining centres is a critical skill needed to work in a machine shop.

This course will teach you all the operations needed to machine a part on a CNC lathe. 
Whether you are new to the world of CNC turning or need to brush up on your skills this is the course for you.
I cover every live tooling operation on a CNC Lathe including working with sub-spindles, tapping, milling and drilling using the Y-axis and many, many more.
Learn to program everything from a multi-spindle, multi-turret 8 Axis machining centre with driven tooling!
This course includes:

  • Cross Axis drilling
  • Cross Axis tapping
  • Using driven tooling to mill on the Y and Z Axis
  • Using driven tooling to drill and tap on the Y and Z Axis
  • Using the Sub-spindle

And much, much more!

The techniques and practices used in this course will set you up for a lifelong career as a CNC machinist.

Meet Your Teacher

Teacher Profile Image

G-Code Tutor

Engineering Artist


Hello, I'm Marc.

I have studied engineering and portrait art for over 26 years. A strange mixture indeed.

See full profile

Related Skills

Technology CNC Data Science

Class Ratings

Expectations Met?
  • Exceeded!
  • Yes
  • Somewhat
  • Not really
Reviews Archive

In October 2018, we updated our review system to improve the way we collect feedback. Below are the reviews written before that update.

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.


1. Intro: Hi, My name is Mark. Welcome to Geico Cheese. This course will teach you how to program CNC lathes and CNC machining centres using G coat . The CNC lathes she find in a modern machine shop have a lot more than just two axes. Most have more than one spindle live tooling, and some have more than one's hurt. Explain how to program these machines, as well as a to access slave, go into detail over how would live told him works and how we use it to create sports and holes in different parts of the machine, including 1,000,000 flats using the Y axis. This course will take you for every operation you need to know from basic boring on drilling in the face of the material to complex life tooling. Why access 1,000,000 onset axes off center tapping. I go over each command in each cycle, explaining what each part does there also to play handouts so you can keep notes on your phone or in your toolbox as a reference for when you're programming. We look at the C axis, which is the rotation of the Chuck and also a Y axis, as well as our X and said axes discuss different operations. Such a rigid tapping, not only in the main sense line of the parts, will also cross holes and tapping along the face of a part in a bolt hole circle. I discussed milling using 50 set access on the Y axis. I also include many Screw Fred reference charts. Cover metric BSF B S W B SC Metric Find. A metric course are designed his course for C and C machine apprentices, the L Y enthusiasts, machine operators that wish to learn to program the machines on also experienced CNC guys that wish to brush up on a few techniques they may not have used for a while. His course comes every operation that you need to know. Setting up the head of correctly boring a pre drilled hole, tapping using Ruffin cycles, using finishing cycles, parting off machining, using the sub spindle screw cutting, using two separate techniques, drilling both whole circles, cross axes, drilling y axes 1,000,000 said axes, Mylan are going to great detail on how each cycle works. Give me the confidence to program the machine. On completion of this course, you'll be well on your way. Its bid and professional G code programmer on a CNC lave or a CNC machining centre in a factory environment. I have 26 years experience working as a CNC machinist. Now I'm teaching you everything I know about programming G coat. 2. Subspindle: this lesson will discuss substantive operations and how it differs from working on the main spindle going to be finished training the same parts that we machines in the main spindle. On a different lesson this way we can see the differences between sub spindles and the main spin does This time I'm using in 22 is our search number. I would explain about that when we get so little number in a minute. As for not praises notes, I put sub spindle finish time. We are using a different data position this time because I date him is the other side of the machine. So instead of changing RG 54 each time you wish to use the sub spindle, we can simply use a different data. G 55 G 56 G 57 is also available for datum chefs if we need so in the machine controls, I said G 55 is the front face of the part in our sub spindle t 40 means I cut a compensation is off on the tyrants I have loaded. Both are finishing tools on position 21 at the front of the turret facing the main spindle on one on the reverse of side of the target facing the sub spindle. So we have to give them different offset numbers because they're different talks. One way to define an offset number that's easy to remember is to 12 to our tour number. This is because there's normally 12 stations in a target, so it's a tool to plus 12. Gives us 14 some using offset 14 for offset number. We will be using constant surface cutting speed again on this component, so G 50 employees are spindle clamp to stop the spindle reaching speeds of above 3000 rpm. G 96 turns on the constant surface, cutting speed of a surface speed of 300 meters per minutes that's defined by the S fatty and M to a free that's RM code to turn on the sub spindle on the main spindle. It's normally m o free that sub spindle we had to in front of it. The same code can change depends on what machine you are running, so it's best to check your user's manual for the correct time code, just in case this one is not correct. Now bring it all into position using G O that rapid travel commands bring it into X 70 and zed minus five. Now that said, values on a sub spindle go the opposite way, so a plus number will be cutting into the job on a minus. Number would be to the left hand of the datum away from the component. So it said, minus five millimeters brings us five millimeters off the face of a job and my rate turns our coolant on. On the second line, I bring that whole into, said zero, which start date a musician on the face of the components. I used to Syria zero in this line, but it's not needed. It's still active from the line above. Now I face down the front of the components. It's her ex and minus 0.2 millimeters. This is to remove the pit on the front of the components. I use a feed rate of 0.5 a nice, slow, steady feed rate in cases, too much material on the front slow job, so we can easily remove it without overloading that all after are facing operation a rapid to to all the way to a safe distance away from the job. G 42 turns on our tour radius cutter compensation, the same G code we used for the main spindle. Now we'll bring our tool down to the start of the shot. Fred Fronts of the job x 19 millimeters. This is because we're turning half a millimeter shot for for a reference for the calculations on Performance Shop for please check the boring operation lesson. I feed into a position of zero our data position using a geo one Phedre Command now turning 0.5 millimeter shell affair. I'm not using a roughing or finishing cycle for this, but I am using the same dimensions that we used on our subroutine on the roof and cycle. So I moved to cut 20 millimeters into components to cut our first diameter notes. That was said, move. It's a plus dimension, not in minus dimension. Continue machining the profile up until the end of a 45 degree shout the machine, this radius or simply moved, is it to the end point of the radius and then followed with comma are 5.0. I faced off the large major dime until a component on board it'll two millimeters above the surface of the material. Now our rights and no Vettel has finished cutting the components. We can now move it to a safe Where in distance? Five millimeters off the face of components. So we use it minus five. Switching to our machine takes him using G 50 free. This doesn't change in the main spindle. This is still the machines, right? No matter which took were working on. So using G 50 free, I move our talk to little change position on Also, turn off the killings using M I nine g 40 turns off cutter compensation. Now to stop the substantive rotating, we use Emma 205 instead of m 05 18 97 person machine back into revs per minute mode. And finally we had an optional stop and they might want in this lesson we discussed the differences between the main spindle and the sub spindle on the different decodes it M coats that is used when we use the sub spindle, for example M to o free to turn the spindle on rather than m o free on the main spindle. And also I said dimensions are plus not minus 3. Cross Axis Drilling: life calling is used just as much of modern day slaves and machining senses as fixed turn in, such as right hand knife tools and part enoughto. So let's have a look. Are using live tool to turn across whole on life. We're going to assume the part is already censored drills, and in this case, we've made a flat on either side. So we're going to be drilling a fruit of flat, assuming that part has already been censored. Drilled the operations do Ascencio is exactly the same as this. You just don't go deep. I'm going to run through quickly the first few lines, the program, because it's exactly the same as all the rest of lessons. The end number is a such number. In this case, we used in in 10 followed by our praises night. So we know, which told me using 2 54 tells machine which data were using. This is presets in the machine. When we set the drop up, G 40 turns off cutting compensation. It's always handy to have this. It starts of each tool, just in case it's still live from a previous operation, G 21 puts the machine into metric modes. It is not necessary to have this start of each operation, as we don't tend to switch between Imperial and metric for out the job. But in this case, I've put it in the beginning for reference against Put our live talking holder in position 10 on the Tire it. So in this case, we used t 10 to define our target position. Am I going to use offset? 10 to do it'll change Used on my six. Jean 98 tells a machine that we're going to drill using the X axis rather than the usual said access when we draw on a face, usually when tannin, we would use a feed rates per revolution off the part. But in this case, because we're gonna live touring operation, we wish to use the feed rate off millimeters per minute so the gene 94 activates the millimeters per minutes command. We need to tell the machine that we are cutting on a different plane. The G 19 tells the machine we're cutting in the white said plane, which is a plane were using to George. Across whole, there's different ways to tell the machine what speeds to set the life talking at In the last machining centre right programs. We used a P number in this case on defining the spindle speed off the live told him by using P 6 50 This is revolutions permanent regarding some of these em coz I'll be using it may differ from the machine you're on. You will need to check your operator's manual to see what the encodes are for each command after the standard M codes of M 0100 etcetera. Each machine tends to use different M codes for different operations, so it's best to refer to Operator's manual for the exact Temko to use the M 13 I am using to turn on a live tooling in the clockwise motion. We're using M 10 to tell the machine to turn off the spindle break. The spindle break shouldn't be on anyway, but it's good practice to turn it off just in case. By using the G 00 rapid command, we move our drill to the start position of the whole using X and sets dimensions. The C axis is the right tree, access off our spindle, and it's measured in degrees, so see 90 moves to spindle 90 degrees from R zero points the M 11 puts on the spindle break . This is important when milling or drilling on a lay for machining center. As we're cutting on the rotary axes that will vibrate and causing dimensional inaccuracies and chatter on our surface. Finish without G 00 still active a rapid down the drill, so it's close. It's the part, so we're ready to start drilling the T 87 G code. This is our peck in cycle from across Axis drilling. It is also known as a side access drilling cycle. Our X dimension gives us a death off the ball. We're going down to 19.5 millimeters deep, which takes it half a millimeter past the center line of the components. Our value is the retract funny between each pick. The P value in this case milliseconds off dwell time. So as the drill reaches the bottom of the hole, it will dwell for one second. The Q value in a pecking cycle. Block is the death of cuts between each pec and finally, a feed rate of 30 millimeters per minute. Remember, we're not in rpm mode in a moment for feed rates. We are in meters per minute as we specified at the beginning of program with G 94 commands . As we told you in cycles, G 80 cancels any active cycles here we wish to unlock the spindle. So using an M 10 command, we can unlock the spindle break so we can now rotate it freely, using the C axis movement turning on a rapid travel command. Jesus, right. I can now rotate the spindle to 270 degrees, so it's in line for the other side of the component, so we control exactly the same hole from the opposite side. But before we start any drilling, we need to look to swindle again using the M 11 command. This activates the spindle break This block a coat is exactly the same. Is the last time we issued G 87. Command was simply copy in the same bitter code, so we can do the same hole from the opposite side so the holes would line up in the center of the job. Well, the whole was 40 millimeters deep. Julian. It from both sides puts a lot less stress on the machine and at all. Now we turn off our driving cycle by using the GI 80 command G 28 commands. It's a different way to zero the axes. In this case I'm zeroing the Y axis as V is an auxiliary movement for the Y axis. Not that refused. Why? Access off simply added this as a demonstration of what G 28 command would be useful here. Have told machines used a machine datum by activating G 50 free the ex and said Coordinates is our home position for where we have a tool change. Now we wish to turn off any coolant, so M 09 shuts down all the different coolant that is on the machine before we have used. And five stop the main spindle from irritating. It also stops any life calling from rotating. So here we use an M I five to stop the drill and we finish off as usual with the optional stop command of M 01 In this lesson, I introduced a new G coats of G 17 and G 87 and also G 28 now demonstrated using the drilling cycle from across straight across the material into a center line, traveling on the face 4. Side tapping cycle: this lesson will cover the side tapping cycle G 88 also known as cross axes tapping. This is where we tap into the job along with the X axis, and 11 is our search number. And then we had operators notes saying which taps were using and what procedure we are using it for. Do you? 54 sets of work shift datum and tells machine which one we are using G 40. It's a tall nose radius cutter. Compensation on this turns it off just in case it's active for many other lines or any other blocks of program. And G 21 tells a machine we could be using metric measuring system. We define our two number by T 11 because I live tooling for a tap, its in tall 11 position on the turret. We're using offset 11 to make things easy to remember. So we're using to 11 Offset 11 on m 06 Does it'll change so we can rotate the target to bring in the live tolling into position de 19 selects our boy said plane. This is the machine knows which direction we can cut him. We can also use G 18 for a set explain or G 17 for our X Y plane. M 10 releases us. Spend the break so we can move to spindle freely using the C Axis movement running this program. Normally from start to finish, we would assume that the spindle break is already off. I've added this line in case we need to stop the program during the tapping procedure, and we can start again, and it would remove the spindle break. If it's already on. It's well until a cycle time, as if the machine reads in M 10 and it's already active. It would just skip through. Now we can do a free axes moved to bring our six millimeter tap into position. Not only did I bring this hap into the X and Zed's positions that we need also rotated the spindle to 90 degrees off. Zero point say, Let's were in line with a pre job hole, reapply or spend a break with them. 11. This keeps the machine in the spindle rigid, so there's no vibration during this happened procedure. Well, in a rapid commanders still active bring our tap down closer to the beginning of the whole W. Wish to tap. Now it's time to activate across access tapping cycle. Let's have a look alikes in a little bit more detail. I've added this light a resource section of this lesson, so you can even print it out or store it on your phone for future reference. G 88 activates our side tapping cycle as a tap reaches the bottom of the hole. Spindle will reverse and the feed rates were reversed on the tap would come back out. Both the feed rate on the revolutions of the live Tallinn are look together so it actually produces a fret on doesn't break the top. The top is already in position on the dead access. We can put it in the hair again. No quotes. The position of us the axis are spend orientation access. Our X axis defines how deep we wish to tap our value or retract value. It's a position that the tour will return to once it's finished tapping. We can added the well very on the bottom of the taps hole. This figure is in milliseconds, so it's 200 milliseconds. I remember less part just removing the desk in points. Yes, value is our spindle speed. We don't wish to go too fast since we're tapping on the feed rate of one millimeter Could revolution is extremely quick. Now we set our feed rate, which is the same as a picture of friends. So in other words, we're using an M six tap with one millimeter pitch. So we set this to one millimeter. Once we finished our tappin cycle, use G 80 to cancel it. Now let's finish. That's happened Procedure. I take off the spindle break so we can freely. Now we've finished our staff from procedure. I take off the spindle break using M 10 so we can freely move to Spindle provided this line in the program so I can explain what the G 28 code is. The G 28 g code zero z axis using the auxiliary name for the axis. So here I've used V zero, which is our auxiliary access name. For why, as with the rest of the code, we have discussed RG 50 free changed data position to the machine Datum. Now we can move the target back Total change position safely. I am knowing commands stops Cubans now We started spindle on issue an M 01 option Stop command. And that brings us stand at this lesson. We discussed the D 88 cross whole tapping cycle on also the G 28 which we can use to zero our axes after we've machines, make sure everything is back on zero, and that brings us to the end of this lesson. We discussed the G 88 inside tapping cycle, and we also discussed using G 28 0 the access to the reference points. 5. Face peck drilling using G83: let us take a look at drilling on the face look components using live tolling loaded upon his head. Access I'm using in 10 as a search number, followed by our operators. Notes. 54 sets of work ships. Tatum, which is preset in the machine to the front of the component G 40 turns off any cuts. Compensation that may be active on G 21 tells a machine for cutting with metric systems. T 10. 10 defunds are tall and offset on m 06 That will change. Jean 94. Put the machine into revolutions per minutes mode where P 500 sets of revolutions per minute off the life tolling I. M F 18 turns on the live tool in a clockwise direction. M 10 releases are spindle break so a spindle can rotate freely. Now I could bring a tool down to position. It's 15 millimeters diameter cost a center line of the two holes, so we bring it down to X 15 with five millimeter clearance. From the face of part, I used G 90 toe orientate, our spindle, where a wish to hold to be M 11 lakhs has been doing place so it doesn't vibrate where we're drilling the holes. I'm going to be using a peck cycle for our drilling operation because the hole is that free times deep as a diamond to the drill. This defines it as a deep hole for a face pecking drill cycle. The G Cody's G 80 free. Let's look a latte in a bit more depth, so I faced pick Training cycle is G 80 free. Is it death declared on this line? It's a total depth off whole. Our value is only tracks points. This is how much to drill will pull back between each pick as a drill reaches the bottom of the hole. It's nice, Toe added. Well, this 12 time is in milliseconds, so 1000 is a one second dwell time. This cleans up the face and makes the whole death more accurate. Our Q is our debt of peck. This is how deeply feeding between each pec and finally we add a feed rate. Once our pecking cycle was finished, cancel it. Using a G 80 gkp, we used to cancel all cycles. Now we can unlock the spindle by removing the spindle break with M 10. Now That's the spindle convert. Take freely. Using the rapid move, I made two spindle to 270 degrees around zero point. Before we drill a second hole, we need to look to spent in place to stop any vibrations. For that, we use M 11 Drew last second hole. Use exactly the same line of code as we used our first G 80 free line with atrial retracted from the material after it's finished drilling. You can then cancel, are joining circle by using GI 80. Now change our data to the machine datum usin G 50 free and send our cutter home to the tool change position. M 09 turns off documents. M 15 stops are live calling from rotating. It's like a May 5 for life tooling and M 01 is are optional. Stop in this lesson. We cover the G 80 free face drilling Peck cycle and also the different M coats and G codes that control life tooling 6. Face Tapping using G84: in this lesson. I'm going to teach how to tap a whole at its off center from the center line off the component on a lake or a machining center going to be using told seven. So we use a search number off seven and will be used in M six. Tap Onda one mil pitch, so I'll pray to snake. This place is G 54 sets our work shift datum G 40 cancels any tool nose radius compensation that may be active on G 21,000 machine. We're using the metric measuring system. We define our toe with t seven. I'm using offset seven. Then we do. It'll change with them. I six 18 95 sets up feed for revolution. There is allergy codes that does this. But this time I'm using Gene 95 to demonstrate what it could be useful. Now our rapid to begin in point that I wish my talk to be at before we start machining the Fred. So using G 00 to Rapidan do it Free axes move. Bring a little into sense line of the first tapped hole on rotating spindle 90 degrees from zero point using the C axis. I'm going to be used in the tapping cycle G 84 for this process. Let's look like in a little bit more detail at the beginning of this block would tell a machine our intentions. So we put G 84 for a tap in cycle next week to find that the overall said death off the tap hole. We're going 10 millimeters debt for Fred. So this is what we put said, minus 10 millimeters, a lower spindle on towards a position. We can also put the rotation direction of the spindle. Now we wish to locate the whole on. So I did see 90 degrees just for clarification. We also had our whole position in X. We wish to use a slow spindle speed with my life calling since we're tapping so set spend of speed 100 up here and finally we have a picture for it. This is defined by an F value because it's his feed rates. And since we using an M six tap, I've added a feed rate one millimeter per revolution. Since we're using a tap in cycle. This time I've added the same line again with the only difference being the rotational of the sea access to give us the position of the second hole the machine works is helpful by itself on top spy holes seamlessly. Now we can use G 80 to turn off us tappin cycle, and we finished happy used to be 50 free telling machine to use the work datum shift are not the work shift datum that we had set to the front of the material. The accident movements takes us to a safe tool change position and no knowing turns off any credence that may have been active. I haven't turned coolant on on this operation night because I wish to use tapping compounds to put on the tap to give it to clean up for it. Could it can be used on some materials, depending on the material. It depends on what kind of could it's we use when we're tapping and finally, an M 01 so we can stop the machine if we wish to check the traits with a screw gauge. In this lesson, we discuss using the GI 84 tapping cycle on how to tap on the face of the component when we're not tapping on the center line as its standard on a normal to access life 7. Z Axis milling using driven tooling: a lot of modern leaves and CNC machining centres come with a life tolling option. This means we can mill and also drill on various axes for a machine. It gives us great control when we could make complete parts using just one machine that having separate operations or millet machines in this lesson, we're going to explore milling flats on the diameter in the said access direction. This is often used in the manufacturer of nuts and bolts, but we need to tighten the part on the machine freight using a spanner, the latter just one of a limited reasons what we may need to use life calling on a CNC machining center. We will be using 16 millimeter end mill for this program. Here we detonate are such number and eight we will be using Tool eight. Any writing within brackets the machine doesn't read. This is purely for the human operator. To read, 2 54 is a work stating shift. We tell the machine using the machine controls where one said 20 is in normal programs are used. The front face of the components at zero G 42 tells machine to turn on cutter compensation . This is set 1/2 the diameter off the milling cutter on the tour table in the controls on G 21 tells a machine that we wish to be in the metric system. The alternative to G 21 s, G 20 which tells machine we will be using the Imperial measuring system. Life tolling can also be referred to had driven tolling. I have chose to put our driven tooling holder in position eight on the turret. Care must be taken when loading driven tooling holders so that it doesn't interfere with any other cutters as they tend to be a bit big and bulky. So, to all eight, offset eight is designated by T 08 right and m 06 Does it'll change where the targets were rotate to the right tool is in position to start cutting. In this case, G 98 refers to a feed rate off millimeters per minute, which we will be using because we are milling. The instructions on this line can different from machine to machine on also operated tow operator. There's many ways of controlling the driven tool in spindle speed. In this case, we're using a p value of 800 to designate the spindle speed in M 13 turns it on in a clockwise direction. M 10 releases are spindle break so the spindle could move freely, activating a rapid travel command with G 00 You can bring in our cutter using a free access move to start off our cutting position. The ex and said moves to cut her as usual to the starts about flat, while the sea move designates the amount of degrees that we wish to move the spindle. In this case, we're moving it to 90 degrees M 11 replies a spindle break to ensure no vibration or movement of the spindle happened. While we're milling the parts, there is often a button on the controls of CNC machines that looked a spindle push the button. This is useful when you want to undo the chuck, you can look to spindle while you're undoing the Allen bolts on the face of the chuck to replace the Call it. Now we're gonna take our cut to size. We're gonna get straight down to the required debt in one go G 01 is our feed. Right Command. Why is agent minus 16 is the bet of the flat, stubby wish to cut. Using a feed rate of 60 millimeters per minute on M 08 Maternal couldn't on. At the end of our cutting move, we lift the cutter off the component using the rapid move of D 00 and they'll bring the cutter five millimeters off the face of the components. Here. I'm bring the cutter down to 18 millimeters, ready to start machining. Our next flat M 10 unlocks our spindle so we can now freely rotate it so the party is ready for our next cut. Thes Democrats may be different than on your machine. I've used a lot of different machines that use different codes for looking the spindle. So please check your operator's manual for the correct em coats. Using T 00 a rapid movement, I number rotating spindle to 270 degrees. I know applied a spindle break using M 11 using a feed right move off 60 millimeters per minute. I now take a cut with them in in Cutter 16 mill into the job. So you said among the 16 mil as before, I bring the cutter up to a safe distance off component. I know one. Look, the spindle with them. 10. This is so on any following operations, we don't try and stop the spindle with the brake applied. Switching to the machine datum offset and they'll move to cut away to our tool change position as before and turned the coat in tough. Using any nine 18 96. Put some machine back into reps per minutes. Mode on a G 40 removes our cotton compensation command. I'm using M 15 to stop the rotation off are driven tooling again. This may be different on your machine, so please check your operator's manual. We finish off this section of program with an M 01 optional Stop command In this parcel, of course, we discussed 1,000,000 across his head access, which is useful for a multitude of things, including making nuts and bolts 8. Y Axis milling: many modern lives at machining senses now come with a Y axis. This means we Camilla across the center line of the components driven tolling on the set access set. So the life calling holder driven told Holder is along the main center line of the spindle . It's possible to mill many shapes, using complex subroutines on cam milling, but with why access? It's simplified procedure. Why access is also good for cutting across flats where you can't reach. What is it access such in this case where we wish to cut into the job? Let's go ahead and look at this in a bit more detail. First we had our search number and nine, followed by an operator's note. Santelli operator What this operation is and what it does. G 54 sets our work shift datum that we've already said during set up. So we know the face of the component is zero. G 40 turns off any cutting compensation that may have been local active before we started this operation, and G 21 puts the machine in the metric measuring system. If you're working in Imperial measurements, used G 20 In a previous lesson, we used the 16 millimeters slot drill in position eight on the toe tarts, so again to go ahead. And we used to. As you may have noticed, the section on the end nine does not tie up this time to the tour number. That is fine. We can't use the same search number for two different operations, but we can use the same tools M 06 helps a machine to do. It'll change to bring the cutter into position. Jean 98 Angie 94 can both mean the same thing dependent on the machine. I've put them both here, so you can understand that you may need to look a reference manual to see which G code is used on your particular machine. They both put the machine into millimeters per minutes mode, normally jean 94 issues. But sometimes on a machining center, I have seen Jean 98 used as well. So one of these Chico's will be used. So please check your reference manual for favorite information to turn on the spindle speed sometimes in s value is used here. But I've also seen P values used, So we're going to use a P value two sets are driven. Tooling up Ian an M 14 times a driven tool on in a clockwise motion. M coach may differ. Depending on your machine, we're going to be using the M coat and 10 toe Unlock the spindle break. A spindle break is probably not supplied at this point, but I like to have each section of program that can run safely in its own environment. In other words, each part of the program for each tool can be run. There's a separate program, and if anything's live when the machine stops halfway for a program before in a different part of the cycle, then all these coats puts the machine into a state where it's safe to run. Now. This is always impressive to watch inside the machine. We're doing a four access rapid move as we move in awful access at once at a rapid speed, I would suggest turning the feed rate right down when you first run this. It's a lot to watch on. A lot of things could go wrong if you've made a mistake. G 00 is a rapid command. Our X and said commands, bring the tour into the position above flats we wish to mill. Meanwhile, our Y axis brings it'll in front of the part towards us. As you can see from a cross section drawing on the sea, axes rotates the spindle. So at 90 degrees from the zero point where we wish to start, milling are flat. Still under the rapid command of G 00 Here I'll bring the EC's down to a depth of the flats that we wish to cut M 11 lakhs of spindle. Several thinks rigid. So when we start milling across the spindle, we get no vibration on. The spindle doesn't leave. If it's some reason you have to stop the machine at this point on restarted from the beginning of the program, the M 10 will release the spindle break, so no harm would be done. This is why I always take off the spindle break before I apply it on the programs such as this. Now we can start cutting up flats using the feed rate commands of G one set off feed right 60 millimeters per minute, and I'm moving the Y axis 60 millimeters away from us. This gives us plenty of clearance. The other side of that part to finish our 1,000,000 emirate tends acute. It's on so we can flush away the swap and keep it'll court. No, that's our flats has been machines using one past. We can use G 00 to Rapid Artal above the job in the X axis. This gives us plenty of clearance. When we moved, it'll into position for a second flat with the machines. They're working under a rapid command of G 00 I now bring the Y axis towards the operator using the boy plus 30 millimeters. Since we're at Y minus 30 this brings it 60 millimeters towards us. As you can see from the cross section drawing M 10 unlocks a spindle ready to rotate the C axis to bring our next flat into position. No, I love a little using the X axis down to a depth of cut that we need and also rotating spindle to 270 degrees from zero point. This puts, ever think into position, ready for us to mill our next flats across the component using M 11 I now locked a spindle in place by applying the spindle break. I switch on our feed rate commands by using G 01 and then feed rates of 60 millimeters per minute to find body F value at the end of this block. Using Y minus 40 we now cut across the material and produce are flat. With all our mailing done, I can now rapid a tool a safe distance above the material using X 46 millimeters. Of course, G 00 is a rapid trouble. Command M 10 releases are spindle break. So now the spindle can move freely, ready for our next operation using T 50 free, I tell the machine that's were using the machine datum on, not the working shift datum off the front of the job that we set using G 54 now a zero the Y axis and the X axis and put the machine into a safe work in place to do. It'll change m 09 times off. All Cubans, the last free machining centers I've operated all had different M coves to stop the life toiling spindle. So in this case, we using M 15 to stop the life tooling spindle. The most recent machine Iran used this command. I finished with an optional Stop command. This gives us the option to stop the machine. I mentioned a component to make sure everything was OK before we continue to machine. The rest of the part in this lesson demonstrated milling using the Y axis, and we also explains that different G codes and M caves are used on different machines. It's always wise to check your operator's manual for the correct decodes and M caves that is relevant to your machine.