Hello !
It depends on what kind of PLC you have!
Usually the cards have an input for the encoder/s absolut or incremental then the card need some kind of outputs analog or/and digital, stepmotor outputs, fieldbus etc.
You must first know how makes the PLC and then you look at the manufacturer manuals.