Siemens Using RND
Category : Siemens
CNC Training Call David: 07834 858 407
30 five star ratings on Google (Just saying)
Category : Siemens
Category : Siemens
I remember a long time ago we used to run metric programs and imperial (inch programs). So if the drawing was in inches then that’s how we programmed it. Seemed like a good idea at the time no converting figures and no need for writing on drawings.
You had an inch drawing, inch micrometer so why not have a program that’s in inches too?
One day someone (not me, honest) changed an X figure by 1 inch thinking it was a 1 mm.
The difference between one inch and 1 mm is what we call a country mile or a shit load. Anyway the part flew out the chuck on the impact of hitting the tool.
G20 was assigned to our history book. Oh and the boss shoved the broken tool up my arse.
I often work in Scotland where there are a lot of engineering companies specialising in Oil and Gas type work. As a result most of them work exclusively in inches. To be honest to me it’s a pain in the arse and I never quite get used to it. Although when I did my apprenticeship at Rolls Royce in 1971 things were just changing over so in theory I should have a brain measured in inches (it wouldn’t be many by the way).
Metrification (it’s not a new sexual identity)
I need to be careful here, because I’m now at that age where you can bang on for hours about all this kind of innocuous shit (it’s what old men do apart from pissing themselves if there’s not a toilet nearby).
To change to inches on a Fanuc control select MDI and go to your setting screen, press the offset/settings button.
Just change from 0 to 1.
Shut your machine off and back on again then zero return it if required. Everything will change to inches (you’ll now have four decimal places)
Category : Siemens
Category : Siemens
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.
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 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.
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.
Here is a video of the program in action.
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.
If you have been affected by any of the issues in this post or need CNC Counselling then contact me.
If you want to learn to program CNC Milling Machines
Look no further Contact CNC Training Centre