The Vial Filling and Capping Machine or automatic ointment filling machine adopts programmable logic controller (PLC) human and machine interface technology, equipped with imported photoelectric track switch from Korea, which is suitable for filling ointment products in the industries such as ointment, oil products, syrup, shampoo, bechamel and fruit juice etc. The filling nozzle will be automatically inserted into the bottle to carry out the filling and then rapidly ascend, which can reduce the air bubbles. The product integrates electric and pneumatic functions into one, with reasonable design, stable performance, accurate quantity, glass table surface, automatic bottle feeding, steady operation without noise, electric speed control to the filling speed and filling volume and convenient maintenance and cleaning. The new type filling equipment is the best choice for the realization of automatic production.