Tool Length Probing in UGS

I’m trying to write up a macro for UGS to do tool length probing, but when I run it, the tool just stops on the probe after touching off. I can see the tool offset in the PRB message in the console, so I know it hit the switch, but it doesn’t do the second, slower probe and I don’t know how to get the measurement from the console into G43.1. Any tips would be appreciated.


What is your macro? Lots of people do this with UGS.

You might also want to check out the nightly version of UGS platform, there is a new plugin that helps with probing: