Hello all.
I am having an issue with my project.
I am struggling to find a way to solve the problem i have, and none of the existing forum posts solved my question.
Qustion:
How do i modify a target in the rapid, so that it rotates around the z-axis by an angle objOrient.
The target that i need to modify is the center of the table, while the tool needs to move along the modified axis of the center of table.
PERS robtarget center_table:=[[269.543,71.1415,275],[0.109643,0.701175,0.704508,5.51904E-6],[0,-1,1,0],[9E+9,9E+9,9E+9,9E+9,9E+9,9E+9]];
(it was a const before, but i saw on a forum that it needs to e pers to be modified)
I have successfuly done the part where the tool moves with the modified axis using
center_table.trans.x := x;
center_table.trans.y := y;
WaitTime 0.5;
MoveL center_table,v100,z0,tool0\WObj:=wobj0;
where x and y are coordinates of the new position the tool needs to be relocated at.
I hope you understand my question and are able to help.
p.s. i tried these options:
first moved the tool around z-axis, and then tried to change the center_table, but it didnt work
!MoveL RelTool(Sto_sredina_105,0,0,0,\Rz:=objOrient), v100, z0,tool0\WObj:=wobj0;
! center_table:= CRobT(\Tool:=tool0 \WObj:=wobj0);
other options i tried, looking at the forum, but they didnt work/didnt do what i expected them to
! center_table.rot := OrientZYX(objOrient,0,0);
!center_table.RX := objOrient;