Month: January 2025

Learn CNC Canned Cycles G81 G84 G73

Learn CNC Programming (Canned Cycles)

Call David: 07834 858 407

CNC Training Centre Reviews

A Canned Cycle What is It?

If you want to learn CNC programming  then you need to know what a canned cycle is.

I’m going to have to be honest here it is a funny choice of words “Canned Cycle”. But a wild guess would be that all the information to drill a hole would be kept together in a “Can” ready to use.

In a Can…….Learn CNC

So let’s learn CNC Programming….

Make sure you read the end of this article to see a really cool way to drill equally spaced holes.

First of all we state the cycle:

G81 Z-20. R1. F100. X50. Y50. F200.

The machine will move to X50. Y50. then rapid to 1mm above the part (this is the R1.). It will then feed down to Z-20. at a feedrate of 200 mm per minute F200.

Finally it will rapid out of the hole.

It then sits ready for the next move.

dog-163527

All you need to do now is just keep giving positions.

G81 Z-20. R1. F100. X50. Y50. F200.
X60.
X70.
X80.
X90. Y60.
G80
The G80 at the end will cancel the canned cycle. It just means “Look I am a bit pissed off with drilling holes so can you stop”

So that’s it Canned Cycles it really is that easy you put all the information in the “Can” then each time you give a position you get another hole.

Want to know More?

Thought you would. You want to learn CNC programming don’t you?

There are loads of these canned cycle but I am not going to talk about every one in detail. No sorry you will have to read the boring old manual for that.

Not to Worry They Are All The Same

Well sort of. You state the cycle then it repeats at each position given until you cancel it (and that applies to all the cycles).

Anyway Here are a few:

G84 taps holes, tell it the pitch depth usual stuff.

 

G73 peck drilling is the same as drilling (G81) but you give it the peck depth.It pecks the hole breaking up the swarf.

 

G83 same as G73 but with each peck the drill comes right out of the hole. For deep holes or swarf that clogs.

 

G76 bores a hole, stops at the bottom, moves over and rapids out to avoid marking the bore.

Ok let me tell you this, you are doing great so far. This is how we learn CNC programming. Nice small steps.

G98 G99

I already wrote a post on this click to see it all (it’s truly amazing). I purposely didn’t include it in the cycle above which is ok. The idea was to keep it simple.

 G43 Z50.H1 M8

G81 G98 Z-20. R1. F100. X50. Y50. F200.
X60.
X70. G99
X80.
X85. G98
X90. Y60.
G80

g98gif

All it is in a nutshell. G98 returns to the Z point you were at before you started the canned cycle.

G99 will return to the R point (R1.)

Why you ask?

Easy you can jump over shit.

Clamps, high sections on a part, tall buildings, anything.

spiderman-1579249

It Gets Better.

G81 Z-20. R1. F100. X50. Y50. F200.

The Z-20. the R1. the feed-rate etc are all known as parameters. These are the things that control your cycle.

These can be altered at anytime and stay in until you alter them again or cancel the cycle.

G81 Z-20. R1. F100. X50. Y50. F200.
X60.
X70. Z-30. (From here onwards the holes are drilled 30mm deep not 20)
X80.
X90. Y60.
G80

Now let’s alter the feed

G81 Z-20. R1. F100. X50. Y50. F200.
X60. F300. (Change feed)
X70.
X80.F200.(Change it back)
X90. Y60.
G80

Remember it stays in until you say otherwise.

I Think you Now Need to Learn About Modal Information

Read the above article. Modal means that the information stays in the control until you cancel it or change it.

Do’s And Don’ts

Do Not………

Put in a rapid command G0 X50. Y50. it will cancel your cycle and the machine will just sit laughing at you. (No hole drilled).

See this post G0 cancels canned cycle.

G81 Z-20. R1. F100. X50. Y50. F200.
X60.
G0 X70. (Rapid to X70. no hole drilled)
X80. (Rapid to X80. no hole drilled)
X90. Y60. (ETC)
G80 (You already cancelled the cycle with G0)

Do Not Repeat Axis Moves. 

G81 Z-20. R1. F100. X50. Y50. F200.
X60. Y50. (Don’t need Y50.)
X70.
X80.
X90. Y60.
G80

D0…….

  • Always use a canned cycle if possible it saves loads of time. It is also really easy if you need to edit anything.
  • Make your CAD/CAM system output canned cycles, not long hand code. I saves loads of time if you need to edit.
  • Love engineering and be nice to your cat.

 Really cool way to drill equally spaced holes

