Category Archives: New Stuff

CNC Milling G02 G03 to Mill a Full Circle

CNC Milling G02 G03

 

CNC Milling G02 G03

To produce a full circle on a Fanuc or Haas G code type programming system is really easy.

Last week I was training four very experienced programmers and I asked them how they would programme a full circle.

The answers they gave shocked me, I had to take out my hip flask and drink a large shot of brandy.

What they were doing was perfectly correct but definitely not the simplest way.

One said he broke the circle into two halves. One said he copied some code he already had in the machine. The other one said he got the bloke who did it in two halves to do it for him. Oh and the other one used I and J and X and Y.

OK so just imagine you want to mill internally around a 40mm diameter circle.

Training Courses Let Me at Em

CNC Milling G02 G03 to Produce a Full Circle, here’s the code.

First in two halves

G0 X0 Y0 S1500 M3
G43 Z3. H01 M8
G1 Z-5. F100.

G41 X20. Y0 D1 F200.    (Apply Cutter Compensation)
G3 X-20. R20.                   (First Half)
X20.                                     (Second Half)
G1 G40 X0 Y0                   (Cancel Cutter Compensation)

G0 G53 Z0

All in one complete with wasted Code

G1 G41 X20. Y0 D1 F200.
G3 X20. Y0  I-20. J0 (Mill Full Circle)
G1 G40 X0 Y0

But this is really all you need

G1 G41 X20. Y0 D1 F200.
G3 I-20.         (Mill Full Circle….. Sooo Simple)
G1 G40 X0 Y0

Remember that song by the Average white Band “Let’s Go round Again”? I used to love it.

Actually I still do, as an old twat I’m allowed to like this shit.

Ok let’s go round again. It’s so easy and it saves leaving a mark.

G1 G41 X20. Y0 D1 F200.
G3 I-20. (Mill Full Circle)
I-20.        (Lets go round again)
G1 G40 X0 Y0

Now if you have a Toshiba with Tosnuc control or Haas or maybe a Yasnac CNC control…..

CNC Milling G02 G03 to produce a full circle you just need this:

G13 D1 I20. F200. (Everything all in one)

                G13 (Counter Clockwise) G12 (Clockwise)
                D1 (Use offset 1)
                I20. (20mm Radius)

G13 does everything. It’s the an all inclusive holiday of circular milling except you don’t gain weight and you’re not pissed everyday.

How cool is that and you even get a tangential approach. At my age you’re glad of all the tangential approaches you can get.

No there is no sexual innuendo here it just means you approach the circle using a circular move. You sort of creep up when it’s not looking.

Know what I mean??

Here is a nice picture to demonstrate.

CNC Milling G02 G03

Think about it, why would we do this?

Well the older and more inaccurate your CNC machine is the more likely it is that your machine will leave a mark at the entry and exit point. This is also dependant on the material and the size of the cut you are using.

A quick workaround for this is to just go round the circle twice (let’s go round again). It very often does the trick.

CNC Milling G02 G03

Oh by the way if I saw a tangential move that big I would think it was a wasted move. (It’s just to demonstrate). You only need a short tangential move to do the job.

The easiest way to programme a tangential approach is like the ones above. Coming in from North, South, East or West on the compass.

Now look at this.

CNC Milling G02 G03

This is the best way, although it’s more difficult to programme.

I think it’s South West on a Compass?? 

 

 

The reason is that there is no axis change of direction and no animals are injured or hurt in any way during the process.

If you watch the movement above and watch carefully what the X axis is doing. It changes direction before it is in contact with the circle. And the same thing on the way out of cut with the Y axis.

Direction Change When Using G02 G03 to mill full circle

When milling a full circle each time an axis changes direction there is a chance you will be left with a visible mark on the circle. These points are North South West and East on a compass.

Watch below to see where these points are. If you have a new machine there should be no visible mark on this change of direction.

On an old machine this can be really noticeable and cause real problem.

CNC Milling G02 G03

 

Circular Motion and Skid Marks

If you have an old machine you will know what I mean. Those little annoying marks where the machine changes direction. If CNC Machines were underpants then these would be the skid marks.

For my American readers in the UK we call those annoying brown marks at the back of your underwear skid marks. I don’t think you get them in America.

 

