Encoder wiring connection

I don’t know how to connect this.

Please see this wiring diagram post and this excellent response.

I’ve moved your post to a new topic as the it is off-topic for the place you posted it. Before posting, please search the forum to see if your question has already been answered first, then make sure your post is relevant to the location you are posting it. If not, create a new topic.