Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fanuc 21m programming question

Status
Not open for further replies.

bob1371

Industrial
Jun 6, 2003
33
Hello,

I have come across something in a program that I have never seen. The program has 4 lines in it that will have either a x or y axis move followed by K0.

example
x240.5 k0
y100.2 k0

Any idea what the K0 is?
thanks,
Bob
 
Replies continue below

Recommended for you

The Fanuc has a repeat function used in the G80 series commands.

Example would be:

G81 Z-20.0 R5.0 F100.0 K2
X100.0 K2

The K in these examples would drill twice at each location. Perhaps the programmer was anticipating a problem?

Dave
 
If K2 = drill twice is K0= don't drill it at all ?

<nbucska@pcperipherals.com>
 
thanks for the reply. Im assuming the K0 is dont drill at all. This is during a move with the B axis turned over and the drill moving around a clamp cylinder. I figure it was for safety but still not sure it was needed.
Im actually on the maintenace end of things but trying to learn the programming side also.

Thanks,
Bob
 
Somebody once told me that a K0 would let you skip some holes in a hole pattern. Say you broke a tap in hole 3 of 8, but wanted to tap 4-8 before removing the broken tap. Put K0 in the xy lines of the holes you want to bypass.
 
maybe this person did something like grid drilling and just put the K0 at the holes they didnt want to drill? I will take them out and single block thru it (slow speed of course) and let ya know.

thanks,
Bob
 
K0 = data set only

Typically K0 is used to data set a canned cycle so that the action is not carried out when the cycle line is read. This is normally used when a sub-program is holding the hole positions for instance.

i.e.
G81 X1. Y1. R.5 Z-1. F1. K0
M98P1000

If the K was left out the cycle would execute before calling sub.

In effect, as mentioned above, it is usable as a position skip.

Older FANUC's use L instead of K. Nornmally a K with a value is used in conjuction with INCREMENTAL values in a canned cycle and will produce a grid shift with each instance. ABSOLUTE will run twice at same location as previously mentioned.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor