Workobject offset by moving MD7

Hello I am a beginner in RS. I am doing a simulation in RS where an IRB 5500 is mounted on top of a Cart, which runs along a workpiece. Since the workpiece is not placed the same every time, a sensor must touch the workpiece, and log the position. The Workobject must then move so that the entire program is moved. Does anyone know how to do this, what the program code might look like.

Check out this thread

@Xerim, the thread is not in your post.

It is, although it appears hidden. The way links are displayed on these forums has changed recently, they appear identical to normal text.

Hmmm, I see the text is the link.