Pillow packaging machine is used for positioning sealing and cutting. When pillow packing manchine starts working, due to the error between the positioning color code printed on the packaging material, the stretching of the packaging material and the mechanical transmission, the packaging material is scheduled. The sealing and cutting parts may deviate from the correct position and cause an error. In order to eliminate the error and achieve the purpose of correct sealing and cutting, the packaging design must consider the automatic positioning problem. To solve this problem, the continuous photoelectric automatic positioning system design is completed according to the positioning standard of the packaging material. The continuous photoelectric positioning system is divided into the forward and backward, the brake type and the synchronous transmission of the two transmission systems according to the error compensation working mode.