Hi, I’ve got a problem which, I don’t know why, occurs in my program really often and I have no idea how to get rid of it.
So, first of all I will Copy&Paste here a part of code where the error takes place:
PROC CheckRotation()
ConfJ \Off;
jRot := CalcJointT(Target_xyz, tool \WObj:=wobj0);
ERROR
IF ERRNO = ERR_ROBLIMIT THEN
statusAVAILABLE := FALSE;
data2ClientType := “ErrROT”;
RETURN;
ELSE
statusAVAILABLE := TRUE;
ENDIF
ENDPROC
This procedure should check if the position of the TCP is possible to reach by the robot - if not, the routine in the error handler is being executed. I have no idea why but, for instance, if I change the values of the Target_xyz to the default ones (these, which has the robot in the initial position) I’ve got an error. Maybe this happens because of the ConfJ function?
If somebody could help be I would be thankful, this is really annoying problem which stops me from continuing my work.
greetings,
pion3k