Hi Johannes,
We think we have tracked down our problem. We can get the simulation and the real robot to match fairly well, but when KUKA PRC generates the code, the tool settings are over-rotating on the B-axis. Basically, to get the tool setup in the simulation to match the robot, we are rotating B -90 as you suggested. We are using the ABC 2-point method to calibrate the tool, as it makes the most sense relative to how the tool is designed to move.
If we use the xml file as generated from Kuka PRC, we get an unreachable point error. I have attached an example file X_and_Y_lines.xml.
If we edit that file and change the B-value for the frames where we are making are linear moves, it works. I have attached the working modified xml file X_and_Y_Lines_B_Rotate.xml.
Basically what we are doing is changing these lines:
-<PRC_CMD>
<TYPE>LIN</TYPE>
-<FRAME>
-<FRAME>
<X>179.41107177734375</X>
<Y>-109.59288024902344</Y>
<Z>51</Z>
<A>0</A>
<B>1.5707963267948966</B>
<C>-0</C>
</FRAME>
</FRAME>
to this:
-<PRC_CMD>
<TYPE>LIN</TYPE>
-<FRAME>
-<FRAME>
<X>179.41107177734375</X>
<Y>-109.59288024902344</Y>
<Z>51</Z>
<A>0</A>
<B>0</B>
<C>-0</C>
</FRAME>
</FRAME>
Our tool INIT is:
-<INITTOOL>
-<FRAME>
<X>0</X>
<Y>0</Y>
<Z>175</Z>
<A>0</A>
<B>-1.5707963267948966</B>
<C>0</C>
</FRAME>
</INITTOOL>
which makes sense from your instructions and from the simulation in Grasshopper.
Any idea why the B is being over-rotated?
Jason