I don’t think the part number on the motor is different depending on which encoder originally came with it but maybe there is and it originally came with the other encoder.
No, that encoder will not work with a PA6. The Motor/encoder you need is 9779504. The encoder part number is 9825431