Using the ohmmeter, find the pair of wires that has the highest resistence as measured in ohms. This will give you your common and lowest speed tap. Using each of these two leads in turn, find the pair that gives you the the second-highest resistance. This should provide you the common and second-lowest speed tap and should also allow you to isolate which of the two leads from the first test is the common.
The unshielded conductors radiate an electric noise field that couples capacitively with adjacent wiring. Stray capacitance at A & C cause ground currents to flow creating a magnetic noise field that couples inductively with adjacent wiring.
A ferrite sleeve around the three power conductors as they leave the drive will help to reduce common-mode noise current. Take all three conductors two or three times through the core. If it runs hot reduce the number of turns.
Suppose you take a length of ordinary wire, make it into a big loop, and lay it between the poles of a powerful, permanent horseshoe magnet. Now if you connect the two ends of the wire to a battery, the wire will jump up briefly. It is amazing when you see this for the first time. It is just like magic! But there is a perfectly scientific explanation. When an electric current starts to creep along a wire, it creates a magnetic field all around it.