Leading Trailing Zeros CNC Programming Basics

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.


Taking a Screen Shot Fanuc Control

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (Just saying)

To take a Screen Shot Fanuc, you will need to have either a data card installed or a USB

Screen Shot Fanuc

MDI

In MDI I/O channel needs to be set (4) data card or (17) memory stick

Screen Shot Fanuc

Stick the Card in (or the stick)

Press and hold the shift key for about 10 seconds. You will see the clock stop. That’s how you know it worked. Time will stand still at this point and all the people around you will appear static.

Try not to panic, the world didn’t end. Your control just needs to ponder a while and think about what you just did.

Stop The Clock

Once it’s done your clock wil start again (phew).

Screen Shot Fanuc

Then press CARDScreen Shot Fanuc

Screen will show what is on the data card

Screen Shot Fanuc

The BMP files are your screen shots. You can then view them on your laptop or PC.

Now I know you are saying “what is the fuckin is the use of that”

Well It’s just so that I can show off my knowledge.

Parameter

If this does  not work then you may need to alter parameter 3301 bit zero and bit 7 need to be 1

 

Should look like this to make it work.

Screen Shot Fanuc

A good use is when you are changing parameters. There’s nothing worse than changing a parameter and trashing a £100,000 machine. Help is at hand, luckily you did a screen shot before you changed the parameter and you can view it and change it back.

With this parameter it wont work because you need to switch it on!!!

Good luck with the massive dent in the guarding and the bent tool. No screen shot will fix that.

Screen capture Fanuc, thanks for reading.

 


Fanuc Editing Copy and Paste

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (Just saying)

Fanuc Editing Oi Model D. This does vary on the age of your control this article is for a newer control (Fanuc Oi Model D).

Read this article if you want to see Fanuc Editing 18i (older control) or this one for older Oi control  copy and paste.

Now I’ll warn you that it’s not a simple process but if you get into the habit of using it you’ll never leave home without it.

I am definitely not going to rant on and on about why all these simple procedures were not introduced years and years ago. Why has the editing on CNC controls generally been so shit over the years?

I am also not going to rant and and whinge about how fuckin complicated it all is.

I mean bloody hell all I want is to take this shit here and join it to the end of this shit here.

I’m not asking  for an “X Factor Audition Here” (Simon if you are reading this my contact details are above) I only write this crap to try and make some money, my really passion is singing and exotic dancing in my underwear. I really want this Simon, just one chance is all I need.

“Read More”

G92 Threading Single Line Method

CNC Training Call David: 07834 858 407

CNC Training Centre Reviews

G92 threading Cycle is something that concerns me. It’s sadly neglected. Now I know you’re probably saying “no one uses that old shit anymore”

Well you could be wrong.

G92 Threading works exactly the same as G76 except you need to programme every pass. This would be a pain in the arse but hear me out.

The Haas G76 cycle does not have any facility for a spring pass. This is where you add extra cuts at the end of a threading cycle to take out any metal left from the tool pushing off.

On a Fanuc control you can put these extra spring passes in as part of the G76 cycle.

Read this if you need to know more.

If you want this on your Haas control or an old Fanuc control then you can do this.

G76 X16.93 Z-25. K1.534 D.485 F2.5

G92 X16.93 Z-25.
X16.93
X16.93

Just add the G92 after your G76 cycle and whatever X figure you want to go to.

The G92 is modal so you will need a G0 move to cancel it. The code above would give you three spring passes.

Here is a load more interesting stuff.

I hope you have enjoyed reading this article.

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 

If you want to learn to program CNC Milling Machines

Look no further Contact CNC Training Centre

 

 


How To Format a Data Card on a Fanuc Control

Format a Data Card on a Fanuc Control yes that’s what were going to do. Now first of all I have a confession to make.

People often say to me how nice it is of me to write all these articles helping people with the shit they can’t do. Well sorry it’s not true actually I’m just a selfish bastard just like all the rest of you.

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (just saying)

 

My only reason is that I have and always have had the memory of a goldfish. If you have ever had a goldfish and tried to train it (which I once did). I read books on it like “How to Train Your Goldfish in 3 Easy Steps”, for which I got a refund.

 

 

Anyway I digress. The reason you can’t train them is, not least of all because you can’t keep them out of the water too long, but they don’t remember a word you say. Fuck all, Jack shit.

So the minute they learn a nice trick they immediately forget it. It doesn’t bother them because they just forget that it bothered them.

Sorry no more about Goldfish.

Anyway its really easy to Format a Data Card on a Fanuc Control. You just hold in these two babies while switching it on.

Oh and make sure you have data card selected in your parameters.

Format a Data Card on a Fanuc Control

This is me doing it. Yes that’s my gnarled up old hand.

“Read More”

Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407