It may be that your toolchanger count is set wrongly. This will have the effect that you describe. It will be easy to tell if it is by calibrating the toolchanger magazine and then physically rotating it to station 24 and seeing what number it produces on the display. If it was set to, say, 30, Then to put a tool in pocket 24, it will actually put it in 18. If it completes a rotation, it will not see the reference switch where it expects it and it will fault with the other error.
Go to auxiliary, press enter, 100, enter and select the integrator parameters.
Enter the integer parameters and check that number N95:57 is set to 24.
Exit, save and re-boot.