Haas Search Brackets (Find Code in Brackets)

Category : Beginners Useful Stuff

Haas Search Brackets. Everyone knows I am a fan of Haas machines I can often be found in the kitchen at parties boring the ass off of everyone talking about all the exciting things that they can do.Haas Search Brackets

Most people don’t have a clue what I’m on about as most of my friends are hairdressers, taxidermists or pornstars.

Anyway today I’m going to bore you with what I consider another master stroke from Mr Haas.

Be honest have you ever wanted to search for something that is in a bracket? Admit it you have haven’t you.

It’s a bit like searching for your phone when you left it in the fridge.

O0001 (David’s CNC Programme)

T05 M06 (20mm Endmill)

G90 G00 G54 X50. 50. S1500 M03
G43 Z3. H05 M08

G81 G98 Z-20. R1. F100.
X0
Y0
G80

T06 M06 (50 mm Face mill was T07)

ETC
ETC

M30

If your answer to the above question was no then you are on the wrong website go buy a new car or something it’s way more exciting.

Anyway it’s easy. If you wanted to find the T07 in the code above, see it there hiding away in those brackets?

T06 M06 (50 mm Face mill was T07)

Haas Search Brackets Here’s How

Anyway all you need to do is type (T07) then press your lower cursor. In other words parenthesise the T07.

Just showing off to my younger readers, or just plain thick readers, parenthesise means put it in brackets.

Haas Search Brackets

Sorry about the shit picture but I’m on a very tight budget here.

How easy is that?

Authors Note

I’ve been thinking about this one and I can’t really think of where you might use it. Sorry for wasting your time.

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 on : 07834 858 407

If you want to learn to programme CNC Milling Machines

Look no further Contact CNC Training Centre

 

 

 


CNC Macro Programming

CNC Macro Programming

Category : Macro

Classroom Training Click Here

CNC Macro Programming an Introduction

Book Now CNC Macro Programming Course

CNC Macro programming is sometimes thought of as a bit of a black art in CNC programming

CNC Macro Programming

Macro programming is sometimes known as parametric programming.

 It means you are controlling a program by external parameters.

Its Easy

In fact the use of macro programming in its simplest form is very easy and the rest is shrouded bullshit.
Macro programming uses the #(variable) sign to represent values.
Historically macro programming was used for things like bolt hole circles and cycles that machines didn’t have built in. Most modern controls have this kind of functionality as standard so you might think why would I need to learn macro programming.

CNC Macro Programming
 Good question. If you have a touch probe on your CNC machine you almost definitely will have the use of macro programming.
Oh by the way before you read anymore of this just check if you have macro programming on your machine as it is usually an option. I would hate you to read the whole of this very boring article only to find you can’t do any of the stuff I am talking about.

CNC Macro Programming
A bit like reading the manual for your car only to find you bought the one with the small engine and you can’t actually get from 0-60 in under 5 seconds.
You can use a variable to replace any number in a program and then define its value externally.

Here is an Example

The macro programming example shown is for drilling some holes. Initially just using a cycle to spot drill and then another cycle to drill.

This macro uses a sub program. The first time it’s called we want a depth of 5mm and a feed-rate of 100mm/min. The second time we want a depth of 15mm and a feed-rate 200mm/min.

#1 represents the depth
#2 represents the feed-rate

So you can see that in the sub-program the depth and the feed-rate are defined as variables. So, each time the sub-program is called it will look to see what is in variable 1 and variable 2

Here is the program as it would be normally
O0001(Macro Programming Demo)
G21 G90 G40
T01 M06 (20mm Spot Drill)
G90 G0 G54 X0 Y0 S2546 M3
G43 H01 Z15.0 M8
G81 G98 Z-5. R1.0 F100.
X25.
Y25.
X-25.
G80
G0 G53 Z0 M9
T02 M06 (16mm Drill)
G90 G0 G54 X0 Y0 S1000 M3
G43 H02 Z15.0 M8
G81 G98 Z-15. R1.0 F200.
X25.
Y25.
X-25.
G80
G0 G53 Z0 M9
M30


Here is the program as CNC Macro Programming 


O0001(Macro Programming Demo)
G21 G90 G40
T01 M06 (20mm Spot Drill)
G90 G0 G54 X0 Y0 S2546 M3
G43 H01 Z15.0 M8
#1=5.
#2=100.0
M98 P500(Call Programme 500)
G0 G53 Z0 M9
T02 M06 (16mm Drill)
G90 G0 G54 X0 Y0 S1000 M3
G43 H02 Z15.0 M8
#1=15.
#2=200.0
M98 P500(Call Programme 500)
G0 G53 Z0 M9
M30

