Every R500 has at least 2 incremental sensors. One is on the main motor, the other on the 1PU. I wrote you where both are connected. The main motor sensor is connected to X7 on A386 on the main motor inverter, bridged to slot 2 A358
The sensor on the machine, that you are having trouble with, is...