Thanks for your help.
I tried GAP element as well, but still not working. I defined a nonlinear link (GAP type) and assigned to the frame to be analyzed. But the result showed that the spring was not functional at all. Any hints? Or anywhere I did wrong?