The 4 cables is an encoder. It can be ignored for now...
A place to start is to put a multimeter on the 6 cables, work out what is connected to what...
A place to start is to put a multimeter on the 6 cables, work out what is connected to what...