I have been working on a 12 year old Mazak Horizontal machine recently and was amazed at just how good a circle it produced. It beats the shit out of using a reamer. Oh and you can easily adjust the size with your D offset.

CNC Milling G02 G03

Just a note. If you do use circular milling to produce a bore just remember that if your cutter is not parallel then your bore won’t be either. So don’t use that crappy old re-ground cutter. Try n get the boss to buy you a shiny new one.

 

CNC Milling G02 G03

oh and just one other thing………..

Measure the bore at the top and the bottom.

Simple Full Circle Programme

G1 G41 X20. Y0 D1 F200.
G3 I-20.     
G1 G40 X0 Y0

There are actually four choices which produce four totally different circles.

And potentially a scrap part. So use those machine graphics to check your code if you got em!!

CNC Milling G02 G03

G3 I-20.    (The one on the left and the one we used)

G3 I20.     (The one on the right)

G3 J20.    (The top one)

G3 J-20.  (The bottom one)

Here They Are In Action

CNC Milling G02 G03

 

CNC Milling G02 G03

Click for More on G02 and G03

If you want to do this on a Sinumeric Siemens 840D read this

Thanks For Reading

Don’t forget there’s loads more folks.

And a YouTube channel

Call David

Learn CNC Programming

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.


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Why on Earth would you want to Become a CNC Machinist??

Category : Beginners New Stuff

If someone asked me why I wanted to be an engineer I’d have to be honest and say I don’t know why?

In actual fact it was because I knew I didn’t want to stay at school. They were still a little cross about me putting bromide in the flapjacks and shitting in the glove compartment of the headmasters Reliant Robin.

Anyway my dad was an engineer (Capstan Setter Operator)

Oh and I’d done metalwork at school. So I thought “fuck it” let’s have a go.

I applied for a few jobs in Coventry which was the manufacturing capital of the universe in those days.

I ended up at Rolls Royce. Anyway I’ll cut this short because I hated it with a screaming passion.

Bearing in mind this was in the days when kids obeyed their parents, so I could not leave before I completed my apprenticeship.

A little footnote here, my parents were real nice people but as was the practice in those days, they tended to beat the livin’ shit out of their offspring for the tiniest of misdemeanours.

What I mean is I’m sure that had a bearing on things.

Anyway I’d discovered rock music and I wanted to be a Rock star. What attracted me to this was the fact that they seemed to be shagging all the time and spending loads of cash.

I hadn’t done much of either of these things yet but relished the idea of trying.

My mate happened to mention that I was a good singer cos he heard me singing along to the radio so he gave me a job in his band as lead singer and front-man.

From this point onwards I was hooked. My first band was called RIP and we were shit.

We didn’t know we were crap so we forced our music onto our poor innocent unsuspecting audience’s night after night.

 

 

At one such gig I was spotted by a professional band who offered me a full time singing job for more money than I could spend.

It transpired that it was my band that were shit and that I was a half decent singer.

The old man went fuckin’ bonkers and said I couldn’t leave Rolls Royce.

As I was very close to the end of my apprenticeship and after many arguments he let me leave once my apprenticeship was over.

I managed to stay professional as a singer working in nightclubs all over England for the next five years.

I loved it and made good money but couldn’t help thinking their was more.

Soon, there was more, I got offered a job as a backing singer for a 70’s pop star.

This job turned out to have it’s perks but I soon found myself constantly on tour without a pot to piss in.

I left and went back to the nightclub scene.

Soon potential bullshit fame came knocking again when I was offered a job in an established rock-band. They had already had a few mildly successful records under their belt.

They had toured the world supporting the likes of AC/DC and Black Sabbath to name a few.

Completely sucked in by all this I joined, convinced I’d be living the rock n roll life style as soon as the next album was released.

It’s a long story but I ended up skint and never finished the record.

Fanuc Yellow Manuals Saved My Life

I knew I had to work because by now I had a wife and a son who needed a place to live and food.

My only option was to go back to Engineering. I think at the time I would rather perform my own appendectomy than return to that environment.

I removed my appendix and once I recovered started applying for jobs. Surprise Surprise I got them all.

