RobotStudio event

question of coordinate system calibration

I have some problems about the coordinate system calibration.
 

We know there are tool center point coordinate system,workobject coordinate system and so on .Now when I do some work about welding,how to calibrate the TCP coordinate system and the workobject?I mean that I do that in practice.

 

Would anybody like help ?Thanks!