What is the function of a spring? May 9, 2014 The function of a spring is to absorb movement in the pipe caused by thermal and load displacements.