Abstract: A stock loop controller is disclosed which measures the round trip time of an ultrasonic signal transmitted to the stock loop and its return echo to generate a digital signal proportional to such time. The digital signal is converted to an analog signal and compared with a voltage reference across an amplifier. The resultant difference signal is used to control a motor operating the stock loop "take-up" or "feed-out" mechanism.