Abstract
A welding system includes a teaching device that receives a teaching operation and a terminal device. The teaching device acquires a teaching point including a teaching position for teaching a position of a welding torch and a teaching posture for teaching a posture of the welding torch. The terminal device calculates a reference coordinate system related to the posture of the welding torch at the teaching position based on the teaching position of a plurality of acquired teaching points and information related to a workpiece, corrects the teaching posture to a set posture set in advance based on the teaching posture with respect to the reference coordinate system, and generates and outputs a welding teaching program for the welding robot based on the teaching positions of the plurality of teaching points and the teaching posture.