Standard M6 macros don't do any tool height measurement. Can you say a bit more about what you are doing? Are you also doing tool height measurement with a touch probe during the tool change? Are you also using a motion controller?