Imagine you need to drill and tap this part. Nine M10 holes.

 

Learn CNC


Learn CNC


Quite simple but 31.63 added up nine times? Mmmm I never learnt my 31.63 times table.

O0001(Drill and Tap M10)

T01 M06 (20mm Spot Drill)

G90 G0 G54 X0 Y0 S1500 M3

G43 Z3. H1 M8
G81 G98 Z-10. R1. F100 L0
G91 X-31.63 L9
G80
G0 G53 Z0
ETC
M30

Learn CNC Programming? How easy is that?

  • The programme moves to the datum X0 Y0 which is the middle of the part at the right hand end.
  • The G81 has an L0 at the end. L0 is not a Lionel Richie song it just means don’t do one. So it moves to X0 Y0 and does nothing.
  • The next line, G91 means incremental move so it moves incrementally nine times (L9) X-31.63 and drills a hole each time.

Brilliant I told you it was worth waiting for.


Learn CNC


Thanks For Reading

Don’t forget there’s loads more folks.

And a YouTube channel

Call David: 07834 858 407

Learn CNC Programming

Services offered at CNC Training Centre

Edgecam training.

Classroom programmer training.

Onsite CNC Machine Training.

CNC Training on all controls and machines.

Mazak Training Fanuc Training

Don’t forget we offer training on all types of Mazak Machines and all Fanuc Controls 6m to 31i Oi old to young.




Canned Cycles Using G98 G99

This article is about CNC Canned Cycles Using G98 G99

Canned Cycles Using G98 G99

(G Code CNC Programming)

It’s not a competition G99 vs G98. sometimes you need G98 sometimes you need G99.

CNC Canned Cycles Using G98 G99, a canned cycle is usually one line of code for example to drill a hole. This one line of code tells the machine all it needs to know about drilling my holes.

G98 G99

  •  Depth
  •  Feedrate.
  •  Point to rapid to before drilling
  •  Point to rapid back to after drilling

Canned Cycles Using G98 G99

G Code Programming Haas Fanuc (ISO) Mazak

What happens then is each time we give the machine a new position it will drill one of these holes. Each hole will be identical unless we change one of the parameters. So if on one hole we put a different Z depth that hole and all subsequent holes will be to the new depth.

CNC Canned Cycles Using G98 G99

So all in all it’s a really easy way to drill holes. You tell it what you want and then each time you give a position you get a hole. Then when you get sick of drilling holes you type in G80.

Machine says OK he don’t want anymore holes so from now on when the machine moves to a position nothing happens.

Mitsubishi Carbide

There are loads of Canned Cycles I can’t be bothered to tell you about them all cos I’m going out tonight otherwise I would explain them. Anyway they all do different stuff like.

  • G84 Tapping
  • G73 High speed Peck Drilling
  • G83 Deep hole Drilling
  • G81 Drilling

They all work in the same way as each other but with variations.

Now the video at the bottom of the page is about CNC Canned Cycles Using G98 G99 and that’s in all the drilling and tapping type cycles.

Ok what does it do? You may well ask, G99 vs G98

I know for a fact that some of you, and I won’t mention names, put this on the line with the canned cycle but you ain’t got a clue what it does. Maybe you don’t even put it in. Maybe you don’t care.
Anyway it’s simple.

  1. You rapid to an initial point
  2. You rapid down close to the hole (this is the R point)
  3. You feed down to depth (Z Depth)
  4. Then you rapid out to either the initial point (1) or the R point (2)

Canned Cycles Using G98 G99

Now if you program G99 it returns to the R point .
If you program G98 it returns to the initial point (that means the first one)

Ok why on earth would I want that?

Well……. if you made the first point say 50mm above the job (About 2 inches) and the rapid point was 1mm above the job (.040”).
You could drill all your holes in G99 and the drill would each time return to 1mm (.040″) above the part. You get to a clamp and you put G98 and it jumps to 50mm (2”) above the part and misses the clamp. Change back to G99 and it stays down returning to 1mm (0.040) above the part.

Get it? So you eliminate wasted moves. Good init.

Canned Cycles Using G98 G99

CNC Canned Cycles Using G98 G99

Take a look at the CNC Training Courses on offer at the CNC Training Centre

Oh and here is my video it explains how to use G98 and G99 to jump over clamps on a fixture.

If you liked this video, please don’t forget to subscribe to my YouTube channel by going to: CNC Training Centre

Please don’t let on if you don’t like it as I am easily offended.

If you want to learn to program CNC Machines

If you want to learn to program CNC Milling Machines

If you want to learn to program CNC Lathes

