Author Archives: David

G02 G03 Circular Interpolation

G02 G03 Circular Interpolation

On a Fanuc or Haas control G02 G03 are the two G codes we use to move around clockwise and counterclockwise circles. You don’t need the leading zeros so from now on I will call them G2 and G3.

And by the way never use the letter O it’s number zero

GO2 GO3 looks almost exactly the same as G02 G03. But your control will blow it’s mind and get real mad with you.

It will also do some really weird shit like trying to start a new program. Anyway just don’t do it.

If you want to know how to do this on your Heidenhain control you need to read this article.

Oh and please don’t call it interpolation as it annoys the shit out of me.

  • Linear interpolation is movement in a straight line.
  • Circular interpolation in moving in a circle.
  • Interpolation is movement.

Now that’s the telling off out of the way let’s move on. It’s ok I don’t hold a grudge.

Which one of you bastards said interpolation?

Let’ Talk About Milling A Shape

When you are milling a shape and you want to move in a circular motion you use G2 or G3

For a clockwise arc use G2 and for a counter clockwise arc use G3.

They both work the same way. On a modern control you programme the endpoint (an XY figure on a milling machine) and the radius you require.

Then your CNC controller magically creates your circle. You can programme any arc like this with one exception.

Do you know what it is?

Ok I will tell you later, it’s OK to not know. (Just means you are little thick).

Lets go back to school.

Remember construction? Of course you do.

We are going to mill the top section of this part

G02 G03

Let’s see what the control has to do to work out where the centre of the circle is.

It knows its current position and in your G3 line you tell it the end point and the radius you want.

G02 G03

Well it gets out its little compasses and draws two circles at the radius you told it.

G02 G03

 

It positions the compass first on the start point and draws an arc. Then on the end point and draws an arc.

Where these two arcs cross it places the point of the compass. Now it can strike an arc that touches your start point and your end point.

Get yourself a pair of compasses and try it. It’s great fun.

 

G02 G03

 

That’s how the maths works.

Tell me did you really believe that inside your CNC machine there is a little man with a pair of compasses?

Fuckin hell I give up.

Sorry I lied it’s all done with simple trigonometry. But at least I tricked you into understanding the principle.

 

g02 g03 lathe

So you should now begin to work out why you get an alarm when the radius is too small. Your two arcs just don’t cross. In other words you are trying to fit an arc between two point that simply miss one another.

G2 G3 No Pot of Gold

Your control will give you an alarm “End Point Not Found” which makes sense because it can’t find one. It’s like the pot of gold at the end of the rainbow.

 

G02 G03

Oh Before you Go More on G02 G03

What about the question. When can you not use endpoint and radius with G02 and G03 ?

Answer: When you want to machine a full circle using G02 and G03.

You can do it but you would have to break it into two halves. I’m not going to explain anymore because this method is for wimps and peole who can’t be arsed to read my articles.

You know who you are, ordering Chicken Korma in an Indian Restaurant.

Well…… what follows is a full, blow your bollocks off, shit your pants the next day, vindaloo.

And Now Ladies and Gentlemen the Infamous I and J

At the CNC Training Centre we don’t get too excited about I and J when it comes to programming circles. That’s because you don’t need to worry your pretty head about it anymore. You almost never need it.

Did he say almost?

Well yes almost. You could programme forever and never bother about using I and J with G02 G03. So just go off and watch some porn for awhile and I will explain to the real programmers when you can use it.

In the old days I and J was the only way to programme an arc. You would tell the control where the centre of the circle is and the endpoint. This is cumbersome and a bit tricky. That’s why I’m not telling you about it.

Anyway one really good simple way to use I and J is for a full circle. Oh and it’s bloody easy. That is once I’ve explained it to you.

Click here for more info on full circle

When I was a boy hundreds of years ago I had a toy called a Spiro Graph.

Spirograph those were the days

It consisted of a series of plastic gears. You stuck your pen in a hole in the gear and rotated it around another gear. With a bit of practice you could make some really nice pictures. Kept us happy for hours. The crime rate dropped dramatically in my area when these things came out.

What’s this to do with CNC programming you ask? Well if you tried to use end point and radius for a full circle this is what you would get:

If your start point was X0 Y0 you would program G3 X0 Y0 R100. assuming radius was 100mm.

So in a full circle your endpoint is the same as your start point. There are millions of circles the computer could pick. It would be just like the shapes above. If you do the compass trick you will see what I mean. That’s why it’s impossible.

In Comes I and J

