CNC Milling G Code List For Beginners

CNC Milling G Code List

Download and print this nice large print CNC Milling G Code List

Download CNC Milling G Code List PDF

I always begin my training sessions by telling my students not to remember anything I say.

This sounds completely stupid and my excuse is it wasn’t my idea to say it.

About ten years ago I worked in France. After about a year and it seemed obvious that I would need to speak to people to order “Fish n Chips” and stuff like that.

Anyway I got these CD’s to teach me French and the bloke (can’t remember his name) started off by telling you not to remember anything he told you.

I think there is a bit of reverse psychology going on but the main idea is that you understand not remember. It didn’t work for me because I still managed to completely fuck up the language. Not realizing French Canadians speak differently to native Frenchmen (I was working for Bombardier) . Anyway I asked this bloke, in French, to “come with me”. I can’t remember what it is in French and after all the bloke on the CD had specifically told me not to remember.

Anyway turns out this had a sexual connotation and made me the complete laughing stock everywhere I went from then on. (I’ll let you do the maths on that one.)

“OK who bought all The fuckin toilet paper?”

When it comes to CNC Programming the idea of not remembering loads of G Codes is really important. Truth is you only need a few and it’s all about understanding what they do.

For Example I want to drill a hole.

You completed a training course at the CNC Training Centre. You understood it all and you practiced with you free simulation software that you get with the course.

You start writing a program to drill some holes.

From your training you know that there is a cycle that drills holes.

You understand how the cycle feeds the tool down to a depth and then it rapids out ready to do another.

Quick Fix G81 Video

You also know that if you keep adding more positions (X50. Y50.) it will keep drilling holes.

And… when you are sick of drilling holes there’s another G code to stops it.

What Are These G Codes?

So you just look em up on your CNC Milling G Code List.

G81 Drilling Canned Cycle
G80 Cancel Canned Cycle

Then you think “mmm I’m sure there’s one that pecks the material out and breaks it up”

“Let me see… Ah this looks like the one

G73                 Peck Drilling

CNC Milling G Code List

Type up or print this list in nice big letters and stick it to the side of your machine

Download CNC Milling G Code List PDF

CNC Milling G Code List

G00                 Move at Rapid speed
G01                 Feed in a Straight Line
G02                 Clockwise Arc
G03                 Counter Clockwise Arc

G04                 Time Dwell
G28                 Return Axis to Home

G41                 Cutter Compensation Left
G42                 Cutter Compensation Right
G40                 Cancel Cutter Compensation

G43                 Apply Tool Length Offset
G54 to G59     Work Offsets

G81                 Drilling Cycle
G73                 Peck Drilling
G83                 Deep Hole Drilling Cycle
G84                 Tapping Cycle
G80                 Cancel All Canned Cycles

G90                 Absolute Programming
G91                 Incremental Programming

Download CNC Milling G Code List PDF


Haas Decimal Point Default to Float Setting 162

Category : Haas Settings

Haas decimal point setting, this  is really important on a CNC Machine.

When set to on when you type in X20 it adds the decimal point for you.

Haas decimal point

If this is off when you enter X-2 then you would get X-.002

If you had the setting on then you would get X-2.

The following letters would be affected.

X, Y, Z, A, B, C, E, I, J, K, U, W

It doesn’t really matter how you set this but It’s really important. You might think it’s much easier to have it on so you can just type in X2 and you get X2.

Now this is a really bad habit to get into. The reason is that if you ever work on another machine where it needs the decimal point.

So you type in X2. and you get X.002

Now you are going to be in very deep shit. If this is a CNC lathe then you will probably have a collision and you might shit yourself too which can be unpleasant.

Haas Decimal Point

This is a setting on all Haas and Fanuc machines and you can never be sure how the machine is set up.

This is how you set it on a Fanuc control.

Decimal Point Fanuc Parameter 3401

Here is another article I wrote on this subject.

CNC Programming Safely Using Decimal Point

Here is the official line from Haas

Thanks for watching and reading

If you have been affected by any of the issues in this post or need CNC Counselling then contact me.

We really love you but honestly we don’t really care if you break your machine. However if you do, make sure you youtube it. Then you could make a shit load of money from the video.

Oh yea we do CNC Training too, not to mention Classroom Training.

Siemens Sinumerik 840D 828D training

Or call us on : 0333 939 8388

If you want to learn to program CNC Milling Machines

Look no further Contact CNC Training Centre

 


Haas Jog Spindle Speed Setting 98

Category : Haas Settings

Haas Jog Spindle Speed

This article tells you how to control your Haas Jog Spindle SpeedHaas Jog Spindle Speed

Are You Jogging Too Fast

OK so this is not some fitness weight loss type blog

“Lose 3 stone in one day”

We all know that’s not possible unless you’re at the zoo and a lion bites both your fuckin legs off.

The CNC Training Centre Diet

Haas Jog Spindle Speed

 

Anyway I am one of these blokes that loves tinkering with things. I’ve never actually killed myself (otherwise I would be posthumously writing this article) but I have come pretty close on numerous occasions.

The other day I realized you could control the jog speed of a Haas Machine by setting parameter 98

I was so excited I just had to play with it (no sexual innuendo intended).

Normally I don’t bother using SPINDLE JOG because it spins the part too fast.

Here’s how you change setting 98.

Press this button………

limit wear offset

Sorry it’s a dirty grubby button but it’s the only one I have (welcome to the real world)

Anyway I’ve no doubt yours is probably dirtier than mine.

Haas Jog Spindle Speed

Type into setting 98 the speed you want when you press the SPINDLE JOG button

