I have another problem, when tool is longer than previous tool used, when it return to work position from tool change position it stop with error Machine limit reached, when is shorter it have no problem.
The start of changing the tool is from Z0 machine coordinate system because at the end of any toolpath I have a G28 Z0 for safety.