Month: February 2022

G94 Facing Cycle CNC Turning

G94 Facing Cycle CNC Turning. Facing on a CNC Lathe is no big deal. You just call out the tool, start the spindle, rapid to the part n face the job.

G94 Facing Cycle CNC Turning

 

G94 Facing Cycle CNC Turning

But then what do you do when you get to the end of the batch of work and find you have got some parts with extra metal on the lengths.

G94 Facing Cycle CNC Turning

Now you need to add a lot of extra code. This takes a while and it’s easy to make a mistake.

So enter our Knight in Shining Armor

G94

This is how it looks for the first cut

So if you got into the habit of usingĀ G94 Facing Cycle CNC Turning.

When you want to add more cuts it’s easy, piss easy.

So if this blank had 3mm on the face it’s really easy to add some more cuts.

G94 Facing Cycle CNC Turning

Oh just one other thing

This cycle is modal. Notice how all we did was add some Z figures and it just did the facing.

Well just like your wife when you got drunk 15 years ago and urinated in the bed. Well……

It remembers.

So that means we need to stop it. Just by adding a rapid command G0 or G00. It stops. It forgets.

Oh and don’t try n space the code out here because if you leave an extra block in it will face the part again.

I think I need to be honest with you here and confess that until recently I have never seen the point of this G94 code. But now I have seen the error of my ways and I think this demonstrates just how useful it can be.

Now I know some smart prick will say “Oh well I just use G71” . Yes that’s fine but don’t you think it is rather complicated just to face the front off a part that’s too fuckin long?

Interested in classroom CNC training courses?

Look no further Contact CNC Training Centre

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

 

 


Single Block CNC Beginners Guide

Category : Beginners

CNC beginners guide (using Single Block)

CNC beginners guide

This article CNC beginners guide, is about Single Block and how it is used.

When you write a CNC programme it will consist of blocks of programme.

What is meant by a block?

Well it’s everything until the control sees a semicolon ;

If your not sure what a semi colon is it’s when you have had an operation to remove half your large intestine.

The semicolon is called an end of block or EOB


CNC beginners guide

Try not to confuse this with a line of code.

Depending on how your screen is set out a block could be more than one line. The control reads everything until it sees the semicolon or EOB (End of block).

In most cases and on most controls it does not matter what order the code is in. The main reason to follow a set pattern for your code is to make it easy to read.

Try to always put things in the same order.

In one block of code you can have loads of stuff.

You could write:

G0 X50. Y50. S1500 M3;

But if you wanted you could put the S1500 M3 on a different line.

When doing this, think about why you might want to do it. For example you may want to get the tool ready to use before switching on the spindle or the coolant. This saves the excitement of the spindle whizzing round when proving the programme.

Oh yes and you could get fuckin soaked.

Most of this applies when you first test your programme. This is when we use single block.

The Switch

To run a programme in Single Block we have to throw a switch.

CNC beginners guide

This can be a normal Single Block switch or a button or a soft key. Read the article below to learn how to prove out your CNC programme in Single block.

 

Read this if you don’t know how to prove out a CNC programme.

Once single block is enable the machine will do exactly what it says on the tin.

It will run that block and wait for its next command like a good doggy.

The beauty of this is you only need to think about one block.

Now I don’t want to appear sexist at this point but I recon if my wife were a CNC Operator she wouldn’t need single block. Not only can she do two things at once, which I can’t, but my wife also has an uncanny knack of knowing what’s going to happen next too.

For those with no extrasensory powers just switch on the fuckin single block.

If you turn single block off the machine will still stop at the end of it’s current block and wait for another press of the CYCLE START button to carry on.

Also when you first turn single block on it will stop at the end of the block it is executing.

CNC beginners guide

Those of you who read my articles will know that I love these old Matsuura machines (they make me feel young again).

You know when you’re getting old when you keep asking complete strangers “how old do you think I am”

