For wiring a single-phase motor, the most important objective is to distinguish the starting circuit from the main winding. These two circuits are isolated from one another electrically if the lead wires are separarted and not in contact with each other. Initially, the ohmeter can be used to determine which wire belongs to which circuit as well as checking continuity between leads.
The PWM Drive (pulse-width modulated drive) to motor power conductors are typically the most intense noise source in a system. Proper implementation of shielding, grounding, splicing, and treatment of excess cable is essential to reducing noise in your system.
For some kinds of motors, principally motors with terminal-based connections, basic wiring is self evident. The terminal board itself usually has markings that indicate where line one and line two are to be connected. But what if you need to reverse that motor, use a different (but available) voltage setting, or have a motor that has nothing more than a bunch of color-coded or numbered leads coming out of it?
As you might suspect, when you reverse the current in an alternating current motor, it takes time for those atoms to get going in the opposite direction. And the amount of time is not necessarily the same as the time it took to get the herd moving properly in the first place.