Explain M Codes and G Codes Star SB 20-R

Explain M Codes and G Codes Star SB 20-R

Onsite Training Enquiry

Star Sliding Head CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (just saying)

Explain M Codes and G Codes Star SB 20-R, the Star SB20-R has a Fanuc Oi TF control. It is configured especially for the Star machine.

Being a sliding head machine you get loads and loads of G codes and M codes even codes like M8 and M9 coolant on and off are different on this machine.

As I always teach people it is a good idea to put explanations on all your M codes so that you can easily see what they mean when going through programs.

To the rescue comes this screen

Explain M Codes and G Codes Star SB 20-R

You need to be in EDIT mode

M Codes and G Codes Star SB 20-R

And your key switch needs to be in the unlock position so that it allows you to edit CNC Code and programs

Press your PROG button to display your program.

Press your side arrows until you see the COMM soft key.

M Codes and G Codes Star SB 20-R

Press COMM this will take you to this screen.

You can now search for any M code that you want. Input the number for example below 154 then press NO. SRH.

Explain M Codes and G Codes Star SB 20-R

This will take you straight to that M code.

Explain M Codes and G Codes Star SB 20-R

You can do it with G Code too.

“Read More”

Avoid CNC Crashes Don’t Reinvent the Wheel

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

Call David: 07834 858 407

CNC Training Centre Reviews

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)

Always use + INPUT that way you any mistakes will be smaller. Depending on settings Fanuc will show you the result before you input i

Avoid CNC Crashes

 

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

This control has a WEAR screen and a GEOM, geometry screen.

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? oh and don’t forget the D 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 (G54 to G59) or work shift on a CNC Lathe.
  • 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.

 

 


Shibaura Tool Retract Tool Recover

Shibaura Tool Retract Tool Recover, I hate it when you have a button on a CNC machine and no one knows what it does.

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (just saying)

Sound familiar,well you should be ashamed of your self. Get off your fat arse and find out what some of these frigging buttons do.

If people didn’t know what buttons did we would have died in a nuclear holocaust many times over.

007, Shibaura Tool Retract Tool Recover

Think of James bond with his fuckin ejector seat, he has some gorgeous chick sat next to him and he says “want the air con on?”. He then accidentally blasts her into next week, not a good look is it.

Anyway let’s talk about these babies, Shibaura Tool Retract Tool Recover

Not a great picture, but then neither was your profile picture before you Photoshopped it so back off.

Anyway I pressed them and all they did was flash.

Gertjan I love You

Two hours later me and my new Dutch friend Gertjan got them working.

I must say the result is awesome, Gertjan the Fanuc guru.

You get to stop your CNC Program, move the tool away, do whatever you want, then return it back before carrying on with the program.

Now for Fanuc users because we are years behind the times this is an absolute arse licking game changer.

Here is How you Do It

Stop your program with feed hold or cycle stop

Shibaura

Now press Tool Retract, Shibaura

Shibaura Tool Retract Tool Recover

The one on the left, it will light up. Now go into Jog or MPG and move your tool away. (This can be up to ten moves). If you need more than that then you are just plain greedy.

You can now change an insert or do whatever you want, I usually make a nice cheese and onion quiche at this point but it’s entirely up to you.

Now switch back to Memory and press CYCLE START, then press Tool Recover.

Your machine will move back, step by step, to it’s position where you so rudely interrupted it. All controled with your feed rate dial.

Shibaura

Don’t you just love that mmmmmm.

What more could you want? A cheese and onion quiche?


Fanuc G73

Call David: 07834 858 407

CNC Training Centre Reviews

30 five star ratings on Google (just saying)


Leading Trailing Zeros CNC Programming Basics

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (Just saying)

Leading Trailing Zeros

You do not need leading or trailing zeros in a CNC program (see below):

O0001(G81 DEMO)
G21 G90 G40
T01 M06 (20.0 MM DIA X 90 POINT SPOT DRILL)
G90 G00 G54 X12.64 Y88.00 S2546 M03
G43 H01 Z15.00 M08
G0 Z100.00
Z1.00
G01 Z-0.1
Without leading Zero is exactly the same. (Trust me it won’t self destruct or start world war 3)
O1(G81 DEMO)
G21 G90 G40
T1 M6 (20.0 MM DIA X 90 POINT SPOT DRILL)
G90 G0 G54 X12.64 Y88. S2546 M3
G43 H1 Z15. M8
G0 Z100.
Z1.
G1 Z-.1

Try to keep your code consistent. As I mentioned before try to make all programs look the same.

Create an SOP (Standard Operating Procedure) which will cover all programming layout options. Haas controls will insert their own leading and trailing zeros so you won’t have a choice there.

Leading Trailing Zeros and Memory

Leading Trailing Zeros, if you are short of memory (not as in forgetful) this can save loads of space, and you might be surprised how small the memory is on some CNC machines, some have the memory of a fish.

Leading Trailing Zeros

CNC Programming

The main thing is that you are happy with the layout of your program.

If you are not consistent with your approach it can cause a lot of problems.

Please remember that when you are typing code into the machine it will take you considerably longer to type G01 X0.200 Y0.200 F100.00 than G1 X.2 Y.2. It could wear out your fingers or give you multi RSI.

A Haas control will automatically add leading zeros but just try to ignore it. Maybe Mr Haas likes to see them.

Main thing is you don’t need to type them in.

Take a look at this article.

Another way to save space on a Mazak control is to delete all the spaces (ISO G code programs only)

Contact David :07834 858 407

Services offered at CNC Training Centre

CNC Programming Course

Onsite CNC Machine Training.

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