Encoder, Grating

changed Analog buffer reading