G02 G03

So some clever bloke thought fucks this I’ll invent I and J.

If we use I and J there are four options as above.

You would simply program as below for a full circle (20mm Radius)

  • G3 I-20.
  • G3 I20.
  • G3 J20.
  • G3 J-20.

And that’s it.

G02 G03

So these are the four options

 

G02 G03

So there you have a fantastic way to programme a full circle without having to break it down into two halves or be clever like a newsreader or some twat off mastermind.

Why do you only need the I and not X and Y Dave?

For fucks sake don’t call me Dave my name is David.

I had this really nice guy phone me from Africa the other day. He explained to me that he needed to get his inheritance of 10 million pounds out of England and if I helped him he would give me £20,000. All I had to do was give him all my bank and credit card details. Oh and a small one off payment of £1000.

Of course I agreed, what a bargain. Just as I was about to do this the cheeky bastard called me Dave.

I immediately told him to fuck off. I just hate being called Dave.

I gave him my 96 year old mothers phone number because I thought at least she can benefit from it all. Her name is Mary so he couldn’t shorten that. She only has £1200 in savings so it would be doing her a massive favour.

 

Explanation

You don’t need to re-state the X  and Y because you are already at the endpoint

Click here for more info on full circle

If you want to do this on a Sinumeric Siemens 840D read this

Thanks For Reading

Don’t forget there’s loads more folks.

And a YouTube channel

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

Siemens Sinumerik

Don’t forget we offer training on all types of Mazak Machines and all Fanuc Controls 6m to 31i Oi old to young.


 


Learn CNC Canned Cycles G81 G84 G73

Learn CNC Programming (Canned Cycles)

A Canned Cycle What is It?

If you want to learn CNC programming  then you need to know what a canned cycle is.

I’m going to have to be honest here it is a funny choice of words “Canned Cycle”. But a wild guess would be that all the information to drill a hole would be kept together in a “Can” ready to use.

In a Can…….Learn CNC

So let’s learn CNC Programming….

Make sure you read the end of this article to see a really cool way to drill equally spaced holes.

First of all we state the cycle:

G81 Z-20. R1. F100. X50. Y50. F200.

The machine will move to X50. Y50. then rapid to 1mm above the part (this is the R1.). It will then feed down to Z-20. at a feedrate of 200 mm per minute F200.

Finally it will rapid out of the hole.

It then sits ready for the next move.

dog-163527

All you need to do now is just keep giving positions.

G81 Z-20. R1. F100. X50. Y50. F200.
X60.
X70.
X80.
X90. Y60.
G80
The G80 at the end will cancel the canned cycle. It just means “Look I am a bit pissed off with drilling holes so can you stop”

So that’s it Canned Cycles it really is that easy you put all the information in the “Can” then each time you give a position you get another hole.

Want to know More?

Thought you would. You want to learn CNC programming don’t you?

There are loads of these canned cycle but I am not going to talk about every one in detail. No sorry you will have to read the boring old manual for that.

Not to Worry They Are All The Same

Well sort of. You state the cycle then it repeats at each position given until you cancel it (and that applies to all the cycles).

Anyway Here are a few:

G84 taps holes, tell it the pitch depth usual stuff.

 

G73 peck drilling is the same as drilling (G81) but you give it the peck depth.It pecks the hole breaking up the swarf.

 

G83 same as G73 but with each peck the drill comes right out of the hole. For deep holes or swarf that clogs.

 

G76 bores a hole, stops at the bottom, moves over and rapids out to avoid marking the bore.

Ok let me tell you this, you are doing great so far. This is how we learn CNC programming. Nice small steps.

G98 G99

I already wrote a post on this click to see it all (it’s truly amazing). I purposely didn’t include it in the cycle above which is ok. The idea was to keep it simple.

 G43 Z50.H1 M8

G81 G98 Z-20. R1. F100. X50. Y50. F200.
X60.
X70. G99
X80.
X85. G98
X90. Y60.
G80

g98gif

All it is in a nutshell. G98 returns to the Z point you were at before you started the canned cycle.

G99 will return to the R point (R1.)

Why you ask?

Easy you can jump over shit.

Clamps, high sections on a part, tall buildings, anything.

spiderman-1579249

It Gets Better.

G81 Z-20. R1. F100. X50. Y50. F200.

The Z-20. the R1. the feed-rate etc are all known as parameters. These are the things that control your cycle.

These can be altered at anytime and stay in until you alter them again or cancel the cycle.

