Hello Guys,
Sorry for late answer.
I asked for help my colleague and it works now. His idea was to shift the tool which I used not to shift the base. I am using external tool, I am not sure if it is important.
The code is like this:
num_shift_tool = 12
;Correcton from camera in Calibration FRAME (Base 10)
Correction = VT_GetCorrectionFrame(Results[ObjectCounter])
;The tool correction is calculated here
Delta_tool = INV_POS($POS_ACT_MES) : Correction :$POS_ACT_MES
;The tool car0 is adjusted here
TOOL_DATA[num_shift_tool] = TOOL_DATA[$ACT_TOOL] : Delta_tool
On the picture I tried to explain. Red arrows are the calculation of Delta tool.
Thank you very much for your help.
">">