Hi,
I'm working with a program where I need to change my work offset dozens of times. G10 ... G91 works fine for moving the work offset in relation to its previous location but I also need to set the work offset X0.Y0. to the current position of the tool. I'm fairly sure I have done this in the past but my memory is hazy.
The Haas on-line manual lists G10 L20 P50 G90 X100. Y250. to set the work offset. This works in relation to machine coordinates but it is not ideal since we will most likely run this code in the future in a different position on the table.
Code snippet (the first line is the one that I would want to modify to pick up the current tool position instead):
G10 L20 P60 X-527.865 Y-256.719 Z-419.036 (Set G154 P60 work offset in Position 1);
G90 M97 P133;
G10 L20 P60 G91 X-48. Y187.50 (Move G154 P60 work offset to Position 2);
G90 M97 P133;
G10 L20 P60 G91 X0. Y-75. (Move G154 P60 work offset to Position 3);
G90 M97 P133;
Haas VF-4 with Next Gen Controller. We don't have the macros add-on on this machine.
Any tips would be appreciated!