CNC stud welding of T-bolts