Hi
Once again I'm fighting with a vision and workobjects trans and orient.
I can't find complete examples on the net and the programs that I've done before are not helping much
PERS wobjdata wobjvision:=[FALSE,TRUE,"",[[8.63,-513.81,-56.26],[0.708021,-0.00362682,-0.00371983,0.706173]],[[0,0,0],[1,0,0,0]]];
PERS robtarget pPick:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
VAR pos VisionTranslationPoints:=[0,0,0];
VAR num VisionXRotation:=0;
VAR num VisionYRotation:=0;
VAR num VisionZRotation:=0;
Xoffset:=15; These are test coord
Yoffset:=15;
zangle:=0;
VisionTranslationPoints.x:=Xoffset;
VisionTranslationPoints.y:=Yoffset;
VisionTranslationPoints.z:=0;
VisionXRotation:=0;
VisionYRotation:=0;
VisionZRotation:=zangle;
At this point I have the values 15s and 0s in the correct place
The I offset the oframe with those values. Then I move
wobjVision.oframe.trans:=[VisionTranslationPoints.x,VisionTranslationPoints.y,VisionTranslationPoints.z];
wobjVision.oframe.rot:=OrientZYX(VisionXRotation,VisionYRotation,VisionZRotation);
MoveL Offs(pPick,0,0,10),v1000,z1,tPointer\WObj:=wobjVision;
If I run this program the robot doesnt even go near the 15,15, it goes who know where
This should be very simple. I'm missing something
Any thoughts ? Thanks