The invention relates to the technical field of
welding machines, in particular to an automatic
welding machine which comprises a
workbench, a vertical beam and a top beam, the center of the right portion of the upper end of the
workbench is fixedly connected with an adjusting air cylinder through an air cylinder support, the
tail end of an output shaft of the adjusting air cylinder is fixedly connected with a connecting end plate, and a transverse moving
assembly is installed on the rear side of the outer wall of the top beam. A linkage
assembly is installed on the rear side of the upper end of the
workbench. Through cooperation of a driving roller, a side support, an adjusting air cylinder, a connecting rod, a first rack, a sliding base, a
welding head, a large gear and a small gear, due to the fact that the gear number ratio of the large gear to the small gear is 2: 1, when the first rack moves rightwards, a second rack just moves by half of the distance of the first rack, and it is guaranteed that the welding head and the sliding base are consistent with the axis position of a
pipe fitting all the time; the problems that in the traditional technology, center positioning between a welding head and a
pipe fitting needs to be conducted continuously in the
machining process of different
pipe fittings, the process is tedious, and the production efficiency is seriously affected are effectively solved.