I'm using an electronic tool touch off setter so I can maintain an accurate local Z zero when changing tools on my benchtop mill. It's wired into WinCnc and functions as a switch.
Here's the scenario I'd like to have happen. I have a Z zero position I use for my rotary axis a known distance (-28.65mm) above the top of the toolsetter. After a tool change, I'd like to touch off on the toolsetter and reset local Z at -28.65 and return to local X0Y0 so I'm ready to run the next program.
I can send the spindle to the toolsetter, manually touch off and trip the switch, G92 Z-28.65 and it works fine.
If I run this:
G53 Z0 [Lift Z Head]
G53 X276 Y125 [Move to XY position of tool measure switch]
L91 G0 Z-100 [Move down the rapid distance]
L91 G1 Z-250 M28 F20 G31 [Move down to tool switch]
g92 z-28.65 [set LZ at TOOL SWITCH HEIGHT]
G53 Z0 [Lift Z Head]
G0X0Y0 [RETURN TO LOCAL XY ZEROS]
It runs but doesn't set a new Z position, Z zero remains whatever my previous local Z zero was.
What am I missing?
Thanks,
Harry