Category Archives: Siemens Turn

Writing Siemens Work Offset From Your Program

Writing Siemens Work Offset From Your Program

Siemens Work Offset

On a Fanuc control it is quite common to use G10 to write your work offsets (G54 to G59) from your program. It has many advantages the main one being that no-one gets to mess with your precious work offset once its set.

 

If some prick comes along and changes it, you don’t have to give a flying monkey shit. Your Siemens Work Offset is safely locked away in your CNC Program.

Oh and you get to do shit like this

Well if you ever lie awake at night thinking “how is that done on a Siemens control” I’m going to give you the answer. I often had these thoughts so you are not alone.

But then one day, not long back, someone asked me outright “How’s it done” once I got over the initial embarrassment of being asked such a direct question I told em.

Well first let’s say there is no such thing as G10 on a Siemens control.

You use this $P_UIFR[1] to write your Siemens Work Offset. The 1 being G54 and 2 G55 you can take this right up to G599.

Beware you are in the adult section now, messing with system variables.

Let me say “I fuckin love Siemens controls” there you go I’ve said it.

But, and a massive but it is, you get the syntax wrong on this and all hell will break loose. Not only will your CNC Machine explode in your face but when you get home your partner will be shagging the window cleaner in the remains of your burnt down house. So beware before you press that button to write your Siemens Work Offset.

You need loads of commas just put em everywhere and you wont go wrong.

This is how it looks:

$P_UIFR[1]=CTRANS(X,100.,Y,200.,Z,300.)

This will set X100. Y100. and Z300.

Great I Can Read and Write

While we are on the subject, you can also read the work offset figures back into R values. You can then keep these and do what you want with them. Maybe sell them to a friend for profit, the choice is yours.

Siemens Work Offset

The 1 just after the square bracket is for G54 (2 would be G55) then give the axis in our case X Y and then Z

R1=$P_UIFR[1,X,TR]

R2=$P_UIFR[1,Y,TR]

R3=$P_UIFR[1,Z,TR]

The video below shows R1 R2 and R3 set to zero, after reading the program it extracts the offset figures G54 X-100. Y-200. and Z-300. and puts em in R1 R2 and R3 variables.

So there you have it setting you Siemens Work Offset.

Easy isn’t it.

You’re a big boy now playing with system variables but just remember “with great power comes great responsibility”

 

 

 


Save Offsets Siemens 828

Save Offsets Siemens 828, I often see my job as a trainer as the bloke who works out what those odd buttons do. You know, the one you see every day but never dared press it because it might cause your machine to implode and completely destroy itself.

As you know I offer on-site training on all types of controls.

Well I was messing with a customers machine today and found another, button that is.

Save Offsets Siemens 828

Save Offsets Siemens 828

This is the chappie his name is Archive but he does other things other than what it says on his tin so to speak.

If you dare to press him you have the luxury of being able to save all your offset and tools related to your program and you will be blessed with special powers, a bit like Spiderman but without all those sticky bits of thread.

“How cool is that”

What you Do to Save Offsets Siemens 828

First of all you will need to be in Program Manager.

You should then be able to see this screen.

Save Offsets Siemens 828

Now press the button.

You will now have the option to press

Save Offsets Siemens 828

So go ahead press it.

From the dropdown boxes you can chose what you want to save.

Save Offsets Siemens 828

Press OK and everything will be saved in a file which has the same name as your program flowed by TMZ. Not sure what that means but it contains all your shit.

So that’s good (Save Offsets Siemens 828)  isn’t it?

It has the extension INI.

My program was FACEMILL so it added FAEMILL_TMZ.INI

So now it’s easy. When you want to recall this information just open the file (much like you open a program) and there it is.

Save Offsets Siemens 828

 

Just click OK and your data is all reloaded.

Save this file with your program and everything you need is there. Don’t you just love that??

I know I do.

This is Storm, a friend of mine. He’s only a boy but when he grows up he’ll be a tiger.

Sorry but did I mention my 5 star reviews?

I really am far too shy to do this but the wife will kill me if I don’t.

Haas VF3

 

 

 


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