The encoder is one off of a machine that we used to have...It is a BEI IDEACOD type: GHM510-1800-001, I have wired up 24vdc out of the plc and wired up A which is a green wire and B which is a yellow wire. A is hooked up to I:0 and B is hooked up to I:1. Hopes this helps... Thanks again veryone