Category Archives: Fanuc

Well Set Out G Code CNC (CNC Programming)

Well Set Out Code

Contact David 07834 858 407

Well Set Out CNC Code

CNC Training Centre Reviews

30 five star ratings on Google (just saying)

Well Set Out CNC Code is really important. It can save lots of time spent trawling through code trying to find the section you’re looking for. Simple things like leaving gaps after the tool change line can really help.

The program runs exactly the same but……

Look at the two examples of the same program

Well Set-Out

g code cnc
Uncluttered CNC Code

Not Well Set-Out

g code cnc
Cluttered CNC Code
  • Notice where the gaps are.
  • They give clarity to what’s happening in your program.
  • Try to create your own convention and always lay your program out in the same way.
  • Notice how your eyes are drawn to the tool change lines. These are usually the first things you are looking for.

Read On

It’s like reading a book without paragraphs, and page numbers. It also makes it easy to spot mistakes with well set out CNC code.

Dog reading a book

This is my dog, his name s “Get Back Here You Bastard”

See if you can find the simple error in the well set out code and let me know what it is. That way I will know you’re concentrating.

Clue: if you are the fortunate owner of a Haas machine it will spot this for you and alarm out.

 


Meaningful Comments

Insert meaningful comments. Remember you might not see this code for two years and you won’t remember what you did or how you were thinking at the time.

When you eventually come back to this code you’ll be scratching your arse for hours trying to figure it out.

You’ll think:

“Why the fuck did I do that”

A little comment will explain everything

 

Well Set Out CNC Code
An Elephant and my wife never forget

Come on Get a Grip

Yes you will figure it out eventually but that’s the same with the human genome project.

Well Set Out CNC Code
It takes time to remember what you were doing

Why do I need Well Set Out CNC Code (Things To Do)

  1. Leave gaps at strategic points in the program.
  2. Loads and loads of comments, write them as you would say it, (don’t try to be posh).
  3. Always make the order of the code the same.
  4. Write an SOP (Standard Operating Procedure) for how you want your code laid out.
  5. Make the tool change lines stand out these are the key points.
  6. Use N numbers at strategic points so that you can easily find things.
  7. Don’t use too many N numbers or you will get confused they are like E numbers they can drive you crazy. They also take up loads of memory.
  8. The machine setter and operator are your customers and you need to make their lives as easy as possible. Give em code that’s easy to read.
  9. If your writing X50. Y50. Z50. don’t write Z50. Y50. X50. Yes it will run OK trouble is it’s bloody confusing.
  10. Someone suggested adding M01 after each tool so I’m adding this in. (Thanks Michael)

An M1 or M01 is an optional stop which means you have the choice to stop at each tool. (Very useful if you want to stop at the next tool and you can’t stand around.)

Continuity

When you arrange the program in the same way every time it will be easy to spot mistakes. If you always put your spindle start and speed at the end of the first position line like this.

G90 G0 G54 X50. Y50. S1500 M03

Were you to miss out the speed you would have a very good chance of noticing it because the line will look wrong.

G90 G0 G54 X50. Y50. M03

Tidy neat code is the same as a neat tidy workshop. It’s much easier to find things.

Thanks for reading my post.

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.

Siemens Sinumerik Training

Classroom programmer training.

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.


Memory Card on a Fanuc Control PCMCIA

Memory Card on a Fanuc control, today I’m being totally selfish so please don’t read this article, it’s just for me.

I had this idea a while back. Every time I find something on a machine that I might forget, I would write a post about it.

Easy, when I google something it’s me.

Quick Fix

Setting page input 4 for memory card 17 for USB

Memory Card on a Fanuc

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (just saying)

 

In fact I get really pissed off now if I google something to do with CNC machines  and I don’t find my own article.

These are things I don’t want to forget but usually do.

Now I don’t mean stuff like shitting at the back of someone’s filing cabinet or nicking the soap out of the toilets.

No no no I mean stuff like Fanuc Parameters that I might forget or little tricks n tips on some obscure control.

I  mean sometimes I just want to forget everything but we wont talk about that in case you do want to use me for training.

I know I’m old and decrepit but in fact I’ve always had a bad memory.

I’ve always lost things. My mate used to say to me “you’d lose your bollocks if they weren’t in a sack”

He was a Brummie and he had a way with words (bless you Roy if you’re out there).

Where the fuck did this idea come from that Brummies are thick? My mate Eddie had this incredibly sharpe witt. Oh and he could fix anything, many a time I called him out to fix my old mini van.

It broke down everyday so I relied on him quite a lot.

I mean posh people break down in their cars and don’t have a fuckin clue what to do. I mean if you were on a dessert island who would you want with you Jacob Rees-Mog and Boris Johnson or my two mates Eddie and Roy.

I mean Eddie would build you a raft in 20 minutes and Roy could build a mud hut quicker than DIY SOS. Oh and he could fish too so you’d have a hot meal.

Boris would be reciting Shakespeare and Jacob would be reading from the bible and asking for his butler.

As much as I like Shakespeare (I have all their records)

Stuck on a dessert island, first thing I’d want is a hot meal and then I’d want to fuck off on a raft back to Barwell..

“Read More”

Fanuc G73

Call David: 07834 858 407

CNC Training Centre Reviews

30 five star ratings on Google (just saying)


Fanuc G82

Call David: 07834 858 407

CNC Training Centre Reviews

30 five star ratings on Google (just saying)



Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407