The filling quantity and filling speed are set for PLC through the touch screen. After conversion by PLC, the pulse quantity and pulse rate are sent to the stepper motor driver. After the driver receives the pulse, the stepper motor drives the high-precision gear pump to realize the filling process according to the setting of the touch screen. The filling quantity set by the touch screen is controlled by the revolution of the gear pump driven by the stepping motor, and the filling speed set by the touch screen is controlled by the speed of the gear pump driven by the stepping motor. After changing a few parts and adjusting them appropriately, glass bottles and plastic bottles of different heights and diameters can be filled, with high versatility and wide application range.