General purpose motor drive - variating frequency and voltage