Look no further Contact CNC Training Centre

Please contact me if you require:

  • Fanuc training.
  • CNC programming training.
  • Want to Learn CNC programming.
  • Fanuc programming   training.
  • Yasnac programming training.
  • Any type of CNC course.

Don’t forget to watch my Tutorial Videos

We offer training on all types of CNC Machines and controls check em out.

co*****@***************re.com

Or fill out the contact form below


CNC Battery Backup

Category : Useful Stuff

CNC Battery Backup

It’s Holiday Time Woopeeee

  • Did you set the burglar alarm?
  • Switched all the lights off?
  • Turned off all the taps?
  • Locked up?
  • Fed the rats?

Oh just one other thing before you go.

CNC Battery Backup

 

CNC Battery Backup, I had a call from a customer the other day about a mysterious battery warning on the screen of his Haas CNC Lathe, it turns out he had been ignoring a battery alarm for a while. Battery warnings are a bit like strange rashes you ignore them at your peril.

I was too late the machine had lost its memory. A bit like the next day after you got drunk and everyone was telling you about how you got naked in the middle of the dance floor and to you it’s like it never happened.

No matter how many prompts you give the machine now, all is lost. When your battery backup goes unfortunately you don’t just loose your CNC Programmes, oh no you should be so lucky. Obviously it depends on the machine and the control and how the moon is aligned with the planets. You can loose all your parameters, all your offsets, all your settings everything. All in all it’s not good.

CNC Machine Parameters

The parameters are the most important one, if you ignore this whole article (like you did all my others) please don’t ignore this. It could almost scrap your machine, I jest not. All your machine backlash parameters would be lost and even if you had an identical machine these parameters would not be the same they are unique to each machine. You should have a disk or a paper tape or DVD, maybe somewhere in the machine cabinet. Make sure you have a copy of this and it is up to date.

CNC Battery Backup

On  most machines the CNC Battery Backup gets charged when the machine is on and when it’s off that battery keeps hold of all what’s needed for when you switch it back on again. This works fine until the battery gets knackered after a few years. You should get a warning and if you do then you ignore at your peril. The best thing to do now is don’t switch off the machine (the hydraulics is fine to turn off).

CNC Battery Backup

Just press the E Stop (the big one shown above) but don’t switch off the main power. Now get HELP. Oh and by the way if your machine has power saving or auto shut-down you may need to turn this off as some do power down the whole system, this will be in your settings.

CNC Battery Backup

It’s particularly worth looking at before a shutdown type holiday. You might not realise it but this might be the only time in a year when the machine is off for more than a few hours, and that’s when the trouble starts.

Even when everything is restored you need to be really careful it’s a bit like restoring factory settings on your mobile phone  “yea that’s OK” you say. Then for days you keep finding all those little customization you made and forgot about.

CNC Battery Backup

This is my phone (I like to have all the latest gadgets just like you young folk)

Oh By the way don’t forget the new classroom training courses.

CNC Classroom Training Courses    CNC Classroom Training Courses

If you are not familiar with the basics of Turning or Milling then you may need to take one of the course below before you do the New CNC Training Classes above.

CNC Classroom Training Courses    CNC Classroom Training Courses

CNC Battery Backup

Lets talk about what we can do with regards to CNC Battery Backup.

  • Get your machines on a regular maintenance contract.
  • Make sure you have an up to date backup of your machine parameters.
  • All backups should have an extra copy off the premises or in a fireproof safe
  • Always read alarms and don’t procrastinate, it can make you blind.
  • Never ignore warnings on the screen and keep your eyes out for quick flash warning as the machine comes on.
  • Don’t just keep programs in the machine you may have got away with it for years but one day……..

CNC Battery Backup

CNC Program Backup

The method I have found to work the best with regards to CNC program backup is to only keep in the machine the program you are currently using. That way you always have the most up to date program and it prompts operators to update the backup system after alterations. Also it will stop you relying on the machine memory.

There are many very good backup systems you can buy and I would recommend you get one. They usually have a way to quarantine a program so that the programmer can decide to update the master after alterations.

Make sure you have drawing issue numbers etc. on your programs and this covers you for ISO 90001 thingamy or whatever. Most machines have a way of saving all the programs at once and this is often a good temporary measure if your in a rush. On a Haas CNC Machine it puts them all into a single program.

Most machines have a way of saving your offsets either separately or with the programs and this is well worth checking out.

Read The Manual, CNC Battery Backup

This is not just an old man repeating himself yet again. It will tell you how to backup your parameters and offsets etc.

