Hi Russ, thanks for the tip.
I'm afraid this isn't the reason why it doesn't work, I've moved e-stop to another pin, and it's not physically connected anyway, just emulated. Nothing happened, I've tried both AB pairs again...
I'd love to post the datasheet, but I did not get any and there was not one on the Ebay.
As I said, I've tested it with osciloscope, though, and only A-B combinations produced an output (not A-A or B-B etc...), and both looked good to me, the other one (bottom contacts) was just inverted...
Here's the link to the Ebay item:
http://www.ebay.com/itm/Black-100PPR-6-Terminal-Eletronic-CNC-Hand-Wheel-Manual-Pulse-Encoder-Generator-/181775994923?hash=item2a52b1902b:g:SlAAAOSwv0tVf~TaPRODUCT DESCRIPTION
Specification:
Terminal: 6
100PPR, pulse per rotation
Diameter: 60mm/2.36", height 30mm/1.18"(Base to face, not including finger rod)
Material: Aluminium alloy
Output: VCC OV B A -B -A
Suitable For CNC Systems, Engraving Machining, ect
Electrical Specifications:
Supply Voltage: DC5V
Output: 100rpm
Temperature: -30 -85°C
Output waveform: square wave
Weight: 210g
Miso