How to troubleshoot motors and drives, starting at the inputs