Arik, let me see if I can clarify some issues. The term used encoder is inappropriate. The device is basically a sensor that offers signals to show when at home or end of travel possibly with analog that offers a position reference.
Need to know the device Pavan to offer suggestions on how to connect it.