Category Archives: Fanuc Turn

G84 Rigid Tapping Program Example

G84 Rigid Tapping Program Example

For On-site CNC Training Contact David: 0783 858 407

G84 is a tapping canned cycle.

G84 taps holes.

This simple part has four M12 holes, drilled, countersunk and tapped. The datum is the centre of the part so the holes positions are.

X55. Y55.
X-55. Y55.
X-55. Y-55.
X55. Y-55.

G84 Rigid Tapping Program Example

G84 Rigid Tapping Program Example

Here is the CNC code

G84 Rigid Tapping Program Example

The machine first moves to X-55. Y-55. and rapids the Z axis to 3mm above the part.

G84 Rigid Tapping Program Example

The G95 selects feed per revolution which means we only need to program the tap pitch for the feed-rate.

See full rigid tap G84 Rigid Tapping Program Example

The M29 engages the rigid tapping mode and the S800 is the speed. (It does not start the spindle)

It then rapids the Z axis down to 1mm above the part R1.

The G84 Cycle instructs it to tap a hole 17.mm deep (Z-17.) at a feed of 1.75mm per revolution (F1.75) 

So it feeds at 1.75mm per revolution with the spindle turning clockwise to depth.

At the bottom of the hole it reverses the spindle and feeds back to the initial point.

This initial point was in the line.

G84 Rigid Tapping Program Example

This is because of the G98.

If it were G99 it would return to 1mm above the job (R1.)

See explanation of G98 and G99

Once the cycle is active each time it sees a position it repeats the tapping process.

When the G80 is programmed it no longer taps holes.

Single block and feedhold do not work in a tapping cycle.

Why? You ask.

IT BUSTS THE TAP

Now watch the video to see it all in action (not breaking the tap).

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

 

 

 


G0 Cancels Canned Cycles

G0 Cancels Canned Cycles, this is not a news flash it’s always been the case.

G0 Cancels Canned Cycles

O0001(G28 Example)
(PROGRAMMED BY ANDY MURRAY)
G21 G90 G40

T01 M06(20MM ENDMILL)

G90 G0 G54 X200. Y0 S1500 M3
G43 Z3. H1 M8
G81 G98 Z-5. R1. F100.
X100.
X50.
G0 X25. (No hole drilled here cycle would be cancelled)
G80 (This also cancels the cycle)

“Read More”

G28 G53 Zero Return

G28 G53 Zero Return

CNC Training (Call David: 07834 858 407)

G28 is used to send a machine to Zero return for a tool change or at the end of a program.
G28 G91 Z0                   (Z axis moves up to tool-change)


G28 G91 X0 Y0 Z0        (All three axis move to their respective zero return positions)

I know some of you don’t like three axis moves like the one above. If it don’t hit anything it’s just fine “Get Over It”

Below are the two ways of doing this.

Ignore This If You Get Bored Easily

G28 actually means return to the zero point via a reference point.

If you programmed
G28 G90 Z0 or you forgot the G91 this means return to zero point via a reference point. The reference point is Z0 so the spindle would rapid to Z0 (Bang) and then move up to reference return point.

G28 G53 Zero Return
That’s why if you have single block on you will notice this is two presses of the cycle start (two blocks).

Therefore if we use G28 G91 Z0 the first press will take it to the reference point which is incrementally zero form where you are (no move) the second press move to zero (no collision)

Using G53

Some older machines won’t have this so try not to get over excited.
G53 uses your absolute machine position (Machine) this means all moves are from home position and are not affected by datums (G54 etc) or tool length offsets.

It is one of the very few non modal commands so you can’t write

G53 Z0
X0 Y0 (this will use works offset not G53)
You need to write
G53 Z0
G53 X0 Y0

Advantages Disadvantages (G28 G53 Zero Return)

G28 uses G91 incremental so you must remember to write G90 (absolute) for your next command. In fact many a collision is caused by misuse of G28.

G53 is best if you have it just remember it is non modal.
So you write it in each time you need it.

Note:
Some machines have return to tool change built into the tool change line.
T01 M6