G81 Z-20. R1. F100. X50. Y50. F200.
X60.
X70. Z-30. (From here onwards the holes are drilled 30mm deep not 20)
X80.
X90. Y60.
G80

Now let’s alter the feed

G81 Z-20. R1. F100. X50. Y50. F200.
X60. F300. (Change feed)
X70.
X80.F200.(Change it back)
X90. Y60.
G80

Remember it stays in until you say otherwise.

I Think you Now Need to Learn About Modal Information

Read the above article. Modal means that the information stays in the control until you cancel it or change it.

Do’s And Don’ts

Do Not………

Put in a rapid command G0 X50. Y50. it will cancel your cycle and the machine will just sit laughing at you. (No hole drilled).

See this post G0 cancels canned cycle.

G81 Z-20. R1. F100. X50. Y50. F200.
X60.
G0 X70. (Rapid to X70. no hole drilled)
X80. (Rapid to X80. no hole drilled)
X90. Y60. (ETC)
G80 (You already cancelled the cycle with G0)

Do Not Repeat Axis Moves. 

G81 Z-20. R1. F100. X50. Y50. F200.
X60. Y50. (Don’t need Y50.)
X70.
X80.
X90. Y60.
G80

D0…….

  • Always use a canned cycle if possible it saves loads of time. It is also really easy if you need to edit anything.
  • Make your CAD/CAM system output canned cycles, not long hand code. I saves loads of time if you need to edit.
  • Love engineering and be nice to your cat.

 Really cool way to drill equally spaced holes

Imagine you need to drill and tap this part. Nine M10 holes.

 

Learn CNC


Learn CNC


Quite simple but 31.63 added up nine times? Mmmm I never learned my 31.63 times table.

O0001(Drill and Tap M10)

T01 M06 (20mm Spot Drill)

G90 G0 G54 X0 Y0 S1500 M3

G43 Z3. H1 M8
G81 G98 Z-10. R1. F100 L0
G91 X-31.63 L9
G80
G0 G53 Z0
ETC
M30

Learn CNC Programming? How easy is that?

  • The programme moves to the datum X0 Y0 which is the middle of the part at the right hand end.
  • The G81 has an L0 at the end. L0 is not a Lionel Richie song it just means don’t do one. So it moves to X0 Y0 and does nothing.
  • The next line, G91 means incremental move so it moves incrementally nine times (L9) X-31.63 and drills a hole each time.

Brilliant I told you it was worth waiting for.


Learn CNC


Thanks For Reading

Don’t forget there’s loads more folks.

And a YouTube channel

Call David: 07834 858 407

Learn CNC Programming

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.



Avoid CNC Crashes Don’t Reinvent the Wheel

Category : Useful Stuff

This is an article designed to help you avoid CNC crashes.

Avoid CNC Crashes

I listened to a fantastic documentary on Radio 4 the other day about Airline Crashes. The program explained how the hierarchy (cabin crew, flight crew) caused wrong decisions to be made.

In the Kegworth air Crash, cabin crew knew that the pilot had shut down the wrong engine. Unbelievably no one felt empowered to tell the pilot. The program went on to explain about “The No Blame Culture” and how they had taken this further and created a system where everyone could speak out.

Although this is not the main crux of my post it does highlight some of the points I want to make.

So when a machine crashes. What do you do?

  1. Whose fault is it?
  2. How easy will it be to fire this person?
  3. How quick can we get the machine running again and make some parts?

 

WRONG!!!!

 

Avoid CNC Crashes

 

The above are all the things I definitely would not do.

LinkedIn is full of all these soundbites and bulshit.

Quick one word banners. You know the stuff.

Avoid CNC Crashes“Don’t Eat Yellow Snow”. Well maybe that’s not one on LinkedIn but you know the sort of stuff I mean.

 

Anyway I bet there is one about making disasters into learning opportunities.

If you know one then send it to me. Cos I agree.

So when you have a collision on a CNC Machine here is what you do.


  1. Make it very easy for everyone to tell you exactly what has happened.

  2. Do not apportion blame. It must be seen as a way to improve things (a learning opportunity).

  3. Make a detailed report on the whole incident.

  4. Analyse the report with all parties involved.


When you analyze the information you have gathered, try to break it down into small parts.

(Oh and by the way if you think this is a waste of time work out what the collision just cost you.)

Each time you spot something wrong come up with a permanent solution so that it can never happen again.

The idea is that you only make the mistake once. If you say things like “he’s an idiot”. What are you going to do about that? Well maybe you could sack him. That is after he punched you for calling him a twat.