O500(Sub Programme)
G81 G98 Z-#1 R1.0 F#2
X25.
Y25.
X-25.
G80
M99

Advantages

There are a lot of advantages to using a basic CNC Macro Programming.

1.When you prove it out the first time you know the positions will be correct for the second time.

2.Much less code.

3.You can change your mind without too much code alteration.

4.Sorry I can’t think of a number 4 but 3 advantages didn’t look enough.
Macro programming is sometimes known as parametric programming.


As you get more and more into macro programming you start to realise the massive potential it unlocks. You can interrogate the control for example:

What speed is the spindle running at?

What tool is in the spindle,?

What is the current position?

What are the winning numbers on tonight’s lottery?

You can carry out mathematical calculations with variables, adding, subtracting, simple trigonometry etc.

Taster

This is just to give you a taste of what macro programming can do. Try some of this out it’s very addictive. You will find you will get better and better at using it and I’m sure you will have loads of creative ideas as you unlock it’s supernatural powers.

It seems rather daunting at first that’s why I demonstrate a really simple example. It is best to start with small steps that you fully understand and gradually build on your skills.

Good luck.

Other Macro Information

Macro Training

Macro

More**Free**Macro**Stuff

Haas spindle warm up.

Mazak Spindle warm up.


Please contact us if you are interested in learning more on one of our training courses.

Call : 07834 858 407

If you want to learn to program CNC Machines

If you want to learn to program CNC Milling Machines

If you want to learn to program CNC Lathes

Look no further Contact CNC Training Centre 07834 858 407

Please contact me if you require:

  • Fanuc training.
  • CNC programming training.
  • Want to Learn CNC programming.
  • Fanuc programming   training.
  • Yasnac programming training.
  • Any type of CNC course.

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.


CNC Machine Vice (Never Clock Again)

Category : Useful Stuff

Classroom Training Click Here

 

This video explains how to set a CNC Machine Vice so that clocking is a thing of the past.

CNC Machine Vice

 

 

 

 

You all know this but I am going to tell you anyway. If you don’t then it’s OK to pretend you knew anyway.

It’s just a gentle reminder of what to do when work gets slack.

CNC Machine Vice

I want to make Clocking a CNC Machine Vice a thing of the past. At the risk of repeating myself (and I am allowed to at my age). At the CNC Training Centre we call it wasting time to save time. You could spend a day sorting some of this stuff out and the boss will be on your back saying “I need work out and you are playing around making tenons I can’t sell”

Firstly tell him to fuck off. Then explain that this will save you ten times whatever you spent on it and once it’s done, it’s done, no turning back.

By the way if he fires you for swearing at him then I agree. It’s not clever to swear.

But he is right about making the tenons for your CNC Machine Vice .

If you can buy them, then it really does work out cheaper. Like washing up liquid we all know the disaster and chaos that ensues when you buy a cheap brand washing up liquid.

Personally I use a dishwasher.

This is a true story, my mate Garry once threw all his dirty dishes in the dustbin because his dishwasher broke.

All you young people out there who wondered how we managed to fuck the planet for you. Well that’s how.

The irony is that now we blame you for not recycling your fuckin pot noodle containers.

The healthy alternative to Class A drugs

Does anyone know if you can recycle pot noodle containers?

 

The video demonstrates setting a CNC Machine Vice. How to use G10 to input the datum in the programme so that the vice can be easily positioned and re-positioned if you have to move it part way through production.

Setting The Vice, The Program

CNC Machine ViceIf you don’t know how to use G10 in a programme read this.

Basically what it means is instead of going to your work offset page and writing it in, you input your offset in the programme with this nifty G10.

CNC Machine Vice

When the programme runs it writes to the work offset page. Effectively your offset is now fixed in the programme. You could go and alter it on your offset page but as soon as you run the programme it will replace it.

It’s like pulling the hairs out of your nostrils they just keep growing back.

The vice is located on the machine table with tenons and tee nuts.

Here are load of them spinning around for your entertainment.

Clocking Machine Vice Clocking Machine Vice Clocking Machine Vice

Clocking Machine Vice Clocking Machine Vice Clocking Machine Vice

