I found the problem. The program was precalling the same tool it just put away. Then calling the next tool. Meanwhile the tool change door is open with coolant spraying all over the tool chain. I't was covering the photo eye causing it to malfunctiion. Changed the program and cleaned the photo eye. No problem since. Thanks for the help.