The rotary encoder can count the pulse outputting times during the process of rotation in positive and reverse direction by rotating. This rotating counting is unlimited, not like potential counting. It can be restored to initial state to count from 0.