Thank you for the feedback,
System:
KRC 8.2.25
KS V8.2.155
Options Packs
Servogun_TC 4.0.16
MTR 8.0.22
The problem here is that our client doesn't want to buy a new WeldGun for it.
So the solution that the client has already in other robots is to change the hardware of the gun itself (the entire copper arm).
Now our specific issue is that has the hardware is different so is the "zero position" of the gun.
I found the code you replied with very interesting, but I'm not a Kuka expert to understand what it fully does. But I will try to understand it and see if some solution comes of it.
You said:
"zero position can be changed by coupling procedure and assigning new position value."
Our situation is similar, instead of a quick coupler used, there is an operator that changes the Gun arm. And after I have to calibrate (automatically if possible) the gun.