Category Archives: Fanuc Turn

G74 Drilling Cycle With G96

Tags :

Category : Fanuc Turn Mazak Turn

G74 Drilling Cycle With G96

G74 Drilling Cycle with G96.

On a CNC lathe G96 is used for most machining. It was amazing in the old days when we suddenly discovered G96.

Because you are using a constant surface speed the metal cutting is consistent so you get a great finish.

The Black Art Of CNC Programming

CNC Programming was a bit of a black art back in the old days and generally speaking we used G96 for everything except for screw cutting and drilling holes on centreline (G74 Drilling Cycle).

When CNC Programming a drilled hole you would always use G97, (this means the speed is in RPM).

If you were to program for example G96 S50 M3 and then rapid to X0 and Z3. ready to drill a hole the machine would just go to its maximum RPM. This would be the speed you set in your G50. (The G code used to restrict the speed.)

Oh by the way that 50 meters per minute is for a B & Q drill.

Don’t get me wrong I love B & Q products but HSS drills are not for grown up engineers they are great for metal work classes at school and making a coffee table for the misses but it’s time to join the big boys and spend some money.

I Digress

Anyway the machine would calculate the speed at its current diameter. So at zero the spindle would always be flat out.

So you could say G96 is pretty useless for a drill.

But you would be wrong!!!!!!

Take a look at this bit of code.

G74 Drilling Cycle

The idea is to send the machine to the drill diameter. Because the machine is in G96 it calculates the correct speed. When you then issue G97 it fixes the speed. Now when you move to X0 it has the correct speed.

Let The Machine Do What It’s Good At

Mmmmmmm… So all you need to do is send the drill to its diameter and the machine does the arithmetic.

Let the machine do what it’s good at and you do what you’re good at.

What are you good at by the way?

Threading is the same if you were machining an M20 thread at 100m/min calculate the surface speed.

(This is the quickest way I have seen)

20/314.2 =.06365

100/.06365 = 1571 RPM

You could do the same thing let the machine do it’s shit.

Rapid to the diameter of the thread then program G96

G0 X20. Z5.;
G96 S100 M3 (Start Spindle at 100 metres per min);
;
G97 (This will swap to RPM and clamp the speed at the correct RPM);
X21.;
;
G76 P010060 Q20 R.02;
G76 X16.93 Z-25. P1534 Q485 F2.5;
;

ETC

So with this bit of code you can get the machine to calculate your speed.

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.

Or call us

If you want to learn to program CNC Milling Machines

Look no further Contact CNC Training Centre

 

 


G94 Facing Example (Sample Program)

G94 Facing Example

G94 Facing Program Example

G94 Facing Example

:Blank Size: 65mm Diameter 85mm Long

:Final Size: 65mm Diameter 82mm Long

This program will rapid to X66. Z3. it will then machine the face down to Z0 in three cuts. The first G94 line tells it to face past centreline to X-1.6 at a feed-rate of F.2 The Z axis moves to Z2.

Cuts
1: Z2.
2: Z1.
3: Z0

The cycle stays in the control until cancelled by a G0 rapid command.

So it remembers exactly what you told it, a bit like my wife, she keeps reminding me of the time I got so hammered I pissed in her wardrobe (some of the shoes still smell to this day).

The G0 G28 U0 W0 will move the turret back to machine reference point.

The G0 will cancel the G94 Facing cycle.

G94 Facing Example Is It Any Good?

Well personally I think it is.

Now I’ll tell you why. You could say it’s really easy to write the program to face a part.

G0 X50. Z0
G1 X-1.6 F.2
G0 X50. Z2.

So that’s easy to do but….

Some one wrote a comment on one of my posts the other day and he started it by saying “back in the real world”.

Can’t lie and say it didn’t piss me off but being the mature well balanced man that I am I ignored it.

Now my inner nasty, immature, unbalanced me said “look mate I was in the real world when you were still shitting yellow”. Obviously I didn’t post it and if your reading this now thinking it’s you, well it isn’t.