I did it in Barwell the other day. The woman in the Coop said “piss off you silly old bastard”

What No Telly Screen

Anyway these machines have a one line display so you have to step through to read each line. You can only see little bits of code.

I once input a whole programme into one of these controls not realising I had no end of blocks .

(From now on I ‘m not saying fuck in my articles, I will refer to it as the F word like these posh people on the telly)

On this occasion I said the F word after taking about an hour trying to realise why the programme wouldn’t work.

The whole program was in one block!!!

 

Don’t mix your G Codes

(here is a nice way to make a John Collins if your bored with this CNC Shit)

You can even make this with non alcoholic Gin. Yes it’s true (non alcoholic gin) my wife bought a bottle the other day. Now I happily went along with this scenario till I found out it was fourteen quid a fuckin bottle.

Absolutely no way, no hang over, no phone call from your mate saying you shit in his cat tray. No no none of that, honestly I give up.

Let’s continue with thisĀ CNC beginners guide to CNC programming.

In one block of CNC code you can only have G codes that belong to the same group. I’ll tell you about this in another article when I can be bothered to do it. Anyway it’s easy, they can’t argue with one another. You can’t put G1 and G0 on the same line for example because they are in the same group.

You can’t say feed and rapid in the same line. That would be stupid.

Obviously you can’t repeat things like having two speeds in the same block.

G0 S1200 X50. Y50. S2000;

I don’t think anyone who reads my articles is that stupid….. Except for that bloke in Bolton, but I think he took up plumbing in the end.

Heidenhain

If you have a Heidenhain control the single block works the same. You select Full Run or Single Block

CNC beginners guide

You don’t hear me criticise Heidenhain very often cos I love em. Brace yourselves cos I’m about to.

Those bloody icons.

They all look the same. Every time I come back to working on Heidenhain I can never remember which is which.

I sometimes suggest making little sticky labels to go underneath to identify them.

 

This one will do wonders for your relationship with the guy on nights.

Before You Go A Few Question about Single Block

  1. What about a tool change?
  2. What about a canned cycle?
  3. What is the meaning of life?

Ok the last one is easy. Question 3 ….. the meaning of life is 42Ā 

Right, Now the Difficult Ones.

Your tool change M06 is probably aliased to a macro. This means that a programme is running in the background that you can’t see. Single block may well be inhibited. This means one press of the CYCLE START button will do the tool change. Sometimes however single block works. In this case it will take loads of presses to get through the tool change. Just be patient.

This is the sort of thing that’s running in the background.

CNC beginners guide

I won’t go too much into this, after all it is a CNC beginners guide.

Canned cycles depend on parameter settings. It will normally be one press to rapid to the tool down. Then one press to drill the hole. It may or may not need another press to bring the drill out of the hole.

The exception is G84 Tapping Cycle. You definitely wouldn’t want single block to work on this. Imagine the tap gets to the bottom of the hole and sits there waiting for a push of the button.

Sometimes feedhold is inhibited too in a canned cycle.

Hope you enjoyed this CNC beginners guide

Services offered at CNC Training Centre

Edgecam 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.


 

 

 

 


G76 Threading Start Point (Where Do you Start?)

Tags :

Category : Fanuc Turn

G76 threading start point, when you use a G76 threading cycle on a CNC Lathe the position that you start the tool at is really important.

This is the position you rapid the tool to just before you call the G76 threading cycle.

For example how does the control know if you are producing an internal thread or an external thread.

Actually I learnt this the hard way. It was on an old machine.

G76 threading start point

Maybe not that old. Anyway I couldn’t get it to perform a G76 threading cycle. It was cutting an external thread but the tool was working it’s way outwards.

What to do Next?

Everything rushed through my head, senile dementia, flashbacks from a misspent youth, did I feed the dog?

Anyway I suddenly realised I didn’t have a dog and that the start position of the tool was wrong.

G76 threading start point how was it wrong?

