Absolute and incremental encoder, detector combined