CNC For Beginners, Order Code

Category : Beginners

Running Order (CNC For Beginners)

This is part of a series of articles, CNC For Beginners.

The order of your code in one block does not matter from the computer’s point of view (see below).

The computer gobbles up a line or block of code and then makes sense of it. you programme G90 G0 X50. Y50. Z50. all the axis will move together so G90 G0 Z50. Y50. X50. would be exactly the same. I just jumbled it up, not to confuse you, just to show you that it does not matter.

O0001 (G81 DEMO)
(PROGRAMMER PETER ANDRE)
G21 G90 G40
(G90 G40 G21) Works the same

T01 M06 (20.0 MM DIA X 90 POINT SPOT DRILL)
(M06 T01) Works the same

G90 G0 G54 X12.64 Y88.0 S2546 M3
(S2546 M3 G90 G0 G54 X12.64 Y88.0) Works the same

However it is best to keep the order the same. Create your own convention and stick to it.
G90 G0 G54 X12.64 Y88.0 S2546 M3

If you programme as above you will get used to the order and your programmes will be easier to read.

At a customers recently I got really frustrated by the inconsistency of the program. I did the only thing my upbringing has taught me to do.

Headbutt the nearest object.

CNC For Beginners

Consistency (CNC For Beginners)

G90 G0 G54 X12.64 Y88.0 S2546 M3

So you could begin with absolute or incremental (G90 G91).
Then rapid or feed (G0 or G1).
Then G54 (G55 G56…..) work offset.
Then X Y Z not Z Y X.
Then Speed S2546
Then turn on spindle M3

For example if the speed was always at the end of this line you would notice straight away if it was missing

It’s like reading telling the time we learn to recognise patterns.

So although the running order does not matter, in terms of the way the programme runs, it is important from a visual point of view.

Try to make your programmes consistent and to a regular pattern. Anyone using your programmes, including you, will find them easy to read and to fault find.

Remember if you are a programmer then the machinist, setters and operators are your customers so try and imagine the programmes from their perspective.

Heidenhain and Mazak

On these controls you don’t get any choice in the way the code is set out so you don’t need to worry. In fact you wasted your time reading this article.

Rules (CNC For Beginners)

I often say to customers that I work with that it does not matter how you do a lot of these things but you must have a consistent approach.

A good idea is to write a standard operating procedure (SOP) this would document exactly how the running order will be. If you are using CAD/CAM you will need to get into your post processor and make sure it outputs the code in accordance with your SOP.

Even down to leading zeros and training zeros do you programme G0 or G00 do you programme X.2 or X0.2. I know what I prefer because I hate wasting space (I am old school when memory space was sparse). It really does not matter but you must have a consistent approach and if you are not the only programmer, meet with your colleagues and come up with a plan.

 

If you don’t for example programme X50. Y60. Z80. in that order there is a good chance that you will alter the wrong figure and end up with two X figures or two Y figures.

Standardisation will mean less confusion and it will reduce errors.

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.

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.


Haas Setting Page 103 and Other Settings

Tags :

Category : Haas

On or Offsite CNC Training
Tel: David 07834 858 407

Haas Setting 103

Haas Setting 103, I think this is so cool and is typical Haas. Try changing setting 103, this makes the green CYCLE START only work when it is held in, a really good way to prove out a programmes. Can’t wait to try this.

The settings page on the Haas control is very exciting, as well as Haas Setting 103, you will find a myriad of exciting things that will change the behaviour of your Haas control. Read the manual very carefully before embarking on this journey.

Haas Setting

This is where you can turn on your programme restart which is probably the single most innovative thing on this control, it always amazes and annoys me in equal measure when I see people not using it.

Setting 15 is a great one to use too.

This checks that when you programme your tool length compensation G43 Z3. H01, that this tool length offset agrees with the previous tool call-out (M06 T01).

So if for example you programmed M06 T02 it would throw up an alarm telling you that the H and the T code did not agree.

I am sure you must have changed a tool position and forgot to change the tool length offset number (the H number). Easy done.

It’s what makes us get of bed I often lay awake at night thinking about what you can do with these setting. Mmmm…..

The settings are designed to be changed by the user, so don’t worry too much about changing them.

It’s a good idea to make a note of these settings before and after. Maybe take a picture if you can’t be arsed to learn how to do a screen shot

Or yes you guessed it SHIFT F1 take a look at how to do it for a screen shot on your memory stick.

It’s only when you start getting into changing parameters that you really have to think “am I ready for this Leap Of Faith”

Haas Setting

