Month: May 2022

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


CNC Program Quiz What’s Wrong?

Category : Mazak Mill

CNC Program

I got a desperate call from a customer asking me what was wrong with the CNC program below as he kept getting alarms.

The machine is a Horizontal Mazak running an (G Code) CNC program. It’s a thread milling CNC program.

I found quite a few errors in the code quite quickly and congratulating myself confidently told him to run the program.

This guy has been my best friend since I was 17 and I couldn’t resist a bit of sarcasm (we call it piss taking here in England).

You have to be careful when you have a go at Garry. Ever since our days together as apprentices at Rolls Royce (circa 1971) whenever I took the piss out of him he would get me back 10 fold.

(It’s no coincidence that Rolls Royce went bust in 1971)

I remember my first time at arc welding nervously trying to master the technique. Garry thought it might be amusing to smash a large mallet into the underside of the metal clad welding both.

I have always been the type of person who jumps and alarms quite easily.

Panic struck I threw the complete welding torch into the air and spontaneously evacuated my bowels. It sparked and flashed around the cabinet, which I had long since vacated, for a good minute before the instructor intervened.

I was the subject of ridicule and derision for the next few days by the whole of the Rolls Royce training school (about 200 teenagers).

For the younger generation, it was in those strange halcyon days when the UK invested in manufacturing. Oh and we had Black Sabbath, Led Zeppelin, Deep Purple and the fuckin Osmonds.

CNC Program

The CNC Program

Anyway enough of that. So yea I thought the program was OK but it alarmed out again.

A sarcastic laugh ensued and comments about “how the Mighty Fall”.

Needless to say I hadn’t found the real error in the code.

I have to call it a school boy error, mind you when I was at school I couldn’t even write my fuckin’ name, let alone error check a complex CNC Program.

I must have demonstrated this a hundred times on a whiteboard. My students took it all in but obviously I didn’t….. So what’s the error?

N30 T16 T72 M06 (5/8″ THREADMILL)
M911
B0
M51
M08

G90 G0 G54 X0 Y35. S3000 M3
G0 Z2.0
G91
G01 Z-20. F1000.
Z0.605
G41 Y-10.548 F263.
G03 X0 Y22.003 Z.907 I0 J11.002
G03 X0 Y0 Z1.814 I0 J-11.455
G03 X0 Y-22.003 Z.907 I0 J-11.002
G40 X0 Y10.548
G90 Z2.
G0 Z50.

Some hints If You Haven’t Got It Yet

When you are in cutter compensation the machine is reading ahead so the alarm my well be a few lines in front of where you are.

There are errors which are more a matter of discipline but won’t cause alarms.

When I check word documents I always put my finger on each word as I read the document.

I find that when you read it your brain is making the same mistake as when you wrote it.

Biggest clue read this on Modal Information.

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

 

 

 


The Best CNC Control what is it?

Category : Useful Stuff

If you are buying a new machine what is the best CNC control?

You might not have a choice of the control if it’s a Mazak or a Haas.

Given the choice what would you choose.

the best CNC control

Things to Consider (the best CNC control)

  1. Availability of Skill to use it.
  2. Batch size, one off or thousands of parts.
  3. Ease of editing.
  4. Do you want to program on the machine?
  5. Graphics.
  6. Program Restart.
  7. Compatibility with existing controls.
  8. Mobility of labour (who can use it?).
  9. Do you need bells and whistles?

Availability of Skill

Probably the most common CNC Control is Fanuc. Like it or love it, it’s the one we all know.

But is it the the best CNC control? Well, I’ll let you decide.

So when you are trying to get a setter operator or programmer.

If you have a Fanuc control you have plenty of fish in the sea. It’s more or less the industry standard.

So beware if you buy a new machine and the control uses bitcoin and nanotechnology you might be the only dude who knows how to program it.

Siemens controls are really creeping up in the background even Mazaks use them now. There is still a massive shortage of people with Siemens programming skills. Maybe you should talk to us.

How Many Parts Do You Make?

If you are in the business of making one offs or small batches of parts, then you may think it will be more profitable for you to program at the machine.

Mazatrol is excellent for this. When it comes to turning, from drawing to bubble wrap, it really takes some beating.

Hurco is also really good for one offs and small batches. Oh and both of these controls usually have an ISO option meaning you can run Fanuc type programs if you want to.

Oh and the new Hurcos are fully Fanuc compatible

Read the small print on your final machine spec and always check what options are on your machine control.

Fanuc controls are on thousands of machines and every one is different. Things like Manual Guide i are options and sometimes very expensive to install as an add on.

It’s like getting a car and finding you got the one that doesn’t do 0-60 in 5 seconds.

Don’t forget you can always get yourself a CAD CAM system for a very reasonable price these days. This will do everything these controls can do and an awful lot more.

the best CNC control

the best CNC control

Things like proper collision detection. It’s way cheaper and ethical than framing the apprentice and getting him another written warning.

