Trouble connecting encoders to X-touch compact

Hi all,

Iv'e managed to connect the buttons and faders to Eos no problem but I am struggling to connect the encoders to control thing such as pan, tilt, colour/ gobo wheel. 

Does anyone know how to do this?