Universal Robots+

Get the relationship between current tool point and original robot hand

Hallo everyone, i want to know how can i get the information about the relationship between the new defined tcp with the original tcp, i want to get the offset between them. may I use tcp/ip connection per primary port 30001 or secondary port 30002?

thans a lot!