Abstract: One cycle of a weaving pattern suitable for the shape and material of the base metal to be welded is taught and stored, and a welding torch is made to weave in accordance with the suitable weaving pattern. Consequently, arc welding can be carried out by using a weaving pattern suitable for a shape and a material of each base metal.