Sorry but this won’t work. Next time you inadvertently employ an idiot your machine will get broken again.

Avoid CNC Crashes

Now the idea is to Avoid CNC Crashes. If an idiot can operate the machine and not crash it then we have a solution.

I once suggested in a meeting that we fire all the machine operators. The management team had gone on at length about all the problems with staff and how useless they were.

man-110307

What would we do then? I was asked. Well we will recruit more. What would we get?

  • A moaner.
  • Someone who is  often late.
  • A person who has loads of sick days.
  • The guy who crashes machines.
  • A brilliant worker.
  • A total prick.
  • One not so brilliant worker.

Actually you would get what you have now. So the message is to work with the staff you have and get the best out of them.

So an example would be:

An operator altered a program and made a mistake. This resulted in the machine crashing.

We could carefully analyze what happened and come up with solutions. These would then become part of everyday procedures,

  1. You could remove the edit key so that operators needed supervision to alter programs.
  2. You could make a tutorial video on the prove-out procedure after program alteration. Then get all involved to view it.
  3.  What did he alter wrong? Maybe there is a training issue.
  4. Maybe he missed out a decimal point and needs to read my post.


Some ideas below on how to help Avoid CNC Crashes.

 

Wrong Offset

Always prove out correctly remember the movement after the tool change is very often the most dangerous one as this is when the offset is applied.

Always adjust the wear offset not the big number (Geometry)

You can also restrict the value it can be adjusted by read this.

What changed?

If program has been used many times before. There should be a procedure in place to keep it in a special folder marked “proven”.

  1. You may be using different tools so did you edit the tool numbers?
  2. Do  the offsets correspond to the tool numbers H and T? read this.

The Rules

If this is an existing program then the first tool moving toward the part is the most dangerous move.

  • Your work offset could be wrong.
  • Tool measurement could be wrong.

Once this first tool is proven correct then you know your work offset and your first tool are correct. Beware if the work offset changes say from G54 to G55.

G54 may be fine but what about G55?

From now on you need to check the line  where each tool comes into the component.

Once the tool is in use it’s happy days. Just keep an eye out for changes in work offset (G54 to G59).

Use your  check screen.

Avoid CNC Crashes

From this you can see all the information you need

Avoid CNC Crashes

 

Absolute Incremental (Don’t be afraid to use it)

If you use G91 (incremental) make sure you immediately program G90 (Absolute).

To move the tool to the tool change position it is much safer to use G53 Z0 rather than G28 G91 Z0. That way you don’t need to remember to change back to G90.

If you are using a sub-program end it with G90 and begin with G91 that way you won’t forget.

Switch To G90 ASAP

In the parameters of most machines you can set it so that when you press reset the machine will revert back to G90.

Read this on machine wake up state.


G91 is very safe to use if you follow the rules.


Decimal Points

Some controls will take calculator type inputs. X20 will be X 20.00. Beware this can be read as X.020 and there is a big difference.

Fanuc, Haas and Mazak will allow you to set a parameter that allows either.

 

Read this post first.

Speed Clamps On CNC Lathes (Avoid CNC Crashes)

G50 is really important it should be at the head of every program or possibly on every tool.

G50 S2000 (speed will not go over 2000 rpm)

 

Avoid CNC Crashes



https://www.youtube.com/watch?v=x14poOHTXlM



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.

 

 


Haas Spindle Warm Up Macro

Category : Macro Useful Stuff

Warm up Programme

Haas Spindle Warm Up MacroHaas Spindle Warm Up Macro

This Haas Spindle Warm Up Macro is something I created recently for the Macro training course that we offer at the CNC Training Centre. The course covers Macro Programming suitable for Mazak, Haas and Fanuc.

This course will be available online soon.

Please fill out the enquiry form on the right if you are interested.

I must admit I often think that where Macro programming is concerned, a little knowledge is a dangerous thing. I just think it’s more about a programmer’s ego than really getting good code.

This article gives a brief description of macro programming if you just want the Haas Spindle Warm Up Macro then jump to the end and copy it. I won’t be offended, honestly.

Be Careful What you Wish for.

Gratuitous use of macro programming , can be dangerous and very confusing to the operator using it.

