PDA

View Full Version : Help Needed: Lathe live tool milling Cutter comp.



joseph10s
03-29-2011, 10:08 PM
I am working on a Hyundai Kia SKT 21LMS with Fanuc oi-TC controller. I am attempting to mill a 1/4" hex on the face of a 3/8" SS rod. My initial efforts have lead me to the following code which uses polar coordinates (g112/g113/g12.1/g13.1) and tool cutter comp (g41/g42), both of which i am not very familiar. I get an error (041 interference in NRC) after initiating cutter comp. My g-code is below.

any ideas? or suggestions. attached are several photos of gcode on the machine screen and the display a two lines before it errors.
(I think the photos show a couple variations of the code)

1/2" END MILL
ORIENTED ALONG Z-AXIS
TOOL OFFSET R=.25 T=0

G20 G40 G99;
G54 G0 G28 U0;
Z2.5;
G54 T1111;
G113;
M54;
M43;
G0 C0. M111;
G97 M13 S1000;
G0 Z-1.25 X2.;
G112;
G1 G98 G42 X1. F20.;
X.25 C0.; **ERROR HERE**
C.0722;
X0. C.1443;
X-.25 C.0722;
C-.0722;
X0. C-.1443;
X.25 C-.0722;
C.1443;
G1 Z.1;
G113;
G0 G28 U0.;
Z2.5;
M15;
M40;
M1;

Thanks for the help,
Joseph