You can get entry level CAD CAM systems for around £2500 pounds (that’s about $1000.000 since we decided to leave the EU). Oops, sorry.

Only joking.

Anyway when buying a new machine it’s not much money to sneak under the radar.

Editing

Do you need to do loads of editing? I have to say Haas controls are brilliant for editing (you even get an undo button along with loads of other clever shit).

The handwheel can wizz you through the program at breakneck speed unique to Haas I think.

Heidenhain has the ability to jump to sections of program really quickly. One of my favorite features Read this.

Yes and make sure your programs are easy to read. Loads of comments and spaced out. This makes them easier to navigate and edit. Read this.

Siemens controls are also very easy to edit COPY/ PASTE an absolute doddle and its really easy to move stuff around. (Siemens 840D Sinumerik)

On your Heidenhain control use this button maybe just to leave gaps and add the odd comment.the best CNC control

Use the colon (;)  to add a comment.

the best CNC control

New Fanuc controls are much better than the old ones for editing. You needed a PHD in calligraphy just to work out how to copy and paste.

Fanuc Tips

If you have Manual Guide then use it to edit. There’s loads more functionality. You even get an undo button.

Even if you don’t use it to program swap over to edit, please.

Check out PL. EDTthe best CNC control

This button lets you edit two or more pages at once so it’s real easy to copy n paste from one program to the other

the best CNC control

Don’t forget to pressthe best CNC control

when your done or you will be punished by being locked into that screen until home time.

Oh and don’t forget the calculator button on Fanuc too.

the best CNC control

Read this

Mazak Tip

When running ISO programs on a Mazak control there’s a real nifty edit function. You know that feeling when you think “oh shit I know I should have changed that tool number”.

Well you can stop the program alter it and just carry on. You can’t alter anything before your current position but you can alter anything after. Like that looming feedrate you know you meant to alter.

(WARNING ONLY WORKS IN ISO)

Programming On The Machine

Just one thing to say about this.

It’s expensive.

It’s great for bored operators, they love it. Yes “that’s what background edit is for, you dick” I hear you say. (You really should learn to be more articulate).

Mmm yes well that’s not without its problems as we all know.

This will obviously work for some organizations and not others. But, be sure to check carefully that production and quality are not adversely affected when you program at the machine.

Just saying.

Graphics

Well most machines have em. But usually they are a pile of shite.

Joking aside (and you know I love to joke) they are really useful for checking programs for errors but mostly not collisions.

So long as your not expecting to get the Jeremy Kyle Show with subtitles you’ll be just fine.

For typos and little coding errors they are brilliant and save loads of stress and panic when you decide to run your code for real.

Program Restart what’s the best CNC control?

Don’t get me started on this one. Well ok here goes.

Even the best CNC controls don’t always have good program restart.

Haas (Brilliant)

Fanuc mmmmmm (It’s an option) read this

Mazak not bad.

Heidenhain good.

Semens good on newer machines old controls with care.

Mixed Bag Usually Not That Good

Anyway it’s a bit of a mixed bag but on a machining centre where you almost definitely will need it. I suggest you check it out first.

Oh and if you already have it then learn to bloody use it.

Clones

 

You see it on LinkedIn all the time, such and such a company has just bought their 96th ????? machine.

Well there’s a reason for that, and I know our machine tool friends would like to think it’s loyalty to their amazing products but ……

Their are some very pragmatic reasons why you stick with the same boring old brand of machine tool.

If every machine has  a different control you won’t get much mobility of labor because every machinist will be scared of the dark evil beast next to him.

And when your trying to recruit… well the wish list will be like War and Peace

If you have bought loads of new machines from the same company when you call the service department you got way more clout (don’t tell anyone I said that).

Don’t forget you can run ISO programs on most Heidenhain controls with a few mods.

Haas, Fanuc, Mazak (ISO) and Yasnac are almost 100% compatible with one another.

So it’s worth looking at how compatible the new control is with your old stuff.

Bells and Whistles

Do you need all this crap?

Can it contact your misses and ask her to get the takeaway ordered and put some Vodka in the freezer?

Can it check your credit rating?

So if you are programming offline with a CAD CAM system what do you need?

I reckon you need good editing, good program restart, good graphics.

If you are programming everything using CAD CAM it’s more about hardware than software.

Don’t forget the hardware is the expensive bit (the metal) computers and software are cheap but if you want a machine that can drill and tap 500 holes in one side of a railway carriage then you need some big bucks.

Verdict So What’s the Best CNC Control?

Sorry there ain’t one. As usual it’s subjective.

The main points to consider if you want the best CNC control:

  • Do you need it to check your lottery numbers?
  • Batch quantities will it run for hours untouched?
  • Do you want to program on the machine and is it practical and cost effective to do so?
  • Can you find anyone to program set and operate it?
  • What skill sets do you already have? Maybe you need to stick with what you have?

Siemens 840D

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


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407