Using R Parameters Siemens Sinumerik 828 840

Using R Parameters Siemens Sinumerik 828 840

R Parameters Siemens, on a Siemens control you can use R parameters to control a program externally.

“What’s he on about” I hear you say.

I’ll explain.

Imagine a sub program that has no value assigned to it’s feedrate. Well you could call the feedrate R1

G1 X50. F=R1

The program says to you “ok I’ll feed at R1” it thinks for a while then says

“what’s R1 David?” (Actually it wouldn’t know my name)

So you tell it.

R1=200.
G1 X50. F=R1 

So now it’s just like you wrote

G1 X50. F200.

Now I know what you are thinking saying, “just program that in the first place you prick.”

When you use this type of programming, known by posh people like me as parametric programming, you can program a shape then give it the dimensions externally.

You would usually have the shape in some kind of subprogram.

It’s All in The Pizza

It’s like ordering a pizza. They know you want a pizza but then they need to know all the other stuff like what size and what topping.

Anyway fuck the pizzas let’s talk about R values.

The difference is you can put whatever value you want in R1.

You could then use the same program to rough and finish the part. The first time you call it you put R1=100. the second time you put R1=200.

Fanuc uses a similar thing using # (sometimes called variable).

Instead of R1=6 it has #1=6. (you get loads of variables, #1 to #100 and more)

Heidenhain uses Q values Q1 = 6.

See how Fanuc do this.

See how Heidenhain do this.

Wait There’s More

You don’t just have to use R1 there are at least 99 of these bloody things.

You can use R2 R3 or R65 it’s entirely up to you, just don’t get confused that’s all.

Then comes the clever shit. You can actually do maths with them. You could put R1= R1 – 10.

This would take 10. off the feedrate.

You can even do things like cosines and sines and stuff like that. The mind boggles.

If you have a probing system then it will almost certainly be using R parameters in the background to grab data and the get the size information you want.

(Picture of my puppy for those who’d rather be on Facebook his name s Tallywacker)

You can program a shape and replace all the dimensions with R parameters. This is when it gets fuckin awesome.

The program below uses an R parameter for the corner rads and an R parameter for the width.

The left side is the main program. The right side is the sub program called each time.

R Parameters Siemens

Here is a video of the program in action.

Siemens Training 828 840D

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

 


Siemens 810d REPOS, are You Repositioning?

This article is about the Siemens 810d REPOS key.

I am so lucky that I get to meet so many fascinating people. Recently I worked at The National Oceanography Centre.

These guys do all sorts of scientific research shit. Most of it I don’t really understand but I do know they have their own ship and they go out to sea taking samples and fixing stuff.

This is what they say they do:

We provide industry with innovative solutions to their problems, train the engineers and audiologists of the future, and impact on society through our world-leading research.

Oh and they have this baby:

Siemens 810d Repos
Hardinge VMC 600

It’s a Hardinge VMC 600 and it’s got a Siemens 810D control and I love it. I definitely get too attached to the machines I work on and this one is no exception.

A bit grubby at the minute but they assure me she’s gonna get a makeover soon.

I Hate Celebrities

Tonight I’m stuck in my hotel room and the only thing on the telly is a load of Z list  celebrities competing to see who can make the best frittata. This gives me a problem in that I hate celebrity culture and I don’t have a clue what a fuckin frittata is.

Oh and on the other channel it’s celebrities on a games show crying cos they couldn’t win two thousand pounds for their chosen charity. I mean, fuck off , these guys spend five hundred quid on a pair underpants and could donate twenty grand to a charity without batting a surgically lifted eyelid.

Enough About Celebrities

Having not worked on this Siemens 810d control for a little while a few things had slipped my mind but it didn’t take long to get back up to speed.

Thanks for sending us the manuals YeovilMachine Tools YMT (within a couple of hours) not bad eh?

This machine is 15 years old and I would put it up against a lot of new machines for ease of use and just about everything.

Graphics Mmmmm…..

The graphics, as usual, are an absolute pile of dog-shit. But honestly what machines do have good graphics even new ones?

Don’t you just love em?

I mean graphics, they kind of serve a purpose in that you know that you are somewhere near what you want. Unfortunately that’s where it ends I’m afraid.

Anyway what is this self opinionated prick going on about today? You may ask.

Well………

It’s the Siemens 810d Repos Key

If you use this REPOS button all the time and you know what it does then you are on the wrong website. Clever people like you don’t belong on this website.

 

 

Yes this is it the Siemens 810d Repos

I’d just forgotten how useful this is so you will forgive me for getting really excited about it.

The great thing about being old, and there aren’t many, is constantly forgetting things. I know that sounds weird but you can get excited about something you already knew but forgot.

The button for fuck sake let’s hear about the button.

OK the button.

So you milled half way along a part and you want to have a look at it before you go on and possibly scrap the part.

Here Is what You Do

Hit CYCLE STOP, that’s this one….

It will oblige by lighting itself up. Now you can go into manual or jog depending on the age of your machine.

Siemens 810d Repos

Now move your X Y or Z anywhere you want so that you can have a good look at the part. Maybe check it or something?

You will need to stop the spindle if you want to open the doors.

Then when you are happy to carry on just hit CYCLE START button.

Siemens 810d Repos

If you’re thinking “hang on Dave, you didn’t switch the spindle on”

Clever Siemens 810d

First of all don’t call me Dave, I fuckin hate it, my name is David. Actually you don’t need to switch on the spindle, clever old Mr Siemens just does it anyway.

Your tool will just move straight back to where it was n carry on.

“But Dave what about REPOS”

Please stop calling me Dave or I’ll end this article now and you’ll never know.

The problem is that although the control is clever enough to know it’s got to go back to where it was before it carries on.

It will still hit things on the way like this.

So what do we do?

Yes we use REPOS

Siemens 810d Repos

Then we can separately move each axis back in whatever order we want.

Don’t worry if you get the direction wrong, it will only move in the correct direction and also the correct distance.

Each axis moves back to it’s original position with no fuss. Then when you’re ready.

Turn off the REPOS and press CYCLE START.

Siemens 810d Repos

You actually press JOG to switch off REPOS which is a bit strange but once you are used to the logic (if there is any) it’s just fine.

Siemens 810d Repos

On my machine the JOG button says Manual, I think Hardinge made their own button for this. Probably from recycled pubic hair.

I’m all for reducing carbon foot print n stuff but I prefer good old JOG.

Siemens 810d Repos

I did warn you the machines not clean yet.

So this is how it works

 

Not painful at all.

We do loads of Siemens training at the CNC Training Centre

 

 

 




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