Cam for absolute positions, encoder for incremental position