One thing you can do is, just guess (but get the ex/!ex right) and then stream poscnt like this:
stream-poscnt 1
data-stream-period 100
then move the motor shaft by hand (or with a wrench or something that gives you sort of fine control) and see if the angle changes in a nice continuous way, from 0 to 511 and then wraps around to 0 again (or backwards if it's turning the other way)
I found that the 58 and the 61 PM or whateber they were called had different colors for the wires. But for my motor the colors were:
LEAF motor resolver colors... (for my 2012 motor).
SIN+ ----------- RED
SIN- ----------- black
EX ----------- white
!EX ----------- green
COS+ ----------- BLUE
COS- ----------- YELLOW
|