摘要 |
A relative rotational angle of a rotary body is measured with respect to a reference angle. A disk rotates integrally with the rotary body. First openings are arranged about the entire circumference of the disk and spaced from one another by a predetermined pitch. A first detecting element detects the first openings and generates a first binary code. Second openings are arranged concentrically with the first openings. A second detecting element detects the second openings and generates a second binary code. A CPU computes a relative rotational angle of the rotary body in accordance with the first binary code and initializes the reference rotational angle of the rotary body in accordance with the second binary code. When the first detecting element generates the first binary code, the CPU determines the reference angle based on a combination of the first and second binary codes stored by a ROM.
|