The automatic pillow flow packaging machine is designed to continuously package aluminum profiles, tubes, pipes and other elongated materials in an efficient manner. The machine is fully automatic and operated by a PLC control system with HMI interface. Materials are fed into the machine where they are firstly measured by a detection system to determine their length. They are then placed onto a conveyor belt which transports them downstream. On the packaging line, padding film is pulled out from two sides and a head sealer cuts, seals and forms pillows around each individual material. After being pillow packaged, the materials will continue to move along the conveyor belt. An automatic counting system packages a pre-set number of materials into each carton which is then closed via top sealer. Filled cartons will be discharged from the end of the line. This high-speed packaging machine is capable of achieving output rates of 30-50packages per minute, significantly improving production efficiency.