Care to post some g-code?
Hello, I am using a Haas VF-1. Cutter compensation seems to be working partially as the tool is off to the left side of my path using G41. However when I changed the diameter of the tool in the tool offsets page it doesnt seem to change the offset of the tool.
Help please! I spent 3 hours pulling my hair out trying to solve this today.
Similar Threads:
Care to post some g-code?
%
O51500;
N1 T01 M06 (.500 DIA ENDMILL);
N2 90 G54;
N3 G00 X-.75 Y1.425 M03 S5000 (MILL FACE);
N4 G43 H01 Z-.015;
N5 G01 X4.0 F40.0;
N6 G00 Y.950;
N7 G01 X-.75 F40.0;
N8 G00 Y.475;
N9 G01 X4.0 F40.0;
N10 G00 Y0;
N11 G01 X-.75 F40.0;
N12 G00 Y-.475;
N13 G01 X4.0 F40.0;
N14 G00 Y-.950;
N15 G01 X-.75 F40.0;
N16 G00 Y-.1.425;
N17 G01 X4.0 F40.0;
N18 G00 Z1.0;
N19;
N20 (MILL HOLE);
N21 G00 X1.250 Y0.0);
N22 Z.01;
N23 G150 P51502 X2.125 Y0.0 Z-1.080 G42 J.125 K.02 Q.1 R.1 D01 F15.0;
N24 G40 X1.250 Y0.0;
N25 G00 Z1.0;
N26 G28;
N27;
N28 (OUTSIDE PROFILE);
N29 T02 M06 (.375 DIA ENDMILL);
N30 G00 X-.500 Y.531 M03 S6000;
N31 G43 H02 Z-0.0;
N32 M97 P85 L22;
N33 G40 G00 Z1.0;
N34 G04 P30.0
N35;
N36 (FINISH OUTSIDE)(CHANGE DIA T02);
N37 G00 X-.500 Y.531 M03 S6000;
N38 G43 H02 Z-.550;
N39 G41 G01 X-.250 Y.531 F30.0;
N40 X.0;
N41 X.875 Y1.076;
N42 X1.6875;
N43 G02 X1.875 Y.8885 R.1875;
N44 G01 Y.576;
N45 G02 X1.875 Y-.576 R.688;
N46 G01 Y-.8885;
N47 G02 X1.6875 Y-1.076 R.1875;
N48 G01 X.875;
N49 X0.0 Y-.531
N50 G01 X-.500;
N51 G00 Y.531 (RAPID TO BEGINNING);
N52 Z-1.080 (SECOND PASS);
N53 X.0;
N54 X.875 Y1.076;
N55 X1.6875;
N56 G02 X1.875 Y.8885 R.1875;
N57 G01 Y.576;
N58 G02 X1.875 Y-.576 R.688;
N59 G01 Y-.8885;
N60 G02 X1.6875 Y-1.076 R.1875;
N61 G01 X.875;
N62 X0.0 Y-.531
N63 G01 X-.500;
N64 G00 Z1.0
N65 ;
N66 (RADIUS EDGE);
N67 T03 M06 (.125 RADIUS END MILL);
N68 G00 X-.500 Y.531 M03 S5000;
N69 G43 H03 Z-.120;
N70 G01 X0.0 F25.0;
N71 X.875 Y1.076;
N72 X1.6875;
N73 G02 X1.875 Y.8885 R.1875;
N74 G01 Y.576;
N75 G02 X1.875 Y-.576 R.688;
N76 G01 Y-.8885;
N77 G02 X1.6875 Y-1.076 R.1875;
N78 G01 X.875;
N79 X0.0 Y-.531
N80 G01 X-.500;
N81 G00 Z1.0;
N82 G28;
N83 M30;
N84 ;
N85 (OUTSIDE SUBPROGRAM);
N86 G91 Z-.050
N87 G90 G41 G01 X-.250 Y.531 F30.0;
N88 X.0;
N89 X.875 Y1.076;
N90 X1.6875;
N91 G02 X1.875 Y.8885 R.1875;
N92 G01 Y.576;
N93 G02 X1.875 Y-.576 R.688;
N94 G01 Y-.8885;
N95 G02 X1.6875 Y-1.076 R.1875;
N96 G01 X.875;
N97 X0.0 Y-.531
N98 G01 X-.500;
N99 G00 Y.531 (RAPID TO BEGINNING);
N100 M99;
%
%
O51502;
N1 X1.25 Y.4375;
N2 X1.5;
N3 G02 X1.5 Y-.4375 R.4375;
N4 G01 X1.25;
N5 G02 X1.25 Y.4375 R.4375;
N6 M99
%
And just where are you having trouble? N37? I don't see any G40 being used either.
N66 is where im having the most trouble. I cant get my radius cutting end mill to radius the profile. It goes right beside the edge of the stock and no matter what value i place for the tool in the tooling offset page it keeps cutting about the same distance away.
What do you mean no G40? Forgive me im not a regualar CNC programmer.
try putting a d2 on line 87 of the program to get the tool offset for tool 2
rcs60
Yeah, I see that D02 is missing. I often lose a part because I forget the "D."
I am now in the habit of putting the D in right when I call the tool;
T3 D3 M6
I have been meaning to edit the quick code to add the D to the tool change as well.
"There is no such thing as a gun free zone."
Ray Brandes, Ray-Vin.Com, PCB, FL 32408 USA
I always put "D" in my G41/G42 lines.
Alternatively you may want to use two different Ds for the same tool.
An open mind is a virtue...so long as all the common sense has not leaked out.
Two Haas VF-2's, Haas HA5C, Haas HRT-9, Hardinge CHNC 1, Bother HS-300 Wire EDM, BobCAD V23, BobCAD V28
I do the same thing regularily, rough n finish pass, maybe incorporate a subroutine profile instead of copy n paste.