I everyone

I have an old machine with a A860-0320-T111 coder on the X axis motor. For broken cover reason, we switch with another coder with the same parts number that we have on another machine. At the start-up, machine ask for zeroing the x axis and everything is done properly. When we try to move the axis, it goes on the opposit side and an error occure. Same motor on each machine A06b-0505-B531 and same coder. We dont understand why but we have put back the old one and everything works again.

On the old coder, we have broke a capacitor (the one on the photo) but the coder works without error and we dont know why.

Is anyone can give me a clue?