This was because I had done my apprenticeship at Rolls Royce. I always went on to explain to my future employers that I was basically a fuckin idiot but they were so impressed by the Rolls Royce pedigree they still wanted me.

Two Hundred Quid a Week

They stuck me on a Horizontal milling machine and although I say it myself I was good. Soon I got on Bridgeport BRJ’s and stuff and I was doing well. I was working probably 70 plus hours a week and couldn’t believe how much cash I was making sometimes as much as £200.

Soon I started working as a singer in my spare time but it didn’t help being torn between two cultures.

It resulted in my often not turning up for work after a late night with my band.

Happy Birthday

I was my birthday just after Christmas.

I’m not telling you the date because I will probably be inundated with birthday cards and someone will steel my identity only to find they are worse off than if they had kept their own.

The boss called me into his office “David” he said “the other two directors have advised me so sack you”.

It was like the good news bad news thing.

“Anyway I have decided not to”.

(Sorry I cant keep doing the speech marks thing so I’m going to tell you what he said.)

What he told me was that he wanted to try me on the CNC Machines because he thought I’d be good at it. He did add that it was definitely my last chance. That’s where it all began.

Fanuc Yellow Manuals Saved My Life

I know I’ve used that title twice (I’ll have the S.E.O. police on my back), that’s an in joke if you know about search engine optimisation.

Anyway these manuals really did save me.

The machine they started me on was a Matsuura 710 with a Fanuc Control.

I was hooked. I just loved it so I took the big thick yellow manuals home and studied them.

While I was at work I constantly watched what the machine was doing and compared it to the program. I then checked it all out in the Pidgin English manual and made sense of it.

Picture of a Pidgin

The manuals were really shit in those days. They were really badly written and some times just wrong.

So while the other operators were reading the Daily Mail, scratching their arses and developing right wing, racist views. I was rapidly learning how to set operate and program CNC machines.

Every time my boss got a new machine guess who got to go on it?

Two years on I was running the whole CNC department. I had my own great big yellow Fanuc computer to program on.

I have continued to be fascinated by CNC machines to this day, that’s about forty years.

For the last twenty five years I have had my own business training people on CNC Machines.

I have had the pleasure of being involved in loads of exciting projects from making moulds for Viagra Pills to cutting Weetabix to writing macros to make wedding rings.

I still do loads of music and recording and all sorts of stuff but the mic I prefer to be holding is this one

 

 


CNC Turning Using T00 to Cancel Offset

CNC Turning Using T0000 to Cancel Offset

This article is about CNC turning programs and the use of T00 or T0000 to cancel the tool offset.

My daughter is autistic, and one of the things that she has taken great delight in doing during the Covid lock down, was picking up on the stupid nonsensical phrases and expressions that neurotypicals have created in their non-binary brains.

In case you don’t already know neurotypical is an expression used by autistic people to describe non-autistic people. I still haven’t worked out if it is a term of endearment or mildly offensive but I don’t really care anyway.

Anyway, whilst I was writing an article about using multiple offsets, yet to be completed, I suddenly realised why it is a good idea to cancel the tool offset on a CNC Lathe (more about that later).

We were sat drinking tea in our summer house, me my wife and my daughter.

I know it sounds grand but really, it’s not exactly a summer-house it’s more of an old shed. It’s one I converted to compete with my neighbours when they had a fancy new summer house built.

Just a few finishing touches needed

I was talking about this article in rather abstract terms as my wife and daughter are none engineers but always pretend to be interested in my rantings.

Anyway, with reference to tool offset cancellation I said “you learn something new every day”.
My daughter immediately retorted “oh so what did you learn yesterday?”. Fortunately, I could think of something I remembered learning that there are 206 bones in the human body, so I used it.

 

I need to add a this point that my daughter is not an autistic savant and we still need google and takeaway menus. She’s not like that bloke in “Rain Man” who can remember every number in a fuckin’ phonebook.

The expression is “if you know one autistic person, you know one autistic person”

Anyway with her autistic brain I should have known this wouldn’t suffice. “The world tilts at 23.5 degrees on its axis” I quickly added.

“You already knew that” she said.

(Please ignore this if you think the world is flat as I know a lot of my readers do)

