Sorry, I don't have an answer.
If it was working before, then something must have changed?
Does it never work with tool changes, or just sometimes?
I'd have to guess that it's an issue with the controller.
If the macros don't work correctly 100% of the time, then there's a problem somewhere.