You can buy these in as standard items or you may have to make them. It’s probably best to write a CNC programme and cut them off a bar in programme that way you can make as many as you want. You may even want to harden them for a long life.

My mate sells em down the pub and makes a fortune, real entrepreneur.

Setting A Vice (It’s So Easy)

Once these are attached to your CNC Machine Vice the position of your vice, and therefore your fixed jaw, will never change so you can fix the datum in the programme.

So that’s Y taken care of.

Slide the vice up to a solid tool-holder of your choice. The tool-holder is sent to a known position and the datum in X can be a fixed position too.

You can use G53 to send the machine to this known position.

Clocking Machine Vice? No thanks.

Don’t use G53?

Sorry, if you really must clock the vice and get it within nanometres then go ahead and clock out those tiny bits, it will still move a small amount when struck with a blunt object.

Just One Other Thing

Notice a G90 at the beginning of the G10 line?

What’s that all about then?

You didn’t know? Shame on you.

Well….. If you programmed a G91 (Incremental) it would actually add that amount to your existing datum.

So just in case, it’s best to have it there. Mummy knows best.

Please contact me if you require:

  • Fanuc training.
  • CNC programming training.
  • Want to learn CNC programming.
  • Fanuc programming training.
  • Yasnac programming training.
  • Any type of CNC course.

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.

 


Use What You Have

Category : Useful Stuff

Classroom Training Click Here

Use What You Have

Use what you have, 10 years ago my big gripe with companies when I was looking at increasing productivity and improving production methods, was that there was little investment in new technologies.

I think that now things are a bit different, although there is still room for improvement.

Being the grumpy old, ageing, failed, rock star that I am, my moan now is that the technologies that people have invested in are not being used to the maximum capabilities.

These are some of my suggestions and your MD will love the fact that they all cost little or no money:

(1) Read the manuals on your CNC machine just the first few pages (not the boring health and safety shit, the next bit) bet you will learn something you didn’t know.Use What You Have

Maybe there are a few little gaps in your basic knowledge of CNC Programming?

(2) Now, about that probe in the carousel (covered in swarf and coolant) that no one knows how to use. Learn to use it. Come on there are loads of idiots like me posting free videos on this stuff. Once you use one I will guarantee you will never go back.

Use What You Have

