PURPOSE: To perform an, easy and precise position detection by providing first and second marker detectors, a narrow pulse signal generating means, a count signal generating means and an UP/DOWN counter.
CONSTITUTION: In a moving quantity detecting device 10, a DOWN signal is generated by a count signal generating means 5 synchronously with the AP1 signal generated by a narrow pulse signal generating means 3 when a switching command signal is in low state, and decrement of the DOWN signal is performed by an UP/DOWN counter 7. When the switching command signal is in high state, an UP signal is generated by the generating means 5 synchronously with the AE1 signal generated by the generating means 3, and increment of the UP signal is performed by the counter 7. Therefore, the precise position of a moving body can be detected by the detecting device 10 having a simple structure.