The present invention relates to the technical field of
welding machines, and in particular to an automatic
welding machine, comprising a
workbench, a vertical beam and a top beam, wherein the center of the upper right part of the
workbench is fixedly connected to an adjustment cylinder through a cylinder bracket, the output shaft end of the adjustment cylinder is fixedly connected to a connecting end plate, a
lateral movement component is installed on the rear side of the outer wall of the top beam, and a linkage component is installed on the rear side of the upper end of the
workbench. Through the cooperation among the driving roller, the side bracket, the adjustment cylinder, the connecting rod, the rack 1, the sliding base, the
welding head, the large gear and the small gear, since the
gear ratio of the large gear and the small gear is 2:1, when the rack 1 moves to the right, the rack 2 just moves half of its distance, so as to ensure that the welding head and the sliding base are always in the same position as the axis of the
pipe fitting, effectively avoiding the problem that the traditional technology needs to continuously perform the center positioning between the welding head and the
pipe fitting during the
processing of different
pipe fittings, and the process is relatively cumbersome and seriously affects the production efficiency.