Development and application of a SCARA welding robot with novel teaching function