CNC Probes, Auto tool Measure, Lathe Measuring Arms

CNC Battery Backup

You will have to re calibrate these as the settings will be lost. Unless you saved your parameters that is. It is a good idea to write these figures down and if you didn’t do it before do it this time.

These settings effectively store where the probe is in relation to the coordinate system. If you don’t know how to calibrate your probe etc. it’s time to learn it is not only expensive to get this done it will stop you getting round to doing it. Once you have done it you will be surprised how easy it is.

 

Call me anytime

CNC Classroom Training Courses    CNC Classroom Training Courses

If you are not familiar with the basics of Turning or Milling then you may need to take one of the course below before you do the New CNC Training Classes above.

CNC Classroom Training Courses    CNC Classroom Training Courses

Please contact me if you require:

  • Fanuc training.
  • CNC programming training.
  • Want to learn CNC programming.
  • Fanuc programming training.
  • Yasnac programming training.
  • Any type of CNC course.

Don’t forget to watch my Tutorial Videos

Services offered at CNC Training Centre

Edgecam training.

Classroom programmer training.

Onsite CNC Machine Training.

CNC Training on all controls and machines.

Mazak Training Fanuc Training

Don’t forget we offer training on all types of Mazak Machines and all Fanuc Controls 6m to 31i Oi old to young.


Mazak Quick Turn 10 CNC Lathe. What’s not to Like?

CNC Training Call David: 07834 858 407

30 Five Star Reviews

CNC Training Centre Reviews

Contact CNC Training Centre

Mazak Quick Turn 10

It’s been a while since I trained anyone on a Mazak Quick Turn Machine. Another training job completely out of the blue.

Custom Rifles, didn’t know what to expect really. Anyway a drive to Tunbridge Wells, where for the price of a garden shed you could probably buy my village in the Midlands.

I just want Mazak Training I’m not interested in your boring article.

 

Mazak Quick Turn

I ended up in glorious countryside on a farm in what felt like the middle of nowhere. The guy who runs this company (Paddy) has his workshop in the outbuildings of the farm.

 

 

It is like walking into Dr Who’s Tardis. This workshop wants for nothing, surface grinding, shot blasting. This guys even got a Faro Arm!

CMM Solutions

Two Haas machines and the Mazak Quick Turn 10. Not the tidiest of workshop but I am told it’s a work in progress.

It is really heartwarming to see such investment in tooling and modern equipment in what effectively is a one man band.

Paddy is a brilliant engineer and mostly self taught. Loads of the CNC stuff learnt from my website (happy days) . This guy googles everything but not in a “What I had for breakfast, oh fuck the cat just threw up” type of way.

This is very constructive use of google definitely the way forward.

He already had a pretty good understanding of what the machine could do. Being self taught, several gaps in his knowledge, so, in steps me, to fill em all up.

Paddy rebuilds, repairs and creates custom rifles.

Mazatrol

I had forgotten just how brilliant these machine are. I don’t believe there is a quicker way to get a part from drawing to bubble wrap than the Mazak Quick Turn.

Check out this video on Tool Path Store another brilliant feature on the Mazak Quick Turn.

 

I’m not flogging these things by the way but if your reading this article I’m always open to offers. That is providing I keep my clothes on, well maybe not, how much we talking?

Mazak Quick Turn

From its original concept Mazatrol has never really got much better and that’s not a criticism. For turning it’s just bloody good, very bloody good.

G Code Programming

When I train people on G code type controls who have worked on Mazatrol and machines like the Quick Turn 10 they are stunned at how complex the programs are.

 

Mazak Quick Turn

Like for example on a Mazak you index the turret and you wanna use a tool. Now that’s not a big ask is it?

Well on most other controls you can’t because the bloody offset is not active. You can call it in MDI if you want. That is if you know how. Trouble is, the minute you press RESET it’s gone .

How to stop this from happening

On a Mazak once you index the turret that tool is active along with all its associated geometry.

That means you can start manual turning with hand wheel or jog and the diameter is what it says on the screen.

Mazak Quick Turn

So simple, so obvious but what a difference it makes. The list goes on and on as to how well thought out these Mazak Quick Turn machines are.

All the information is saved with the program. So that means your work offset, jaw details and chuck details are all there when you call the program again.

Graphics

Now the graphics are not like“Assassin’s Creed Origins” but they are adequate and definitely help a lot. If you can be arsed to set the graphics up with chuck jaws n stuff then you can be certain all will be okay when you run it for real.

Mazak Quick Turn

