Hi guys,
This is a copy and paste I did over on cnczone. I wanted to post it here as well since Mach users will understand the software better.
"Hey guys,
There was a thread a few days back that asked about G92 and immediately the thread went to why it shouldn't be used and the G54 up codes should be used instead. I have used the G92 for three years now but see an immediate need to move on. I'm gonna need some help on this.
Let me set the stage. I do not have an industrial strength machine, but it is all I have presently. I use Mach2/3 for my controller and it basically supports all the offset codes. I have a 4th axis that runs parallel to my x axis and I have to be dead centered over the a axis center or my parts are trash. Here's the problem. I use limit switches to set my home positions and for the most part they are within about .005" which is close enough. You will notice I said " for the most part"! My y axis seems to move from time to time and this is the axis that has to be centered over the a axis centerline. I have a known distance from the faceplate of the a axis in the x, which the tolerence really doesn't matter as long as the machine returns to 0 each time after the initial reference move. So far that is the case. Z is set using a tool set switch with is within the .005" range too. To get around the y problem I have written a small program that cuts a slot 1" long from either side of a piece held in the a axis and rotated 180 for cuts to be made from either side. I then measure the difference of the cuts, divide by 2 and move the y axis to the correct dro reading.
Now for sake of time let's assume my known correct position is:
x27.200y108.4724z-2.125a0.000 BTW this is my know position today.
The tool length set switch uses a G92 to set the tool tip at a know distance from the centerline of the a axis. This macro also sets the z axis dro to 0.000 G92 is modal so it is in effect till it is canceled, but presently only in the z axis.
All my programs are written from x0.00y0.00 with whatever z I need, and there is a G92X0.00Y0.00Z0.00A0.00 used about 5 lines into my programs to set all dro's to zero.
With this info, can anyone take the time to explain in very plain English how to do this with the offsets other than G92. It is possible to have a new tool set macro that does not use G92, so please take that into consideration.
I know this is more like a book, but I only want to have to learn this stuff one more time! Thanks in advance to anyone willing to help.
Mike
__________________
No greater love can a man have than this, that he give his life for a friend. "
Any help would sure be appreciated.
Mike