An optical encoder. The encoder includes a coding element, an emitter, and
a detector. The coding element has a track with a track pattern. The
track pattern includes a plurality of optically distinguishable sections,
which include a plurality of position sections and an index section. The
emitter generates a light signal incident on the track of the coding
element. The detector includes a combined position and index
photodetector array. The combined position and index photodetector array
includes a plurality of position photodetectors and an index
photodetector. Embodiments of this type of optical encoder implement
position and index sections in a single track on the coding element.