Help in using UAMP subroutine

I am new to subroutines. Can anyone tell me how to use UAMP to read the displacement result after each time increment during a transient analysis and modify the load in the subsequent increment based on the displacement result? ie the load changes as the solution evolves, I mean something like a feedback

It would be really helpful if it is explained with a small example.

Thank You