Gantry type H-beam automatic welding machine is controlled by AC inverter, with functions of stable running and fast traveling speed; The seam-tracking and arc-guide mechanism used for return control and also can ensure the welding gun centering without aberrancy. The main machine and welder is leakage control with automatic flux feeding and recovery system, easy to operate and with a high efficiency.