The automatic boxing and packing system line mainly consists of a reciprocating packaging machine empty package connection and separation unit, a sorting unit, an automatic boxing machine, a mechanical arm opening and packing unit, and a palletizing unit. The system packages and sorts materials through the packaging machine: the sorting unit automatically locates the packaged products to the tail rack of the boxing machine, sends them to the boxing machine for boxing, and then completes the boxing through the opening and packing unit. Finally, the palletizing unit completes the coding. The automatic boxing and packing palletizing system realizes the fully automatic and efficient production of material packaging, sorting, boxing, boxing, and palletizing, and adopts a whole line control method to automatically detect faults, simplify operational requirements, and greatly reduce manual labor.