I am trying to do some manual programming that I haven't been tasked with in close to 30 years. My question is, how do I run the same toolpath at different locations, within the same work offset. I have the g-code, (a deburring toolpath for a counterbore on a shaft) which is from another machine. The part has 6 identical holes, and the machine holds 4 shafts located at G54 thru G57.
I am attempting to use G52 with a subprogram N500, which contains the deburr toolpath. Something like this:
G0G54X0Y0
G52 X-330. Y7.330 A-133.
M97P500
G52 X-165.
M97P500
G52 X0.
M97P500
G52 X165.
M97P500
G52 X330.
M97P500
M01
N500
(HOLE a1)
N6930 G0 X1.542 Y-1.037
N6940 G0 Z19.5
N6950 G1 Z17.574 F500.
N6960 G1 X1.531 Y-1.346 Z17.932 F2000.
N6970 G1 X1.302 Y-2.129 Z17.896
N6980 G1 X1.029 Y-2.549 Z17.668
N6990 G1 X0.645 Y-2.885 Z17.544
.......
..
M99
What is happening is that the machine seems to skip the G52 X-330 Y7330 A-133 line and go directly to the first line of the subprogram, which then goes to the G52 location. Is there something I'm missing? This would normally take me 5 minutes to program with Mastercam, but my new employer believes that splicing code from another machine, using Notepad, is better than giving us the proper tools to do our jobs.
Machine is a Haas VF6SS if that matters.
I am attempting to use G52 with a subprogram N500, which contains the deburr toolpath. Something like this:
G0G54X0Y0
G52 X-330. Y7.330 A-133.
M97P500
G52 X-165.
M97P500
G52 X0.
M97P500
G52 X165.
M97P500
G52 X330.
M97P500
M01
N500
(HOLE a1)
N6930 G0 X1.542 Y-1.037
N6940 G0 Z19.5
N6950 G1 Z17.574 F500.
N6960 G1 X1.531 Y-1.346 Z17.932 F2000.
N6970 G1 X1.302 Y-2.129 Z17.896
N6980 G1 X1.029 Y-2.549 Z17.668
N6990 G1 X0.645 Y-2.885 Z17.544
.......
..
M99
What is happening is that the machine seems to skip the G52 X-330 Y7330 A-133 line and go directly to the first line of the subprogram, which then goes to the G52 location. Is there something I'm missing? This would normally take me 5 minutes to program with Mastercam, but my new employer believes that splicing code from another machine, using Notepad, is better than giving us the proper tools to do our jobs.
Machine is a Haas VF6SS if that matters.