Sinumerik Training Sub Programs

Sinumerik Training Sub Programs

CNC Training Call David: 07834 858 407

CNC Training Centre Reviews

Sinumerik Training, with Siemens Sinumerik there are many ways to call a subprogram. Subprograms are a really convenient way to repeat a piece of program.

You could have an incremental program and call it in several places. You could profile the outside of a part with two different tools. One for roughing then one for finishing.

Siemens Training Click Here

The program below calls an external subprogram “THE_SHAPE” twice. The first time with a 20mm Endmill then the second time with a 10mm Endmill.

External means it’s another program somewhere in the directory.

Sinumerik Training

This is the subprogram.

Sinumerik Training

These subprograms need to end with an M17 (Fanuc uses M99). This tells the control to go back where it came from.

Providing the program is in the same folder as your main program then you just need to write in the name to call it.

“Read More”

Siemens Program Training Cool Siemens Stuff

CNC Training Call David: 07834 858 407

CNC Training Centre Reviews

This Article is About TOFFR

TOFFR….  No it’s not some kind of vegan substitute for cheese.

It’s a programming command on a Siemens 828 or 840 Sinumerik Control.

Now everyone who reads this crap knows that I usually start the articles about Siemens Program Training by saying how versatile they are.

Well today I’m not going to. Instead I’m going to show you a picture of the fly I bought from a local pet shop.

Her name is Tinkerbell.

“I want to buy a pet fly” I asked. “We don’t sell them” said the shopkeeper.

“Well there are quite a few in the window” was my reply.

I then forced him to sell me one for £25 (that taught him a lesson, I think he was afraid I’d call in trading standards)

Siemens Programme Training TOFFR

I could talk about Tinkerbell all day, but I’m not going to, Iv’e written this amazing article all about TOFFR it’s the Siemens vegan option.

Let’s imagine you want to machine around the outside of a shape. You want to rough it and leave material on. So what do you do?

Two Programs?

Do you have two programs one bigger shape for roughing and one that is the correct finished shape?

No you use TOFFR

What TOFFR does is modify you tool radius in your offset file.

Firstly you add some to it.

TOFFR=1. (Add 1mm)

Run your program which will leave 1mm on the size.

Then…

TOFFR=0 (Sets it back to it’s original amount)

Run your program again this time the tool is back to it’s correct radius and will therefore finish the part.

Take a look at the code below.

WORKPIECE(,””,,”BOX”,48,0,10,-80,-52,-52,52,52)
G40 G94 G64 G90

T=”CUTTER 12″
M6
D01
G54 G94

G0 X58. Y0 S1500 M3

Z-10.5
M8

TOFFR=1.;Add 1mm to radius

SHAPE:
G1 G41 X48.Y0 F1500.
Y-48.RND=10.
X-48.RND=10.
Y48.RND=10
X48.RND=10.
Y0
G40 X58. Y0
ENDLABEL:

TOFFR=0;Reset Radius

REPEAT SHAPE

G0 Z50
M17

Let me explain what’s going on here.

This line:

TOFFR=1.;Add 1mm to radius

Will add 1mm to the active tool radius so you mill around the part leaving 1mm of extra material.

Then this line:

TOFFR=0;Reset Radius

Takes the 1mm back off so when you repeat the section of code with this line.

REPEAT SHAPE

It finishes the shape.

Here is a nice video I made.

Oh and if you want to know about repeating sections of program  and subprograms read this.

Thanks

If you feel you have been affected by any of the issues raised in this post or need CNC Counselling then contact me.

If you want to learn to program CNC Milling Machines

Siemens 840D Sinumerik training

Look no further Contact CNC Training Centre

 


Siemens End Point and Radius Arc

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (Just saying)


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.

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (Just saying)

 

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”

 

 

 


Siemens TOFFR To Change Tool Radius

CNC Training Call David: 07834 858 407

 

CNC Training Centre Reviews

30 five star ratings on Google (Just saying)

 


Careers in CNC

View all current vacancies in CNC

Click here

Call David: 07834 858 407