Help with Motor encoder connection with motorcontroller

brushless-dc-motordc motorpid controller

I am new to building drones and bots. I started out using motors without encoders with my Roboclaw Motor Controller for my pet project. Here is the controller's link. Connection seemed simple and it was working the way it was supposed to. Now I got these new motors with encoders for better control. There are 6 pins from the encoder. on top of that, I can see two metal prongs (marked M+ and M-), much like my earlier motor, connected to the motor itself. And I am confused about the connection. I don't know which pin goes where.

I tried contacting customer service to no avail. I am not super confident about trial and error either. Can anyone please explain the connection details? Thank you.

Sorry if this question seems too naive. Also, if this is not the appropriate place for this question, any pointer to where it should go will be highly appreciated.

Best Answer

From page 10 of the controller data sheet you can determine the encoder power pins (+ and -). From the same page you can determine the sensor inputs A and B. These connect to the pins specified in the link table.