So the cable marked with X5 DOES NOT GO into the X5P.

It goes into X2A.

I spotted in the manual that X5P = encoder OUTPUT, so I investigated further. X2A it is. I'm not sure why there is an X5 number on the cable.

The other X5 cable (X51) is also marked X5 and goes there ....

Anyways.

In fairness, there was a wire off as well, so more than 1 problem it seems.