But nevertheless there again there is some real interesting stuff here, another article maybe? Anyway have fun with this and come back and tell us how you got on.

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.

Services offered at CNC Training Centre

Edgecam programming and training.

Classroom programmer training.

Onsite CNC Machine Training.

CNC Programming and 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.


Roundness How Do You Measure It?

Category : Useful Stuff

On or Offsite CNC Training
Tel: David 07834 858 407

Can You Measure roundness With a Micrometer?

We will get to Roundness but first I am going to ramble on, because I always do, but I often think of when I worked with my dad many years ago.

My dad was a brilliant old school engineer and he worked for Alfred Herberts from boy to man, apart from a brief period in the RAF. In its day Alfred Herberts was the biggest and most successful machine tool builder in the world.

New CNC Training ClassesMy dad finally lost his job and had his pension robbed when AH finally went bust. I was running an engineering company so it seemed obvious to have him working with me.

I learnt so much from my dad about the basic principles of machining (this is the tenuous link to the training courses) .

My dad’s claim to fame was that he worked the first Cri Dan machine. This was an amazing innovative machine that could hold its own, until fairly recently, against a CNC lathe for high-speed threading. There are still a few about now.

New CNC Training ClassesMy dad often joked that he could offhand grind a 1/16 of an inch drill and read a steel rule to a thousandth of an inch which I am sure was bullshit although I would never dare to say.

I remember we were trying to turn and bore some motor bodies on a Mori Seiki lathe and we could not get them round. Anyway he told me to weld up some jaws so that they would fully envelop the part.

RoundnessRoundness

Basically the part had nowhere to go. It was like a big collet and it worked.

Roundness

They are nowadays called pie jaws which you can buy from your local tool supplier or from Gregg’s as part of a meal deal

Monster Jaws sell them

But there was another lesson to learn….

Our inexperienced inspector was trying to measure roundness with a micrometer which I am sure you all know cannot be done.

An argument ensued and profanities were exchanged. We ended up buying a Talyrond roundness checker which is the correct tool for the job.

Roundness

 

As it happens the same thing cropped up in a customer’s only a few months back. I caught them trying to measure roundness with a micrometer. Back to basics again.

These days I have a much better way to prove my point than shouting and swearing. Please note I still make my point by shouting and swearing which us less intelligent folk always tend to do.

This method is cheap  and free of all profanity it cost 50 pence to be precise.

Roundness

 

I threw them a 50p piece (UK Currency) or even a 20p for the real cheapskates. “Is that round” was my question. They laughed.

.

“Here is a micrometer now check it for roundness”.

You’d need one bigger than this.

Mmm it’s dead round when you check it with a micrometer.

The smart arses amongst you will know that a 50p piece is an “equilateral curve heptagon“. And it measures the same across any two points you care to choose. It proves that you can’t measure roundness with a micrometer. Unless of course you think a 50p is round and the earth is flat.

Oh yea and if you were wondering “why the fuck would you make it that shape?” Just try and put a regular seven sided coin in a slot machine.

The Plug

I won’t be teaching you about roundness on my training courses ,that would be silly cos you already know. If you are interested in learning basic CNC Programming for a Lathe or Milling Machine look no further.

The New CNC Training Classes focus very much on the basics giving a solid understanding of the nuts and bolts of CNC programming on an ISO Fanuc Haas type control.

Oh, and you get to use our awesome simulators.

You don’t get all these five star ratings by being shit, so check us out.

See all The Courses

If you want to learn to program CNC Machines

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


Tool Nose Radius Compensation CNC Lathe

Tags :

Category : Fanuc Turn Haas Turn

On or Offsite CNC Training
Tel: David 07834 858 407

CNC lathe tool nose radius compensation, I think that sometimes in life we get off to a bad start with things. I know when I was at school I was convinced that I was useless at French, Physics and all sports.

I just got off to a bad start.

Getting stabbed with a javelin in the foot did not enthuse me with regards to sporting activities.

Tool Nose Radius Compenasation

 

Oh and two of my close friends wanted to see if passing a high voltage though my body would give me special strengths a bit like Frankenstein. Needless to say it didn’t work and to this day I can’t watch those films.

So when you have a bad experience with something it just puts you off.

Maybe when you first tried to use G41 and G42 you got loads of ALARMS. Not to mention that nasty rash that you needed a three month course of antibiotics to clear.

We often find ways around our lack of knowledge or whatever.

I know when I was in France my mate always spoke English in a kind of French accent thinking they would know what he was on about. He would put an “a” at the end of each word.