On a Haas machine for example where the return command is built in you would not need to send the Z axis home.
I recommend that you always put one in.
G53 Z0
T01 M6
If you are in single block you can stop before the tool-change if you wish.

Also I know someone who got into the habit of doing this and crashed a Fanuc Controlled machine that needed the command. (If you read this you know who you are)

G53 has another really good use and that is if you want the machine table (on a vertical machining centre) to move to a standard position to do things like changing the parts. It will always put the table in the same place regardless of work offset.

Bare in mind that if you put a position in that is relative to your work offset and not use G53 then the next time you set the fixture up your machine may over-travel because the fixture is in a different place.

If you read this article you will see how it could be used to set a vice in a known position regardless of datum.

Remember G53 is a position from the machine zero, it does not take into account the tool length offset or the datum. The other important thing is that it is non modal. That means you will need it on every line that you wish to use it for.

 

On Machines Like The BMC 800 from Toshiba

Tosnuc 888

This machine has the Tosnuc 888 control.

Tosnuc 888

For this control use G73 instead of G53.

If you have any questions about G28 G53 Zero Return or you are affected or have been affected by any of the issues in this post please contact me 07834 858 407

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.


How to use G50 on a CNC lathe

CNC Turning Basics G50 Speed Clamp

How to use G50 on a CNC lathe

How to use G50 on a CNC lathe

How to use G50 on a CNC lathe.

G50 in a turning program is a speed clamp. The machine accelerates up to the speed you set (G50 S2000) and will not go any faster.

Now before I get arrested by the “Correct Word and Grammar Police” I know it’s not actually a clamp. The truth is it’s just what everybody calls it, so get off my fuckin case.

Black dog his name is Boris

Anyway if I start to call it something else all my CNC mates (and I do have some) will be confused.

Just check me out on LinkedIn. Anyway as I was saying my mates wouldn’t know what the fuck I was on about.

You must program a G50 before each tool and at the beginning of the program for safety reasons which I will explain later.

It’s Modal

G50 is a modal G code (it stays active). If you have a program where you do not want to clamp the speed you must still put the G50 at the beginning of the program (set the clamp to the machines maximum RPM).

Otherwise it may pick up the G50 from the last program and you may not get the RPM you want. It can have the effect of slowing down production because the speed is being restricted and you didn’t realize.

Don’t use someone else’s G50 get your own.

You wouldn’t wear someone else’s dirty pants. (Americans call underpants underwear I think)

 

These are mine (sorry I din’t get time to wash them).

Modal G code explanation here.

Now Here Is Something You May Not Know

Historically G50 was used to set the machine datum. This still works so do not put any X or Z figures on this line. You will get some weird shit happening if you do. Oh and you will probably trash your 100 grand machine.

Anyway how to use G50 on a CNC lathe

G50 S2000 (SPEED CLAMP 2000 RPM)

Some G code systems, or depending on parameters, may use G92 instead of G50. This is not very common but it works exactly the same way.

On a Fanuc control they are called A type and B type G codes and depends on machine tool builder. Most of the G codes remain the same but proceed with caution.

It is particularly useful when you are facing a part using G96 (constant surface speed). When the tool reaches the centre of the part the machine will be running at maximum RPM. This could be very dangerous on large or out of balance components. When you set a G50 speed clamp, once the machine reaches the clamped speed it will go no further.

Here is a tutorial video about G96 and G97

RULES

  1. Use a G50 at every tool-change
  2. Use a G50 at the beginning of a program (even if you think it’s not needed)
  3. G50 S2000 (Only G50 and speed on one line, nothing else)
  4. There is no rule 4
  5. Never eat yellow snow.

Toshiba VTL CNC

This is a Toshiba VTL (Vertical Turning Lathe).

If you want to buy one or fix one go to Leader CNC

Now imagine this revolving too fast you would soon need their services oh and a good trauma team.

More CNC Turning Help (G70 and G71)

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.


Jumping Sections of Programme Using M99 and Block Skip

 

Click for M99

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

Contact: 07834 858 407

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