Thanks Scott, that could have worked as well. I would have had to change the code in my PLC to look for that second bit. Jason's VB script turned out to be a little more elegant. Since I had to have the VB script for the tool change anyway, it all worked out in the end. I really appreciate all the help I have received with this project. There was a the possibility that the tool turret could rotate before getting to the tool change position and also a problem if it did not seat properly. All the items have now been resolved and the tool change is working as good as it did when new, 30 years ago.
Vince