First off, I"m a newbie when it comes to programming. But I am learning. I have a program that machines a part. For the side in question, it machines 8 points with a spot drill, uses an end mill to finish the surface area, drills and taps 6 holes and then drills the final 2 dow pin locations. For some reason, these dow pin holes have traveled out of location. Everything else is within tolerance. I have been trying to adjust the X and Y coordinates in the program since all of the tooling on this side of the part uses the same G54.1 P#101 offset. I can get the first dow pin hole to move but the second one won't budge. I determined the coordinates for the dow pin holes by matching the X/Y coordinates with the spot drill tool to the coordinates used by the 5mm drill used for the holes. The program syntax goes as follows:
IF[#1LT1]GOTO9999
(Must start from prog 11 or 12)
(1st x.005 y.002 z-.007)
(2nd x.0025 y-.0076 z .007)
(3rd x-.001 y-.001 z.015)
G90G80G00
M8
M400
N2
(t2 5/8 Spot Drill)
G100 T2 L1 G90 G54.1 P#101
IF[#1NE2]GOTO9002
G51.1 X0.
N9002
G0 X7.0276 Y-2.2492 A0.
G43 Z1. H2 S1500 M3
M8
G99 G81 Z-.190 R.25 F30 P.1
Y.7488 X7.0276
X2.9578 Y1.9635
X-1.371 Y2.1490 Z-.1 F15. (Pin #1 location)
X-1.7667 Y1.9725 Z-.19 F30.
Y-1.9625 X-1.772
X2.9528 Y-1.9625
X2.559 Y-2.146 Z-.1 (Pin #2 location)
G80
G50.1 X0
N1
M432
and then it uses an endmill for the surface, and a drill and tap for the 6 threaded holes and then goes into the 5mm drill for the pin holes:
(T5 5MM Drill)
G100 T5 L6 G90 G54.1 P#101
IF[#1NE2]GOTO9005
G51.1 X0.
N9005
G0 X-1.371 Y[2.1490] A0. (Pin #1 location)
G43 H5 Z1. S5000 M3
M8
G99 G81 Z-.27 R.1 F15. Q.09
X2.559 Y[-2.146] (Pin #2 location)
G80
G50.1 X0
N6
Each pin hole location was off on the X and Y planes. Each hole needed to be moved +.003" in X and Y. The X-1.371/Y2.1490 hole did move when the changed to X-1.368/Y2.1520. The X2.559/Y-2.146 did not move regardless of what the coordinates were changed to. I did change the coordinates in the Spot Drill and 5MM blocks.
I also had another thought about changing what offset the 5MM drill uses since all of the tools on that side use G54.1 P#101. But I can't find where the G54.1 P#101 offsets are listed/located. This is a brother vertical mill 32NB. I access the offsets by hitting the data hard key, the offset soft key which gives me the G54-59 offsets. There is another softkey labeled additional offsets which gives me blocks numbered 1-48. But I don't understand how that is referenced. Meaning if I'm trying to use the first block (#1), is that block called up by G54."1" P#101 or G54.1 P#10"1" or something different entirely. But I think that if I used a different G offset for the 5MM drill, I would also have to use that offset for those relative coordinates used by the spot drill.
Priority for this question would be why the X2.559/Y-2.146 hole won't move or other ways I could adjust it +.003 on X and Y.
Sorry for the drawn out explanation.
Thanks,
Jim