If you don’t know what gratuitous means don’t worry neither do I, I just heard a bloke say it on the telly.

  • Using a macro can automate a regular task.
  • Families of parts can be grouped together in one programme.
  • All macros need to be “fool proofed” you must add alarms to protect from erroneous input.
  • Use parameters to lock and protect your macro programmes.
  • Macros can be aliased to G and M codes.
  • Don’t reinvent the wheel every day, just use a macro.
  • Don’t forget to check if you have the macro option on your machine it can be quite expensive to add on.

This macro (Haas Spindle Warm Up Macro) is for the warming up of the spindle on your Haas machine.

It does not take big leaps in speed so it’s smoother and more gradual.

Set the maximum rpm you want to warm up to and the time you want the warm up to run for. You also set the initial speed you want your spindle to start at from cold. Also give it the amount the speed increases per step.

It will calculate the difference between your start speed and your maximum speed. Then it divides this speed by the speed increment that you give it. From this it will know how many times to loop.

Once in the loop it uses the machine timer #3001. It zeros the timer then runs it for the calculated time each step.

Time needs to be set in milliseconds because that’s what the geeks use in these machine timers, so it multiplies by 60,000.

Ideally I suggest you alias it to an M code.

Alias what the fuck is an alias?

No it’s not like changing your name from Reginald Kenneth Dwight to Elton John no no it is a bit more sophisticated.

What does Alias mean.

It means you can access a programme using your own G code or M code.

Mazak Spindle Warm Up Macro

So for example see above. If you put 201 into parameter 91 when you programme a G201 it enters programme 9010. Like programming M98 P9010 or G65 P9010. With a G code you can pass arguments to the programme a bit like G81. In G81 you tell it the depth and rapid point these are the Z and the R values. These are called arguments. So now you can do the same with your very own G code.

G81 G98 Z-10. R1. F100.

Also for parameter 81 (see above) if you put 33 into parameter 81 when you programme M33 the control will jump into programme 9000. You cannot pass arguments when you use an M code. Best not to argue then, I say.

So for my Haas Spindle Warm Up Macro we will use M33 and alias it to programme 9000. So having done all this you can lock out programme 9000 so no one can even see it. (It can be our little secret). They will not be able to edit or delete it either.

All they need to know is that M33 will run the Haas Spindle Warm Up Macro.

M33 is aliased to O9000

A word about testing.

When you test your macro you don’t want your control to look ahead.

Why Does Your Programme Need to Look Ahead?

Let’s talk about cutter compensation:

Below is a tool path where the tool is compensated to the left. To machine the part without cutting into it the control would need to read in front.

Mazak Spindle Warm Up Macro

It moves up the left hand side so it needs to know where its going in advance, moving round the outside in single block it would stop here.

Mazak Spindle Warm Up Macro

If it were about to cancel compensation it would end here.

Mazak Spindle Warm Up Macro

If it were about to go left on the inside it would stop here.

Haas Spindle Warm Up Macro

They would all be the same Y position but in single block it would stop in three different places.

So this explains why the control needs to look ahead. Each move relies on the next one for it’s positioning.

When we write macro programmes and are testing them this look ahead can be a real pain in the arse. You see the system often will know the answer before you think it has seen the question.

Complicated? Read on, I meant to confuse you so it makes me look intelligent.

Please Explain

Right , what we do is to use a G code that will stop the system from looking ahead. We can then single block through our macro and check the calculations as we go.

When we are happy with the code we can let the system look ahead again by turning look ahead back on.

Although what you are doing may be very simple in terms of calculations a very simple mistake can really bugger things up.

Be very systematic in your approach and test each section of your macro as you go. As you are happy that each line works move on to the next.

Try my Haas Spindle Warm Up Macro below. Turn off the block look ahead and the single block restriction and check each variable as it changes. It will help you to understand how the Haas Spindle Warm Up Macro works.

One other thing, plan your macro before you start don’t get too excited and rush on. Keep a record of what variables you have used so you don’t accidentally use a variable twice. Things can get very messed up if you do.

Comment, comment, and more comments to say what the comments mean. You can’t have too many comments in a macro. The best approach is to imagine you were abducted by aliens. Will anyone understand your code if they don’t bring you back to Earth?

If you are like me and you have the memory of a goldfish then you will need them for yourself when you look back at this macro in years to come.

Check out this fantastic article on how to lay out your CNC code and comments.

“The code, give me the code?”  you ask.

OK OK.

So here is my Haas Spindle Warm Up Macro.

Hope it is useful to you.

PLEASE DO NOT USE THIS MACRO IF UNDER 18 OR OF A NERVOUS DISPOSITION

Mazak Spindle Warm Up Macro

