There's no Code requirement for the minimum distance between welds. A figure "pulled off the air" that is very used in prefabricating shops and jobsites is that the minimum distance should be three times the pipe diameter.