You can even jump from the program directory straight to a graphic simulation of the part so there is no “oh shit I wish I’d made a note of what this does” moment. You quickly get to see what the program does.

Footnote: You should still add a program description (and there’s a facility for this too.)

Liar Liar Your Bums On Fire

One of the main criticisms I hear of Mazatrol is that you have to “Lie to it”. I think when you want to do something a bit unusual it’s sometimes hard to get Mazatrol to do it.

This Mazak Quick Turn 10 is a two axis CNC Lathe. Let’s be honest most of the bits you make are gonna be quite simple. If not then this is where the Manual Programming Unit steps in.

Manual programming units are the Mazak “Get Out Of Jail Free” card

You can go back to some very crude G code programming within Mazatrol. These Manual Programming Units can sometimes get you out of a jam. It is quite limited, in what G codes you can use, but it will help a lot.

Incremental is a bit strange because it does not use U and W like you would normally on a Fanuc type system. It puts like a sign after your X or Z to tell you it’s incremental.

Need To Know

It’s well documented how easy it is to program in Mazatrol so I won’t dwell on it.

If you have never used Mazatrol you need to check it out. I think it is the epitome of “need to know”. What I mean by that is that it’s the minimum amount of information to get it to make some bits.

You know stuff like do you want tool nose radius compensation? Of course you bloody do. So it doesn’t ask you, you just get it.

Mazak Quick Turn

Anyone who has only used Mazatrol probably wouldn’t know what you were on about. And why should they care?

It’s like knowing all the bits inside your telly who gives a shit when you just want to watch “Emmerdale Farm”. I don’t watch that crap by the way, honest.

Read On It’s Not All This Boring

This control can smoothly go into ISO programming. Not sure if this is an option but they all seem to have it.

So………. from a Mazatrol program you just jump into an ISO G code type program and everything works the same.

So what’s all the fuss about. If there’s something you can’t do in Mazatrol just write a bit of straight ISO G code type program and call it from your Mazatrol main program. So there you go job done stop whining.

Even the graphics work in ISO so there is no excuse.

Priority

When you finish your program you get this list of processes and you can really easily swap things around. You know like if you wanted to thread before you did the grooving, you can easily just swap the order.

Haas SL 10

Then you have this button that says Rough Priority. When you press it all the roughing is done first. How cool is that??

Mazak Quick Turn

Program Restart

It always amazes me that CNC Machines are never that good on this. Well Mazaks are not bad actually.

You can really easily start from any program unit in Mazatrol. It’s also got this Single Process thingy that’s been around for years. Dead useful though. It means you can just run one unit, so you don’t have to worry about it carrying on to the next unit it just does that unit and ends.

Useful for stuff like just going over a thread again.

You can’t actually break into a unit to restart but on CNC Lathes you nearly always just want to start at the beginning of a tool.

If you have an ISO program it’s still better than a lot I could name. A bit convoluted in a way only the Japanese seem to be able to do. Nevertheless seven out of ten.

Procrastination

I was accused of this years ago and once I’d looked it up I thought yea that’s me. “What’s the point of this you ask? He’s off again”

When you are running an ISO program and you are milling say a shape or something. You look at the program and you see something coming up that you never got round to changing. It could be a feedrate or something.

It’s something that can keep pissing you off cos you forget to do it.

Help is At Hand. On a Mazak you can actually go into edit and alter it then come back n continue your program.

I just love showing people that one, makes me feel like I earned my money.

Oh yea by the way this is only when you are in an ISO program not Mazatrol

Things I Don’t Like

  • Take That Records
  • Beef Burgers
  • Brass Bands

No I meant about this machine Mazak Quick Turn.

Not much actually, oh the editing is a bit slow.

Editing

Editing in ISO is a doddle.

Editing in Mazatrol is very cumbersome and when it comes to stuff like copying a unit you have to say what program it’s from and all sorts of bollocks. It wants your bank account number and sort code.

There are more questions than a fuckin mortgage application.

Moving units is the same not a pleasant customer experience. Once you get used to it and how the Mazak brain is wired it’s ok though.

Let’s Be Honest

There ain’t much to not like about the Mazak Quick Turn.

Check this out on VFC it’s brilliant.

Even if I were only going to use the machine is ISO (Fanuc type programming) and not use Mazatrol I would still seriously consider buying one of these machines.

Why…..

  1. In ISO it’s easier to restart a program than most G code controls.
  2. The editing is easy.
  3. Better graphics than most. (It’s still like early space invaders)
  4. Erm…..

Oh yea I’d better do a plug for training. If you want to be trained on a Mazak give me a call.

 


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407