Oh by the way if you get bored easily then don’t read all this shit. Just put the code in your machine and enjoy it with my compliments.

Haas Spindle Warm Up Macro

O09000 (Haas Spindle Warm Up Macro)

G103 P1 (NO BLOCK LOOK AHEAD)

#3004= 7 (OVERRIDE CONTROL NOT ALLOWED)
#100= 20. (TIME)
#101= #100 * 60000. (TIME MILLISECONDS)

#102= 500. (RPM FROM COLD)
#103= 7000. (MAX RPM)
#104= #103 – #102 (RPM INCREASE)

#105= 1. (RPM STEP)
#106= #104 / #105 (LOOP)
#107= #101 / #106 (DWELL)
M03 S#102 (Start spindle at initial speed)

WHILE [ #106 GT 0 ] DO1 (DO LOOP)
S#102 (START SPINDLE AT INCREASED RPM)
#3001= 0 (RESET INTERNAL TIMER TO ZERO)

WHILE [ #3001 LT #107 ] DO2
END2

#106= #106 – 1 (COUNTER DECREASES BY ONE)
#102= #102 + #105 (INCREASE SPEED BY STEP)
END1

#3004= 0 (OVERRIDE BACK ON)

G103 P0 (NO BLOCK LOOK AHEAD)

M30 

Very boring so what does it all mean? You ask.

Explanation of my Haas Spindle Warm Up Macro

O09000 (Haas Spindle Warm Up Macro)

G103 P1 (NO BLOCK LOOK AHEAD)
(This will stop block look ahead)

#3004= 7 (OVERRIDE CONTROL NOT ALLOWED)
(Set this to a 7 to stop override of speed.)

#100= 20. (TIME)
(Total time of warm up in minutes)

#101= #100 * 60000. (TIME MILLISECONDS)

#102= 500. (RPM FROM COLD)
(Spindle will start at 500 RPM)

#103= 7000. (MAX RPM)
(Maximum RPM you want the warm up to reach)

#104= #103 – #102 (RPM INCREASE)

#105= 1. (RPM STEP)
(This in the step used as the RPM increases)

#106= #104 / #105 (LOOP)
(Calculate the number of times it goes around the loop)

#107= #101 / #106 (DWELL)
(Dwell time after each speed increase)

M03 S#102 (Start spindle at initial speed)

WHILE [ #106 GT 0 ] DO1 (DO LOOP)
S#102 (START SPINDLE AT INCREASED RPM)
#3001= 0 (RESET INTERNAL TIMER TO ZERO)

Haas Spindle Warm Up Macro

WHILE [ #3001 LT #107 ] DO2
(TIMER COUNTS DOWN BY DWELL TIME)
END2

#106= #106 – 1 (COUNTER DECREASES BY ONE)
#102= #102 + #105 (INCREASE SPEED BY STEP)

END1

#3004= 0 (OVERRIDE BACK ON)
(Override works again.)

G103 P0 (BLOCK LOOK AHEAD)
(This will put block look ahead back on)

M30

Single Block

You can stop single block from working in a macro.

It is really annoying if you expect your spindle to warm up in 20 minutes. You come back having made tea cos you left the machine in single block.

“Shit” (expletive of your choice) “the machines been on single block and stopped on 500 rpm for 20 minutes”

#3003= 1 (SINGLE BLOCK OFF)

#3003= 0 (SINGLE BLOCK ON)

Stop single block is used in a G84 tapping cycle. There is a thought, imagine using single block when tapping. (You may need to think about that one)

I also have suppressed spindle override because you want the correct speed in a warm up programme. So your override control won’t work until it’s cancelled again at the end of the macro.

Again this is used in G84.

If you read the code and explanations above you’ll see how it works.

Haas Spindle Warm Up Macro

Oh and by the way here is a similar article for a Mazak machine.

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.


Haas Reset Program Pointer Setting 31

Category : Haas Settings

Haas Reset Program Pointer Setting 31

Haas Reset Program Pointer

Another setting to look at: Haas Reset Program Pointer. This setting means that when you press that dirty old RESET button.

Haas Reset Program Pointer

If it’s set to on your program will return to the start. If it’s set to off then your program pointer will remain in the same place.

And this is what Haas have to say

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.

We really love you but honestly we don’t really care if you break your machine. However if you do, make sure you youtube it. Then you could make a shit load of money from the video.

Oh yea we do CNC Training too, not to mention Classroom Training.

Siemens Sinumerik 840D 828D training

Or call us 

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