I've seen machines in dirty environment and limit switches end up sticky causing tool change cycles to freeze.
Find all the hidden limit switches and make sure they work.
Some of the older switches often seem to work, but the contacts are no longer reliable.
Typically the tool change position, at least in older machines, is sensed by multiple switches, like 3 switches for 8 positions, 4 for 16 etc. It appears it always 'thinks' it is at tool 1 position.
Sometimes relay contacts have the same disease. Evaporated stuff out of the air ends up on the contacts.
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.