Hi Guyes,
I am struggling with robot rotation of the gripper. My cell is attached. For simulations I use Roboguide.
My UF is located at point I shown and it is oriented as the WORLD one.
To turn gripper Z negative 90 degrees (short turn), I use:
Code
!check KLT index in pallet;
IF ((R[6:PalFulLayerInd]>=7) AND (R[6:PalFulLayerInd]<=10)) THEN ;
PR[6,6:FullPalOffset]=(-90) ; ! I want to Turn KLT, 90 degrees clockwise, according UF
ENDIF ;
;
!position on KLT ;
J PR[11:37PalFullBgn] 100% CNT20 Tool_Offset,PR[19:37ToolOffset] Offset,PR[6:FullPalOffset] ;
Because of gripper harness, I need to turn the gripper negative -90 degrees. That is why I use J movement type.
Unfortunately the grippe is turning Z positive, and rotates 270 degrees.
When I release the KLT, I use the following commands:
Code
!rotate gripper basic pos ;
IF ((R[6:PalFulLayerInd]>=7) AND (R[6:PalFulLayerInd]<=10)) THEN ;
PR[6,6:FullPalOffset]=0 ; // I want to Turn KLT, 90 degrees counter clockwise, according UF
ENDIF ;
;
J PR[11:37PalFullBgn] 100% CNT20 Tool_Offset,PR[19:37ToolOffset] Offset,PR[6:FullPalOffset] ;
The gripper is rotate 270 degrees negative according UF.
A colleague told me that, if I use "J", it will rotate, by choosing the shortest path. What I am missing?
Why is that happening? How can I control to which direction the gripper is rotating?
regards,
Yolov