Every datasheet that I have looked at mentions the function of pins A, B and C but no mention of D and E. I'm unsure which one is the push button output and which one is the Ground pin. I'm currently looking at this one: http://uk.rs-online.com/web/p/mechanical-rotary-encoders/6234237/
Electrical – rotary encoder pin identification
encoderrotary
Best Answer
Wild guess: these two contacts are simply connected to the push switch, if present.