OK I found a post of yours that explains it a bit more
If you have an ohmic touch off + floating head then you can modify the code to test for which one has been triggered and set the right offset.
I normally do this via a normally open relay so that both the ohmic and floating head are wired back to the same G31 probe input.
At the start of the G31 routine, I close the relay, and test the input (via code) and if the input is triggered,
I then release the relay and then use only the floating head input, otherwise I probe with the relay enabled until the G31 skip (probe) input is triggered at which point,
I then break the relay signal and test the input, and then set the offset according to the ohmic or floating head input.
This gives me a better idea. Will have to think about how to write the macro to do this but I think I can work it out given time.
Thanks again Rob.