I have to run oversize stock so the profiling endmill would plunge and I don’t want to MDI through all that so I started writing a program to deal with it but it won’t post from either USB or MasterCam. Am I not able to just use notepad and make it an *.nc or do I have code errors that just keep it loading till it times out? I realize I have a ton of stuff to fix on it, I just want to get it onto the machine because I’m better at debugging there than on the computer.
Here is the program:
(O1965);
G00 G17 G40 G49 G80 G90 G98 (SAFETY LINE);
M06 T3 (T3 .5 CA EM 2FL 1.625 LOC X0=RIGHT Y0=BACK Z0=TOP OF STOCK);
(*********************************************);
#500=STOCKX #501=FINISHX #502=((#500-#501)/2) #503=#502;
#510=STOCKY; #511=FINISHY; #512=((#510-#511)/2); #513=512;
#520=“PROFILEDEPTH” (CONTOUR FROM MASTERCAM);
#521=“TOPOFSTOCK” (FROM MASTERCAM);
#530=PROFILETOOLDIAMETER;
(G54X=PROBED STOCK POINT- #502, G54Y=PROBED STOCK POINT- #512, G54Z=PROBED POINT-#521);
G54 X0. Y0. M03 S2000;
M08 (*********************************************);
#503=#502 (RESET X COUNTER, PROFILE RIGHT SIDE);
G00 G90 G54 X(#502+#530) Y(#512+#530);
G43 H3 Z.1;
WHILE ((#503) GE (#501+.005))DO1;
G00 G90 G54 Z.1;
G01 Z-(#520+#521) F50;
G01 Y-(#510+#530+#513);
#503=#503-(#530/4);
Z.1;
X#503 Y(#512+#530);
END1(**********);
#503=#502 (RESET X COUNTER, PROFILE LEFT SIDE);
G00 G90 G54 X-(#501+#502+#530) Y(#512+#530) #503=#502;
G43 H3 Z.1;
WHILE ((#503) GE (#501+.005)) DO2;
G00 G90 G54 Z.1;
G01 Z-(#520+#530) F50;
G01 Y-(#510+#530+513);
#503=#503-(#530/4);
Z.1;
X#503 Y(#512+#530);
END2(*********************************************);
#513=#512 (RESET Y COUNTER, PROFILE FRONT SIDE);
G00 G90 G54 X-(#501+#530) Y(#512+#530) #513=#512;
G43 H3 Z.1;
WHILE ((#513) GE (#511+.005) DO3;
G00 G90 G54 Z.1;
G01 Z-(#520+#530) F50;
G01 X-(X#500+#530+#503) ;
#513=#513-(#530/4);
Z.1
X(#502+#530) Y;
END3(**********);
#513=#512 (RESET Y COUNTER, PROFILE BACK SIDE);
G00 G90 G54 X-(#501 +#502 +#530) Y(#512+#530) #513=#512;
G43 H3 Z.1;
G01 Z-(#513) F50;
WHILE #512 GE ((#511/2)+.125) DO4;
G01 G91 Y#510;
G00 G90 G54 Z.1;
X-.125 Y.75;
END4;
M30;