Equipment for welding plastics and metals