Patent ID: 8912928

Claim:
An encoder comprising: a position data obtainer configured to obtain superordinate data representing a position of a moving body in a superordinate section in which the moving body is capable of moving and subordinate data representing a position of the moving body in a subordinate section repeated in the superordinate section with higher resolution than that of the superordinate data; a storage in which a correction value capable of correcting a deviation amount generated in advance, based on the deviation amount occurring in the superordinate data against the subordinate data and measured in advance, is recorded to be associated with an absolute position with lower resolution than that of the subordinate data of the moving body; a corrector configured to obtain, based on an absolute position with the low resolution when the superordinate data is obtained by the position data obtainer, a correction value associated with the absolute position from the storage and to correct the superordinate data based on the correction value; and a section identifier configured to identify, based on the superordinate data corrected by the corrector and the subordinate data when the superordinate data is obtained, the subordinate section in which the subordinate data is obtained against the superordinate section.