The invention belongs to metal plates bent linearly, and particularly discloses a plate rolling machine with the welding function. The plate rolling machine comprises a rack, an upper roll, a lower roll, an edge roll and a power source used for driving the upper roll to rotate. The upper roll, the lower roll and the edge roll are all rotationally connected to the rack. A lifting frame, a clamping unit, a hydraulic cylinder, a weld gun and a sliding rail are further included. The lifting frame is arranged on the sliding rail in a sliding manner. The weld gun is hinged to the lifting frame. The hydraulic cylinder is fixed to the lifting frame, and an output shaft of the hydraulic cylinder is hinged to the weld gun. The clamping unit comprises an elastic piece, an electromagnet and a clamping plate attracted with the electromagnet. The electromagnet and the clamping plate are in an arc shape. The electromagnet is fixed to the rack. One end of the elastic piece is connected to the rack, and the other end of the elastic piece is connected to the clamping plate. Compared with a traditional plate rolling machine, according to the scheme, a rolled plate does not need to be taken down, and can be fixed after a power source of the electromagnet is connected, operation is easy, and work efficiency is high.