Shield drain wire must be spliced only to mating shield drain wires and not grounded at the junction box. Feedback shields must be passed through pin for pin. Separate junction boxes for power and feedback are required.
Motor cables are defined as long when the motor frame is not bonded close enough to the drive panel to be considered a single ground plane. To be considered a single ground plane, the parts must be connected by a surface which is no longer than ten times its width.
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.
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.