I am working on a macro in which I can measure my part, input the measurement into a X and Z user defined variable screen box and have the offsets calculated relative G54-59. Right now the "off offset amount" is applied to a G52 X#X Z#Z. This macro works great the first run, but stays at that offset relative to the original offset and my variables no longer work as planned. I would like the new offset to be 0 relative to Machine 0 every time a part drifts/lost step and the off part measurements are entered into the cpu. This way all the guy working with me has to do is measure the part, input measurements(only if off) and load the lathe. Would a G92 be a good approach. Kind of a drifting/resetting offset.
Any advice is appreciated
Mike