RobotStudio event

a program

Hi,friends,I have a simple problem(but it is so hardly to me,I have tried several methods): every time we operate our robot and then I have to restore to its original position.Now I want to build a small program which can move to its original position from now position(this position is variable) .And the original position is a value.How can I do?Have some tips?Thank you!