Fanuc 21m programming question
Fanuc 21m programming question
(OP)
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
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





RE: Fanuc 21m programming question
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
RE: Fanuc 21m programming question
<nbucska@pcperipherals.com>
RE: Fanuc 21m programming question
Im actually on the maintenace end of things but trying to learn the programming side also.
Thanks,
Bob
RE: Fanuc 21m programming question
RE: Fanuc 21m programming question
thanks,
Bob
RE: Fanuc 21m programming question
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.