TCP in wobjdata to WCS
in RobotStudio
Hello All,
in short:
How can I calculate the position of a TCP in WCS which is rotated and moved in wobjdata?
in long:
How can I figure out the current x/y/z in world coordinate system of my TCP at any given point in my software?
Thanks so much,
Duesentrieb
in short:
How can I calculate the position of a TCP in WCS which is rotated and moved in wobjdata?
in long:
How can I figure out the current x/y/z in world coordinate system of my TCP at any given point in my software?
Thanks so much,
Duesentrieb
0
Comments
-
Hello Duesentrieb,
What is the scope here? Are you talking about a RobotStudio addin, RAPID code, or...?
Regards,
JohannesJohannes Weiman
Software Engineer
RobotStudio Team, ABB Robotics0 -
I am sorry to be unclear.
I am talking about RAPID code in RobotStudio.
Best, Dusko
0 -
Hello
Check CPos in the RAPID manual
VAR pos pos1;
MoveL *, v500, fine \Inpos := inpos50, tool1;
pos1 := CPos(\Tool:=tool1 \WObj:=wobj0);0 -
Thank you Pavel,
as I understand CPos or CRobT are calculating the position if the robot is there.
But how can I calculation this BEFORE the robot moves there? I want to control the track of the robot. The track position is, in my case, dependent where the robtarget will be.
Thanks!
0 -
Then you should look at the target.
var num nTargX;nTargX := Target_30.trans.x;
And if you are offsettings you need to add that offset.
/Pavel
0 -
Here an example of my code:
<code> currentWobjdata.uframe.rot:=OrientZYX(i*180,0,0);<br>
currentWobjdata.oframe.trans.x:=cLogEnd.tongueLength+cLogEnd.faceDepth-((currentTool.width/2)+chainsawPrecutOffset);
currentWobjdata.oframe.trans.y:=-((cLogEnd.faceWidth/2)+chainsawPrecutOffset);
currentWobjdata.oframe.rot:=OrientZYX(180+cLogEnd.sideAngle,0,0);
currentRobtarget.trans.x:=fromX;
currentRobtarget.trans.y:=fromY;<code> currentRobtarget.extax.eax_a:=<b>here I need to know the WCS-X value of the TCP of the currentRobtarget in currentWobjdata will be</b><br>
MoveL currentRobtarget,currentTool.f,fine,currentTooldata\WObj:=currentWobjdata;
...
...<br> currentWobjdata.uframe.trans.x:=currentWobjdata.uframe.trans.x+i*cLog.length;<br>
Thank you
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings