I am in the process of automating pick and place applications and have unfortunately encountered a problem that I need help with. The command “RelTool” implies that a movement should be made relative to the tool, but this still works for me in the z-direction. I would like to have a relativ movement in x and y direction.
As I have to rotate some components and want to “push” them sideways, an offset point from the end point where the component should go would be very helpful, as I could save myself a point.
Here is my code:
TASK PERS tooldata toolgrip:=[TRUE,[[0,0,382.640],[1,0,0,0]],[45.5,[162.2,-8.4,164],[1,0,0,0],0,0,0]];
TASK PERS wobjdata wobjformworktable:=[FALSE,TRUE,“”,[[-320.949,1590.29,486.978],[1,0.000165245,1.40909E-05,0.000159776]],[[0,0,0],[1,0,0,0]]];
PERS robtarget pNehmenP1:=[[300.01,50.00,42.05],[3.64828E-07,0.707107,-0.707106,3.95569E-06],[1,0,0,0],[1200.01,9E+09,9E+09,9E+09,9E+09,9E+09]];
PERS robtarget pNehmenP2:=[[300,300,42.06],[3.64828E-07,0.707107,-0.707106,3.95569E-06],[1,0,0,0],[1200.01,9E+09,9E+09,9E+09,9E+09,9E+09]];
!Turning the Object around Z! - NO Offset in x and y to the TURNED Gripper is possible.
MoveL RelTool(pAblegenAktuell,0,0,-nDistanzVorNehmen \Rz:= nWinkelAblegen),vZufahrt,z1,toGreiferAktuell\WObj:=woSchalugstischAktuell;
MoveL RelTool(pAblegenAktuell,0,0,0 \Rz:= nWinkelAblegen),vAnnaehern,fine,toGreiferAktuell\WObj:=woSchalugstischAktuell;
…
The thing is, that the offsets move in the wobj, and not to the tool, thats turning about 45°.
Please help.
Best,
Peter