Well that’s how the machine knows whether you want an internal or external thread. Your start point needs to be inside or outside the thread. What a fuckin dipstick I was.

I had the tool just below the external diameter of the thread. If you do this the machine thinks the thread is internal and therefore cuts outwards.

Correct

G76 threading start point

So providing the tool is initially placed outside of the maximum diameter it will do exactly what you want.

IncorrectG76 threading start point

Put it here and you are in deep shit. The tool will work from this position backwards and you will be totally confused.

Don’t say I didn’t warn you.

Here is a example of a 20mm external thread.

G0 X21. Z3.
G97 S1200 M3

G76 P010060 Q20 R.02
G76 X16.93 Z-25. P1535 Q485 F2.5

This thread has a core diameter of 16.96 (X16.93) the thread depth is 1.535Ā (P1535).

Soooo…… 16.93 + (1.535 x 2) = 20

G76 threading start point

Therefore you must first position the tool outside that 20mm diameter.

If you don’t do this then your tool will try and cut away from the 20 mm diameter.

Wrong as Below

G0 X19.95 Z3.
G76 P010060 Q20 R.02
G76 X16.93 Z-25. P1535 Q485 F2.5

So be careful because you might not notice that tiny amount.

Of course if you have a Siemens control Sinumerik 828 840D then this does not apply because you have to specify if the thread is internal or external in the cycle.

Front Clearance (G76 threading start point)

Now let’s think about how far in front of the part you need to be with the threading tool.

Maybe you never thought about it?

Well now’s the time.

Spare a thought for people like me who lie awake at night ruminating about these things. If you don’t know what ruminating means then maybe you shouldn’t be reading this article. Or maybe you just like the pictures.

This is my puppy his name is Donald he is learning to programme a G71 woofing cycle.

Lets take another look at the code.

G0 X21. Z3.
G97 S1200 M3

G76 P010060 Q20 R.02
G76 X16.93 Z-25. P1535 Q485 F2.5

The spindle starts at 1200 rpm and the feedrate (which in the case of a thread is the pitch) is 2.5 mm per rev.

2.5 x 1200 = 3000

So the machine will be feeding at 3000 mm per minute along the thread.

So at the start of the thread you have 3 mm of clearance (Z3.)

Therefore in that 3 mm the machine has to accelerate up to 3000 mm per minute.

If it does not accelerate quick enough you will get a pitch error, your thread will be wrong.

Strange Behaviour

Ever had a thread where you can’t get the gauge on then suddenly it goes on only to find the thread is really loose further down?

Maybe you had a pitch error.

Taking it further if I double the speed

G0 X21. Z3.
G97 S2400 M3

G76 P010060 Q20 R.02
G76 X16.93 Z-25. P1535 Q485 F2.5

2.5 x 2400 = 6000

Now I need to feed at 6000 mm per minute so this pitch problem will be twice as bad.

Can you see where this is going?

Eat more fish.

No not really, well it is good for you but it’s not what I meant.

The faster you go and the courser your thread pitch the quicker the machine will have to feed.

If you have a coarse pitch thread in aluminium you probably will end up with a super high feed-rate your machine can’t even achieve.

This will all depend on the age of your machine but you must always make this calculation just in case you are trying to cut a thread at the speed of light.

G76 threading start point in Z Axis

This start point distance is really important because it will allow the machine to get up to speed.

I can’t give you exact figures for this, not because I can’t be arsed but because it will vary depending on your machine.

The machine will have a maximum feedrate and it will be in the manual.

You know that old book that you use to propĀ  the door open.

The bigger you make this Z figure the more time your machine will have to get up to speed.

So don’t forget if you are starting at Z1. then the poor old machine doesn’t have much time to get up to speed.

 

G76 threading start point

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.

Siemens 828 840 Sinumerik Training

Or call us

If you want to learn to programme CNC Milling Machines

Look no further Contact CNC Training Centre

 

 

 


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407