(3) Use What You Have and check out the settings on your Haas machine (I can always get people excited about what these can do) look at the Haas tips n tricks page on their website (you will learn loads of stuff to impress your mates, not at the pub though please.

(4) Make sure you are using the latest version of Edgecam (or your chosen CAM system). Edgecam and all software is evolving rapidly and you’re really missing out. Oh and if you have a maintenance contract check it out there is all sorts of free stuff (like training and user meetings).

(5) Try to make a point of learning something new every day. (I am 86 and I still do) write them all in a book so you can look back.

Please let me know how this goes, enter your comments below.

Please contact me if you require:

  • Fanuc training.
  • CNC programming training.
  • Want to learn CNC programming.
  • Fanuc programming training.
  • Yasnac programming training.
  • Any type of CNC course.

Services offered at CNC Training Centre

Edgecam Training.

Classroom programmer training.

Onsite CNC Machine Training.

Onsite CNC Training on all controls and machines.

Call David : 07834 858 407

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.


Driven Tools (Live Tooling) Milling on a CNC Lathe

Category : Useful Stuff

Classroom Training Click Here

This article is about driven tools (sometimes known as live tooling) on a CNC Lathe and how we use G12.1  (G112) to mill shapes.

At the CNC Training centre we have a three day course which covers all aspects of driven tools on a CNC Lathe. You will learn about machines with a Y axis and machines that use a virtual Y axis. There is also a lot of advanced CNC Turning material too and you get to test it all out on your own virtual CNC machine.

Everything we do is demonstrated on a real machine.

  • Sub Spindle Machining
  • Y axis machining
  • Using a B axis
  • Axisl and radial drilling
  • Part transfer to sub spindle
  • Everything you wanted to know about mil turn machining but were just too embarassed to talk about.

If you want to apply for this classroom course, then don’t  bother reading this article.

By all means read on, in fact you’ll probably not need to do the course and waste your money!

A new CNC Machine is a very expensive investment even a simple two axis X Z lathe would represent a large investment to most companies.

If you want your lathe to be able to do milling with driven tools as well, then it will cost considerably more.

driven tools

First of all you will need special holders for the driven tooling. That means the tools in your turret can rotate so you can have drills end mills taps all sorts of shit spinning around in your turret. Not all at once mind.

And you will need special holders for  your driven tools like this to do axial holes (holes in the front face).

driven tools

You will need a holder for driven tools like this to do radial holes.

driven tools

So now when you turn a part you could mill some flats on it or maybe drill and tap some holes in  the front face of the job.

You could even mill a radial slot or drill some radial holes.

This machine will need a rotary axis. Well it already has one its called the spindle and it has a great big chuck stuck to the end of it.

On this type of machine you will be able to lock into your spindle and it becomes a rotary axis. On your position display you will see X Z and C.

The C is the rotary axis.

You can even engage your handwheel and rotate it manually.driven tools

X50.236
Z25.235
C180.000

It is usually known as a C axis (Because it runs through the Z axis)

This works just like any other axis except it is programmed in decimal degrees. C90. is 90 degrees. It works as a simultaneous axis so that means you could program a move along with a C move.

G1 Z-30. C1080.

Your C axis would do three full turns (360 x 3 = 1080).

Meanwhile your Z is moving 30mm that is 10mm every turn.

That gives you a spiral with a 10mm pitch.

driven tools

You can program angles down to .001 of a degree like C123.456

By the way these are all machines that don’t have a Y Axis.

Get live demonstrations as well as hands on experience on this course.

Y Axis

Crudely (and I am known for being crude) a Y Axis means your turret can go up and down.

So when you are milling on the front face of your part the machine behaves just like a milling machine cutting in X and Y.

Here is what milling a hexagon looks like when you have a Y axis machine.

driven tools

Having a Y Axis is awesome the options are endless. But before you get too excited these machines come with a government bank balance warning.

driven tools

You got it they don’t come cheap.

And…. in any case that’s not what this article is about.

Lets forget the Y axis for a minute just buy one of these with the money I’m gonna save you.

There is another way to machine that hexagon (I never wanted a stupid Y Axis anyway)

Take a look at this.

driven tools

What’s happening you ask? Well there is some clever shit going on here.

Get live demonstrations as well as hands on experience on this course.

(Horay who needs a fuckin Y axis?)

The X axis is moving in and out and the C axis is rotating and magically the hexagon is produced.

Soooo…. no Y axis?

Sometimes known as Cartesian to Polar Coordinate Transformation.

Google it if you don’t believe me and no it’s not a sex change or something out of Doctor Who.

 

Thanks to forbiddenplanet.com

You would be forgiven for thinking you need a CAD/CAM system to produce this result.

The answer is yes and no. A CAD/CAM system would produce a bucket full of code to do this.

But actually you don’t need it.

This is what you need………

G112 and G12.1

G112 (G113) or G12.1 (G13.1) comes to the rescue. It kind of turns your lathe into a virtual milling machine.

Once you activate G12.1 or G112 (depending on your control) you can write a program just like on a CNC milling machine.

Now this does vary from one control to another so please smart arses back off. I’m just trying to make an honest living here.

 

If you want to go feed the cat at this point I’ll forgive you.

A gratuitous silly animal picture for all you pussy lovers. (David please, please save this crap for Facebook. No one laughs at your childish sexual inuendo either )

This is the program.

:0001 (MILL HEX SAMPLE)

M98 P600 (TOOL CHANGE POSITION)

T0505 (16MM ENDMILL)

M91 (ENGAGE C)
G98(FEED PER MIN)
G97 S100 M4 (Start Spindle 1000 RPM)
G0 X100. Z-5. C0. M8
S1500

G12.1 (MILL MODE)

G1 G42 X50. C-14.433 F500.
C14.433
X0. C28.867
X-50. C14.433
C-14.433
X0. C-28.867
X50. C-14.433
C14.433
G40 X64. C14.433
Z3. F2000

G13.1(TURN MODE)

M5
M41 G99 (FEED PER REV)
M98 P600 (TOOL CHANGE)

M30

Ok so it’s a bit hard to get your head around.

So let’s first of all see how it would look if you programmed it in X and Y on a CNC Mill.

driven tools

Ok so I’ll go make a cup of coffee while you digest the above.

………………….

cnc macro programming training courses

I’m back now.

So all you do is double all your X figures (because you are in the diameter mode).

Then you put a C in the place of Y.

And you have what is below.

 

driven tools

 

Stupid you say. Why do they do that? Well you better write to Mr Fanuc and ask him. Some machines like Mazaks just let you program it in X and Y just like it’s on a milling machine.

Hitachi Seiki is the same.

But sorry it’s what we are stuck with.

Template Program

So once you get your head around how all this works I suggest you make a template program.

Once you have a program that works in your machine it’s real easy to come back to it and modify it for another job.

Also there are lots of things, like changing from feed per rev to feed per minute, that you need to remember to do. If these are all in a template program you won’t get into any of those annoying situations.

You could put all the stuff you need in a sub program and call it before you start using your driven tools. That way you could use it each time you use driven tools.

Get live demonstrations as well as hands on experience on this course.

On-site Training

The CNC Training Centre (that’s me David) recently trained some guys at a company I can’t mention for legal reasons.

They had a couple of really nice Matsuura Machining Centres and this baby below.

It’s a Nakamura – Tome CNC Lathe with a C Axis and driven tools.

This is a sample part. They are producing some real high precision parts for racing motorbikes on this beast. This is a test program we ran on it.

So back to driven tools (live tooling). So if you don’t go for a Y axis you save shit loads of money and you get to buy a Lambo.

There is more to it though. If you don’t have a Y axis there are restrictions on what you can do radially.

Like this slot.

driven tools

You couldn’t do this without a Y Axis. You would only be able to slot sideways by moving your Z axis. That means you need your cutter to be exactly on centre and if it’s over size then your stuffed I’m afraid.

 

So if you have a Y axis you have choices but it does work out to be an expensive machine.

When you have a Y axis you can program with or without it. For larger profiles on the front face of the job (Axial) you more than likely won’t have enough movement on your X and Y axis to cover it. The G12 option is then going to be best.

All Without a Y Axis

If you want one of these I can make you one. Would look nice on your desk.

A Few Disadvantages

Driven tools need holders and they are expensive. Oh and you will soon run out of stations if you are doing lots of drilling and tapping for example.

Radial Holes

1 Spot Drill
1 Drill
1 Tap

Axial Holes

1 Spot Drill
1 Drill
1 Tap

That’s six holder!!!

A lot of cash.

These guys may help you. This is like the Arnold Schwarzenegger of turrets armed to the fuckin teeth.

Machine Tool Supplies

You can even get multi station ones like these. (Make sure you look to see if you need a Y axis or not.)

EWS Tool Technologies

More Disadvantages

You need a high level of skill to set, operate and prove out when using driven tools. Obviously that doesn’t include you cos you read my articles.

Driven Tools (Live Tooling)

Just one other point before you go. Now it’s no good me telling you to be careful not to crash your machine. If you do then it’s really important not to pretend it never happened or blame it on your mother.

Once the alignment is out then you are going to have loads of trouble. So you need to keep these machines in tip top condition, and the alignment must be spot on. The slightest bump then you need to check it.

Some machines are more sensitive than others it’s easy done just a sneeze on the turret and it’s completely shagged.

If you have no Y axis then the centreline of the tools is absolutely crucial and I can’t stress the importance of this enough. Most of the problems with these machines will come back to alignment, so make that the first check you do.

Get live demonstrations as well as hands on experience on this course.

Y Axis If You Have One (A Word of Caution)

Everyone loves being the hero don’t they.

Now I’m no exception to this rule. I’ll call it “The Y Axis Trick” or it might be just the opportunity to wear spandex.

When you have a Y axis you must always include a Y axis move when you first bring in a tool (even if you aint using it).

G0 X50. Y0 Z3.

Why??? You ask

Because if there is an offset in the Y axis it well stay in that position. If your last tool had 0.1 in the Y axis offset then your tool will remain 0.1 off centre.

If you don’t program a Y axis move to zero (Y0) the Y stays where it is.

It’s one of the first things I would look at when there is an alignment issue just check the position display (it’s a give away).

In Conclusion

Sorry there is no real conclusion but I didn’t know what to put for a title.

For those who like conclusions……

  1. I now fully get this driven tool bullshit so therefore stick the course up your fat arse.
  2. I kind of get it but you want to learn more. 
  3. None of the above.
  4. I enjoyed reading this article and feel so happy the next time I’m in a supermarket queue I’ll pay for a random persons shopping.

Please contact me for further information. All complaints are directed straight to junk email so don’t even bother.

Apply now for a three day advance mill turn CNC training course


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407