She insisted that I should go back at least three weeks in order to prove the validity of the statement.
I decided to give in and the conversation ended by me admitting that all neurotypical people are stupid.

In our household that’s a result and a common strategy we use to resolve this kind of conflict.
Such idioms as “washing your dirty laundry in public” are just banned unless you think you have a simple way of explaining it.

A friend once exclaimed that “there is more than one way to skin a cat!” and as a result required a police escort to get home (joke).

My daughter has a cat and her whole existence revolves around it. I’ll let you imagine her reaction.

Using T00 to Cancel tool Offsets

Anyway, this was going to be an article about using multiple offsets in a CNC Turning program.

They are a bit like multiple orgasms but not nearly as much fun. Anyway I had this eureka moment with regards to T00 and ditched the whole thing.

On a CNC Lathe we use a four-digit number when we do a tool change.

T0101 for example.

The first two digits make the turret index T0101 (index to tool 1)

The second two T0101 will call an offset. You will note I said an offset because it can be any.

By the way some controls like Haas omit the first zero on a tool change.

CNC Turning
Geometry offset page on a Fanuc CNC Lathe

In the above case it’s offset 1 but it could be T0112 this would index to tool 1 and use offset 12.

CNC Turning
Geometry offset page on a Fanuc CNC Lathe

Anyway thinking about these four digit numbers made me think about when you use zeros.

On older machines you used to have to cancel the offset by stating T0100 or much safer T0000. Otherwise the machine would add the new offset to the old one and a shitstorm would ensue.

I had consigned, this now inert procedure, to the CNC Turning equivalent of room 101 or at least the annals of CNC History. Anyhow, it seems there is life in the old T000 dog yet.

I love this puppy I’m going to use it in every post from now on

Now this is where that eureka moment happened in my summer house / luxury shed and I wrongly claimed to learn something new every day.

The Theory

When you write a CNC Turning program you can either return the tool back to the machine reference or return it to a tool change position.

Now the first option (reference) is OK if it is a small a machine. In other words it’s not gonna take it a week to get there.

On a big machine you would have to navigate around all sorts of shit like the tailstock or a steady or the boss’s Bentley. And it would almost definitely be a waste of time.

Soooo normally we would use a tool change position. This would be making use of G53

CNC Turning

Using G53 for tool change position

CNC Turning G53

Because the G53 uses the machine coordinate system it will be the same place for each tool.

CNC Turning

You could then put this position in a sub program. That way it would be the same for every tool. If you needed to change the position you would only need to change it once in the sub-program.

I will forgive beginners for thinking you could just rapid each tool to the same position away from the work piece.

For example G0 X100. Z100. for every tool.

CNC Turning
Sending a drill to a position
CNC Turning
Sending a turning tool to a position

Just look at the turret position in the pictures above. Although the X Z position of both tools is the same there is a huge difference in the turret position.

This could work but when you pick the program up again maybe months later. The tools could be different lengths the tool-change position would have to be altered.

Your drills may not be the same length and the machine may even over-travel when you try to move it to your old tool change position..

Using a G53 you can always allow for the longest tool and know your index position is safe.

Remember G53 does not consider the tool offset or the work offset. To be honest G53 is the selfish bastard of the G codes it just does not give a flying shit what offset is active.

Eureka

Anyway, thinking about cancelling tool offsets it gave me an idea.

If at the end of each CNC Turning tool you cancel its offset. you could send it to a known position.

Because no tool offset is active this would always be the same place.

Some of you probably already do this but honestly, I never thought of it.

I intend to program this way from now on.

CNC Turning
Using T00 for your tool change position

You should be able to use T00 or T000 to cancel your tool offset.

Don’t Do This (I really shouldn’t be telling you)

You can use the tool number plus the zeros so to cancel T0101 you could put T0100. I strongly recommend that you do not do this because it introduces an index move and therefore another potential collision.

You would need to remember to change this on all tools if for some reason you moved the tools around in the turret.

Oh yea about the multiple offsets. I will be writing and article on it when I can be arsed but in the meantime here is a video.

Thanks for reading my articles (no flies were killed in the writing of this article) except for the little bastard that’s flying around my office.

I will ask it politely to leave or else.

 


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407