Chaning the Z value of TCP during the program

Currently using an IRC5 controller. I'm looking to have my robot preset an EOAT with a part to a camera system where i image the Z offset from the EOAT to the end of the part. From there i need to pass that data to the TCP. Can anyone give some insight? I currently have everything solved up to the variable adjustment of the TCP during AUTO
Tagged:
Answers
ENDPROC