Category Archives: Siemens Turn

How to use G50 on a CNC lathe

CNC Turning Basics G50 Speed Clamp

How to use G50 on a CNC lathe

How to use G50 on a CNC lathe

How to use G50 on a CNC lathe.

G50 in a turning program is a speed clamp. The machine accelerates up to the speed you set (G50 S2000) and will not go any faster.

Now before I get arrested by the “Correct Word and Grammar Police” I know it’s not actually a clamp. The truth is it’s just what everybody calls it, so get off my fuckin case.

Black dog his name is Boris

Anyway if I start to call it something else all my CNC mates (and I do have some) will be confused.

Just check me out on LinkedIn. Anyway as I was saying my mates wouldn’t know what the fuck I was on about.

You must program a G50 before each tool and at the beginning of the program for safety reasons which I will explain later.

It’s Modal

G50 is a modal G code (it stays active). If you have a program where you do not want to clamp the speed you must still put the G50 at the beginning of the program (set the clamp to the machines maximum RPM).

Otherwise it may pick up the G50 from the last program and you may not get the RPM you want. It can have the effect of slowing down production because the speed is being restricted and you didn’t realize.

Don’t use someone else’s G50 get your own.

You wouldn’t wear someone else’s dirty pants. (Americans call underpants underwear I think)

 

These are mine (sorry I din’t get time to wash them).

Modal G code explanation here.

Now Here Is Something You May Not Know

Historically G50 was used to set the machine datum. This still works so do not put any X or Z figures on this line. You will get some weird shit happening if you do. Oh and you will probably trash your 100 grand machine.

Anyway how to use G50 on a CNC lathe

G50 S2000 (SPEED CLAMP 2000 RPM)

Some G code systems, or depending on parameters, may use G92 instead of G50. This is not very common but it works exactly the same way.

On a Fanuc control they are called A type and B type G codes and depends on machine tool builder. Most of the G codes remain the same but proceed with caution.

It is particularly useful when you are facing a part using G96 (constant surface speed). When the tool reaches the centre of the part the machine will be running at maximum RPM. This could be very dangerous on large or out of balance components. When you set a G50 speed clamp, once the machine reaches the clamped speed it will go no further.

Here is a tutorial video about G96 and G97

RULES

  1. Use a G50 at every tool-change
  2. Use a G50 at the beginning of a program (even if you think it’s not needed)
  3. G50 S2000 (Only G50 and speed on one line, nothing else)
  4. There is no rule 4
  5. Never eat yellow snow.

Toshiba VTL CNC

This is a Toshiba VTL (Vertical Turning Lathe).

If you want to buy one or fix one go to Leader CNC

Now imagine this revolving too fast you would soon need their services oh and a good trauma team.

More CNC Turning Help (G70 and G71)

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.

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.


Siemens 840D Circles G02 G03

Siemens 840D Corner Rads and Circles

Siemens 840D

Siemens 840D. When I was at school they taught us, among a few other things, the rule: I before E except after C.

Click here for Siemens training.

Well I never took it in because I can never remember how it works with Siemens. Anyway let’s forget spelling bollocks and get on to the exciting stuff of CNC Programming.

Siemens 840D is an amazing control it’s so versatile. I honestly think that if you could find the right G code it could make you a one shot skinny latte with a shot of caramel syrup. No I’m joking it obviously can’t add syrup.

This article is about circular moves on the Sinumerik Siemens 840D.

Now we all know on a Fanuc it’s end point and rad (piss easy you say) and Heidenhain, well they have a lot of ways too actually.

The Germans have got this circular milling business fuckin nailed.

Siemens 840D

Gadgets

When you’re a real geek like me you just keep looking for more and more things that a control will do.

On the Sinumeric Siemens 840D it’s never ending.

Sometimes I think “shit that’s amazing” and even though I can’t think of a use for whatever it is I found. I can’t help but think maybe one day I will. You know like that bread making machine you bought that’s at the back of the cupboard.

But it’s like they cover every option and permutation you will ever want.

For example this video shows how you can simply add a radius to a corner. You just program it point to point. It’s a 50mm square so you program it to X50. Y50.. Then when you want rads on the corners you just stick them on the end.

The smart arses are now saying “so what, I can do that on my Fanuc”. (I say “good luck with that one”)

Heidenhain is easy you just add RND

Ok so here is a video showing you how.

Type 1 Corner Rounding Siemens 840D

Now I know what you’re thinking (“so what”). But what if you wanted a different feed-rate on the corner radius?

Easy just add FRC=50.would give you a feed of 50mm per minute just on the corner radius and it wouldn’t affect your other feed.

Stay Tuned It Gets Better

So your program looks like this

G41 X0 Y50.
X50. RND=20.
Y-50. RND=20.
X-50. RND=20.
Y50. RND=20.
X0
G40 X0 Y65.

Simply add FRC

G41 X0 Y50. F200.
X50. RND=20. FRC=50.
Y-50. RND=20.
X-50. RND=20.
Y50. RND=20.
X0
G40 X0 Y65.

Oh and if you want it to apply to every corner you don’t need to write one on every line just add M. Cool what.

G41 X0 Y50. F200.
X50. RND=20. FRCM=50.
Y-50. RND=20.
X-50. RND=20.
Y50. RND=20.
X0
G40 X0 Y65

Oh and you can do the same with the RND just add M

G41 X0 Y50. F200.
X50. RNDM=20.
Y-50. 
X-50. 
Y50. 
X0 RNDM=0
G40 X0 Y65

Then RNDM=0 will cancel it.

Type 2 Endpoint and Radius Siemens 840D

This is how you do it just like Fanuc n Haas

 

 

I mean really it’s not much different to fanuc and Haas except instead of just putting R20. you have to put CR=20. these Siemens guys love those equals signs they seem to want them everywhere.

Type 3 Tangential Rads Siemens 840D

I love this one (Heidenhain do it too) all you do is give it two points and it just sticks in a tangential rad.

Oh by the way if you think there is more than one size tangential radius between two lines then you should be absolutely ashamed of yourself.

It’s all done with a simple CT don’t you just love it this is soo damned exciting.

Type 4 Angle Siemens 840D

This one is amazing you just program a radius and the angle.

Type 5 Using I and J Siemens 840D

 

Siemens 840D

Proceed At Your Own Risk

As much as I don’t like to swear in my articles I’ve got to say I fuckin hate I and J as a way of circular interpolation.

There I’ve said it.

It’s pointless, it’s outdated and it’s utter bullshit.

The only time I would ever use I J and K would be to machine a full circle. Other than that I would rather extract my own wisdom teeth with a hammer and chisel.

 

There it is. The I and J are an incremental distance to the centre of the circle from where you are. Oh and because Siemens is so versatile you can even program I and J as absolute values from your datum.

If you find the above statement confusing then good. It serves you right for using a completely useless outdated way of programming a simple corner rad.

So now you know what I mean. Joking aside, these methods are all tools in your programming toolbox. One day you’ll see a use for one of them and you’ll think “I remember that grumpy old bastard wrote an article on that”.

Then I hope you’ll return to 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.

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

WP to LinkedIn Auto Publish Powered By : XYZScripts.com