A proper diagram is essential, for your own sake too, but it seems you don't have one.
So just to be clear, you connected the spindle cable cores to UVW at the inverter, and where did you connect the other ends at the spindle itself ?. (I don't have one of these spindles so I'm not sure what terminals are provided) Did you use any of the cores as an earth wire ?