Anyway as to the G94 Facing Example

In the “real world” you get to the end of the batch of parts and find that one of them is way too long and you need to face a shit load off the front.

Now had you used the cycle as below and got into the habit of always using it.

G0 X50. Z3.
G94 X-1.6 Z0 F.2
G0 G28 U0 W0

The alteration would be really easy.

G0 X50. Z12. (Imagine You Have An Extra 12mm On the Face)
G94 X-1.6 Z10.5 F.2
Z9.
Z7.5
Z6.
Z4.5
Z3.
Z1.5
Z0
G0 G28 U0 W0

Rapid Move Cancels G94

Note don’t forget you must have the G0 rapid move at the end to cancel the G94.

(Just like G0 cancels a canned cycle in milling)

Don’t be tempted to put G0 in the moves as the control will just wiz around in Z and sit there laughing at you.

G0 X50. Z12. (This is what not to do)
G94 X-1.6 F.2
G0 Z10.5 (NO NO NO NO NO NO)
Z9.
Z7.5
Z6.
Z4.5
Z3.
Z1.5
Z0
G0 G28 U0 W0

See full explanation

Using G94 on a Haas Lathe

Thanks

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

If you want to learn to program CNC Milling Machines

Look no further Contact CNC Training Centre


How G28 Works. Why two pushes of CYCLE START?

How G28 Works

Every wondered why G28 takes two presses of the CYCLE START Button when you are in single block.

How G28 Works

Be amazed you are about to find out.

One of my pet hates, and at my age you have thousands, is when people say

“Oh I don’t know we’ve always done it”

I just think, well you are stood at this machine for eight hours a day why not find out what’s going on.

How G28 Works

How G28 Works

G28 tells the machine to return to its home position. This is usually a convenient point for a tool change.

The command on a machining centre looks a bit strange.

G28 G91 X0 Y0 Z0

Why G91?

Well G28 means return to your home position via an intermediate point.

So if you programmed G28 X0 Y0 Z0 then your machine would rapid down to the workpiece (probably crash) and then go to it’s home position.

What G28 G91 X0 Y0 Z0 tells the machine is this……

  • The reference point is incrementally zero from where you are.
  • So the machine does not move.
  • Then it goes to it’s home position.
  • Hence the two presses of cycle start.

On a CNC Lathe we use U and W for incremental. Read this post if you don’t know.

So if you programmed G28 U0 W0 your X and Z axis would return to their home position. This being because the reference point is incremental.

If you programmed G28 X0 Z0 you would probably get a collision like below.

Well at least it went home.

First move is to X0 Z0 which is the front of the part. (This is your reference point.)

The machine would then move back to zero return.

G28 is fine on a CNC Lathe but on a CNC Machining Centre you must remember to change back to G90 (Absolute).

My preference is to use G53 to get back to your home position.

Read this article if you never heard of G53.

Please note some older machines don’t have G53. Oh and it is classed as an option!

If you are affected by any of the issues raised in this post or need CNC Training then contact us.

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.

Or fill out the contact form below

 

 

 

 


Step Through All Fanuc Programs

Category : Fanuc Mill Fanuc Turn

Step Through All Fanuc Programs

In the edit mode if you type letter O then press your lower cursor you can step through all the programs in the machine.

This was really useful in the old days (for old gits like me) because there was no directory screen on the old Fanuc 6M control.

But it still works.

Heidenhain Training


Letter O Head of Programme

Letter O Head of Programme

There is a quick way of doing most things on computers and CNC Machines

It’s just being bothered to first find out what they are but most importantly force yourself to keep using them until it becomes habit.

To get to the head of your Fanuc Programme type in letter O and press your upper cursor.

Letter O Head of Programme

It beats the shit out of pressing reset which can stop everything if you press it by accident.

Classroom Training

Mazak Training


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407