Set it to 10rpm, it’s nice and gentle if you want to rotate your part and see what’s going on.

Enjoy

All you need do now is enjoy it.

First press MDI then press SPINDLE JOG

Haas Jog Spindle Speed

Caution

You can do it with the door open too so be careful.

Thanks for watching and reading

If you have been affected by any of the issues in this post or need CNC Counselling then contact me.

We really love you but honestly we don’t really care if you break your machine. However if you do, make sure you youtube it. Then you could make a shit load of money from the video.

Oh yea we do CNC Training too, not to mention Classroom Training.

Siemens Sinumerik 840D 828D training

Or call us 

If you want to learn to program CNC Milling Machines

Look no further Contact CNC Training Centre

 


5 Axis Machinist What Is 3 Plus 2???

Category : 5 Axis

5 Axis Machinist What Is 3 Plus 2?

Here is a question. Does three plus two equal five?

“Of course it does you twat” I hear you say.

Well when you are talking about five axis machining three plus two does not make five. Sorry I’m starting to talk in riddles here.

Honestly I fuckin hate riddles, you know those stupid things you sometimes find on Facebook.

Before you know what’s happened you find yourself sucked in and actually trying to do the bloody things.

I mean maybe it beats the shit out of filling in your tax return but still a complete waste of brain power.

Three Plus Two as Opposed to Five

Anyway you have simultaneous five axis machining and you have three plus two. Lets deal with simultaneous five axis machining first.

This is all that clever shit you see on YouTube.

This is a SWARF cut Side Wall Axial Relief Feed (There’s one to impress your mates)

You really should get out more.

Anyway what you see above can only be done on a simultaneous five axis machine. This means that all the axis have to move together as if they were locked in a gear train.

5 Axis Machinist

5 Axis Machinist Three Plus Two

Now some machines have five axis but they can’t actually run the axis simultaneously. Now it’s not that they don’t have their shit together, it’s just that some mean bastard didn’t spend enough cash when they bought your machine.

Let’s get this clear they can all move together but they are not synchronized, kind of random. A bit like Strictly Come Dancing where they have some fat old celebrity that you know will get dumped after everybody’s took the piss out of them for a couple of weeks.

There are the normal XYZ boring axis, plus you have two more which are rotary axis.

Now the XYZ (three axis) are simultaneous, but the other two (known as the teenage axis because they do what the fuck they want and take no notice of anyone).

This means you can only send them to a position, lock them up and then do some machining.

In itself this is really, really useful because you can machine a part all in one setup. You just index the two rotary axis to each position.

This is probably the most common use of a five axis machine.

Types of Five Axis Machines

Table Table

This is the machine above. It has a two rotary axis mounted on the table. The trunnion which is the big bit swinging from side to side and the round table that rotates on top it.

Head Head

This is a head that swivels in two directions.

Head Table

Sorry I haven’t got one of these to show you. This is where the head swivels and the table rotates.

When you are programming a five axis machine, which is usually on a CAM system, the CNC code is still the same no matter what configuration you have. (Head head, table table, head table)

5 Axis Machinist, Retro Fit

Retro, don’t even go there. What’s all this buying new stuff that looks like it’s old?

I mean if you are buying something new surely you want it to look new?

It’s mad.

I mean how do you ever show off to the neighbors. They think you are buying second hand shit. Really, you just paid a small fortune for a fuckin TV that look’s forty years old before you even took it out of the box.

I mean do you get a warranty on this stuff? Or do they say “sorry mate it ran out in 1963”

Listen I remember some of this shit when it was new, it was crap then, so why would you want it now?

My mother used to have to beat the livin shit out of our telly just to make it change channels.

Let’s get back to some 5 axis stuff.

What I’m on about, before you side tracked me, is you can fit a fourth and fifth axis as an afterthought. You just nail them to your machine table and send out a few M codes and away you go.

They don’t actually do anything very exciting but you can do all the three plus two stuff shown above.

You can even pay out a kings’ ransom and get these fully simultaneous. Can’t say I would recommend that unless it’s a real high value machine you are going to keep forever.

Haas do some great add on 4th and 5th axis at a great price too (tell them David Garner said to buy them and I’ll get a massive commission).

It’s All Done With Smoke & Mirrors

Not really it’s just a shitty old M code.

Retro fitted axis can be fully interfaced with your control or the control can be made to output an M code to activate your axis.

Now the machine hasn’t got a clue what this M code does and it doesn’t give a flying shit. The machine just waits to get a reply saying it can carry on.

The 4th axis has a program and it will output a move each time it gets one of these signals from the machine. When it has done this move it will tell the machine to carry on by sending a signal back.

Why So Many 5 Axis Configurations

  1. Designers get bored
  2. Strength and rigidity.
  3. Access.
  4. Weight. Imagine trying to swing round a massive engine block. It would be far better static on the table with the machine dancing around it.

Centre Of Rotation

I’m not going to go deep into this in this article. Mainly because I have to feed the cat and I’m having the name of my favorite celebrity tattooed on my arse later this afternoon.

I’ll be brief.

  1. It matters.
  2. It really matters
  3. It really really matters.

If the center of rotation on each axis is wrong then none of your positions will be correct.

With three plus two you can use a different work offset for each presentation. Each one can then be adjusted independently.

With simultaneous 5 axis you have to work around the centre of rotation. Fortunately if you have a touch probe a lot of machines have a built in routine to automatically set this using a ball bearing.

Here is more information on adding a fourth axis

This is my video about all of the above, I saved it till last otherwise my lazy followers and the ones that can’t read, would just go straight to it.

5 Axis Machinist What Is 3 Plus 2?

 

 

 



Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407