Patent attributes
This optical encoder includes a light emitting section and a plurality of light receiving elements placed so as to be aligned in one direction in an area where a light beam from the light emitting section may reach. A moving object includes a light-ON section, a light-OFF section and an index pattern section. The light receiving element outputs a first light receiving signal when the light-ON section and the light-OFF section of the moving object pass through a predetermined position corresponding to the light receiving element. The light receiving element outputs a second light receiving signal when the index pattern section of the moving object passes through a predetermined position corresponding to the light receiving element. The output section outputs an incremental channel signal indicating movement information of the moving object based on the first light receiving signal while outputting an index channel signal indicating reference position of the moving object based on the second light receiving signal. The incremental channel signal and the index channel signal are out of phase with each other.