PMSM motor conversion