The invention discloses an industrial robot with an automatic cleaning function, which belongs to the technical field of mechanical manufacturing equipment, and comprises a casing, the top of the casing is an open structure, and a guide plate is fixedly connected to the side wall of the top of the casing. And one end of the bottom surface of the guide plate is installed with a motor a, and the output shaft of the motor a is fixedly connected to one end of the lead screw, and the other end of the lead screw is connected to the bottom surface of the guide plate through a bearing seat. The sleeve, and the wire sleeve is embedded in the movable frame plate, and the processing components are installed on the movable frame plate; no need for staff to clean up, it can effectively prevent debris from accumulating on the worktable, and facilitate multi-station work. Processing operations, improve processing efficiency, meet the needs of the industry, improve the cleaning effect of debris, clean comprehensively, ensure that there is no accumulation of debris on the worktable, and continue to discharge debris, realize automatic cleaning function, and facilitate the overall continuous operation.