Repeat Canned Cycle Using L and K

Repeat Canned Cycle Using L and K

Category : Fanuc Mill Haas Mill

Repeat Canned Cycle

Repeat Canned Cycle, here is a simple G81 canned cycle.

O001 (Drilling Program)

T1 M6 ((10mm Drill)

G90 G0 G54 X50. Y50. S1500 M3
G43 Z3. H1 M8

G81 G98 Z-15. R1. F200.
X60.
X70.
X80.
X90.
X100.
G80

G0 G53 Z0
G53 Y0
M30

Now here is the same program in incremental.

O001 (Drilling Program)

T1 M6 ((10mm Drill)

G90 G0 G54 X50. Y50. S1500 M3
G43 Z3. H1 M8

G81 G98 Z-15. R1. F200.
G91 X10.
X10.
X10.
X10.
X10.
G80 G90

G0 G53 Z0
G53 Y0
M30

Both programs do the same thing now lets shorten the last one.

Repeat Canned Cycle L5 or K5

O001 (Drilling Program)

T1 M6 ((10mm Drill)

G90 G0 G54 X50. Y50. S1500 M3
G43 Z3. H1 M8

G81 G98 Z-15. R1. F200.
G91 X10. L5
G80 G90

G0 G53 Z0
G53 Y0
M30

(This would be K5 on a Fanuc control)

Now you have to admit that’s easy.

For all you “incremental deniers” come on now, this saves a lot of code.

And……

if the distance between the holes was 10.236 imagine having to add them all up.

Anyway that’s another argument for another time.

Repeat with No Repeat !!!

This article is about iteration. Which is just bullshit for “how many time you do it”.

In other word the L5 or K5 means do it 5 times.

You can also use L0 or K0 which means do it zero times (don’t do it).

O001 (Drilling Program)

T1 M6 ((Spot Drill)

G90 G0 G54 X50. Y50. S1500 M3
G43 Z3. H1 M8

G81 G98 Z-5. R1. F200. L0
M97 P500 (Go to drilling sub program)
G80
G0 G53 Z0

T2 M6 ((10mm Drill)

G90 G0 G54 X50. Y50. S1500 M3
G43 Z3. H2 M8

G81 G98 Z-15. R1. F200. L0
M97 P500 (Go to drilling sub program)
G80
G0 G53 Z0
G53 Y0
M30

N500 (Drilling Sub Program)
X50. Y50.
X60.
X70.
X80.
X90.
X100.
M99

What this means is you set the canned cycle up so the control know what you want to do. Because of the the L0 or K0 it does not actually drill a hole.

When it goes into the sub program it’s business as usual and it drills all your holes.

All your positions are self contained in the sub program.

Now it’s time for one of my famous, very boring stories.

Go here, this guys videos are way more interesting than this shit.

The Boring Story

Years ago when I worked at SP Engineering in Barwell. We used to make parts for knitting machines.

We made this part which was a massive plate covered in all different sized holes. Drilled tapped bored you name it. It was like that cheese that has all the hole in it. Well not really but you know what I mean.

We used to get a spot drill and just dot the plate all over. We then put the part into inspection where they used a CMM (coordinate measuring machine) to measure all the positions of the dots.

 

 

The probe just drops neatly into the spot drilling dots.

Also because each set of holes was in a sub program they could be reused once the positions were OK.

 

It is a useful method because once the sub program is used you know all the positions are correct for any subsequent tools. It makes prove out much easier.

Using L0 or K0 to Get Round Corners

This is a novel way to use L0 to get round the corner of a part.

L0 for a Haas control K0 for a Fanuc control.

Repeat Canned Cycle

 

 


Log out of this account

Leave a Reply

WP to LinkedIn Auto Publish Powered By : XYZScripts.com