Rotary encoder behaves very strange

Dear Comedi list,

I programmed a comedi driver with quadrature encoder support.

I use the quadrature encoder on the MF 614 and programmed a C program 
with the help of the MF614 manual. Reading the counter works, but when 
the rotary encoder stopps and IRC0A+ has a high signal, the counter 
keeps counting upwards! Even stranger, if I disconnect GND from the 
MF614, the encoder counts downwards.
I checked the wiring, it seems just right.
Has anybody seen something like this before?

Thanks a lot!

Received on 2007-10-26Z15:14:32