I have had some strange issues using CRobT. Sometimes it is executed quite a distance ahead of the robot motion so its not actually going to the point you expect. Can help to put a stop point before it just to test if that might be your issue.
VAR robtarget p1;MoveL *, v500, fine Inpos := inpos50, tool1;p1 := CRobT(Tool:=tool1 WObj:=wobj0);
โNote that the robot is standing still before the position is read and calculated. This is achieved by using the stop point fine within position accuracy inpos50 in the preceding movement instruction.โ
I have no Inpos instruction in my MoveL - so I will go try that out.