He would say “doa youa knowa thea timea” and they would say “Va te faire foutre”

Here is the video (DON’T YOU DARE WATCH IT YET)

Sorry about the long intro but I have a record to sell as well.

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

Anyway, Tool Nose Radius Compensation.

People find ways of programming without tool nose radius compensation.

It surprises me when people don’t use it and it is usually because they don’t understand the very simple rules.

Rules CNC Lathe tool nose radius Compensation

The daftest one being, don’t ask it to do the impossible.

So if you are machining a diameter of say 40mm and you move to a bigger diameter 40.5

If your tip radius is 0.8 the machine would alarms out.

You swear at the machine but unfortunately it’s you that’s being a prick. You can’t fit a .8 radius in that gap.

TNRComp

The same thing applies if you machine around a radius that is smaller than the tip radius.

The other common fault is knowing when and where to apply it. (A bit like lip gloss.)

Your shape needs to be one continuous path that does not go back on itself.

No reverse gear.

Tool Nose Radius Compensation

I always say “use it and get rid of it”.

You can’t just move on to another shape.

You need to cancel and then re apply.

If you don’t use compensation your parts are not really correct because you are frigging the figures. You naughty naughty boy.

CNC Lathe Tool Nose Radius Compensation

The other big problem is if you need to change the tip radius and you didn’t use tool nose radius compensation you would have to change the program.

Your program and part will simply be wrong without tool nose radius compensation that is unless you are only machining orthogonal lines. (Some of my readers will need to goggle that)

If your CAD system is not outputting tool nose radius compensation or cutter compensation in milling then you need to look at your post processor.

If you can’t do it get your software provider to help. Believe me they can all output this if they are set up correctly.

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

Please contact me if you require:

  • CNC programming training.
  • Want to learn CNC programming.
  • Fanuc control training.
  • Yasnac programming training.
  • Any type of CNC course.
  • Fanuc training courses
  • CNC lathe training
  • CNC Vertical Machining Centre training

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.


CNC Sub Program

On or Offsite CNC Training
Tel: David 07834 858 407

CNC Sub Program, all CNC machines will have some form of sub programs.

 This article deals with G code (ISO) type programming but most of the features talked about will be available in some form on any CNC control. 

A CNC sub program is a branch from your main program into another program.

After completing this, your control will return to the main program and continue where it left off.

It’s like the branches of a tree.

Sub Program 

Probably the most common use of a CNC Sub Program would be for a tool change position. You could have a sub program which took the machine to a position for tool change. Your machine probably does this anyway but it’s hidden.

The advantage of this is that you could use it for any program and you don’t have to keep writing it. It is going to be very reliable because you know you never touched it. (Honest governor). 

You could use a sub-program for a set of hole positions, call it out once to spot drill and again to drill and again to tap. Just use it as many times as you want.Got to be good for the environment too.

CNC Sub Programme

 

Some controls have internal sub programs Haas and Yasnac as well as Heidenhain and Siemens have this facility.

You can do it on a certain Fanuc controls but it is an option.

It means you can stuff these at the end of your program and jump into them the same way as you would an external one. 

CNC Sub ProgrammeCNC Sub ProgrammeCNC Sub Programme

Why would I want to do that you say?

Easier to manage is the quick answer.

You know when you save your main program there are no pesky sub programs lurking that you forgot to save. They are all built into your main program.

Normally you would call your sub-program once only and you don’t need to tell it “oh I want this once” it says “come on mate I know that I’m not stupid.

But you can call it several times and if you get into incremental programming, and I hope you do, you will definitely find a need for this.

Sometimes with sub-programs it’s what you don’t put in that matters. What I mean is if your milling and you put the feed in the sub-program you are stuck with it. If it’s not there then you can state the feed externally and use a different one every time.

On Machines Like The BMC 800 from Toshiba

Tosnuc 888

This machine has the Tosnuc 888 control.

It uses G72 followed by the dollar sign, oh and for the repeat command it uses L but don’t forget the comma.

G72 $MYPROGRAM , L2

Yes Tosnuc uses anything for a program name up to eight characters. So that it doesn’t get confused by the L you have to put in a comma.

Tosnuc 888

By the way on this control (Tosnuc 888) you don’t use M99 at the end of your sub program you just use M30 and it works correctly.

Don’t try this on your Fanuc or Haas control as M30 means stop and rewind and that’s what it will do. Then it will just sit laughing at you.

Ok now you can watch the video.

CNC Milling sub programming examples.

 

If you liked this video, please don’t forget to subscribe to my YouTube channel by going to: 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.

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.


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407