The problems with monitoring positions from 2 motors

I’m not sure exactly what pin definitions that you will need for this connection, but this older community page post may have some information that might help you figure out what changes you need to make.