What I like to do in a case like this is to identify the analogue input to the drive, if this is easily done, then the drive/motor/tach can be tested by using a +-battery box made from two 9v batteries and a 10k pot.
Disconnect the analogue input and connect the battery box. you should be able to run the motor back and forth smoothly.
If you are able to do this then, the problem is in the control/feedback or parameters.
For the battery box, both the 9v are connected in series and the junction point is used as the common, the outer ends of the batteries are each connected to the outer ends of the pot. the two leads you use are the common and the slider of the pot to give you +-9vdc.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.