How do you do a tool change mid job?

I would like to be able to change tools mid job. I know how to do it in Aspire code wise, but how do I ensure the Z0 is the same for the new tool?