A system for automated assembly and welding is disclosed. The system
includes a pallet for receiving incoming workpieces; a workpiece holder
having a plurality of electromagnets; a handling robot configured to
transport incoming workpieces from the pallet to the workpiece holder;
and a controller in communication with the workpiece holder and the
handling robot. The controller is configured to determine an orientation
of a workpiece positioned on the workpiece holder, and to selectively
adjust an activation state of one or more electromagnets of the workpiece
holder based upon the orientation of the workpiece. A method of
assembling and welding workpieces is also disclosed.