Get current robot TCP location.
mechman
✭
in RobotStudio
Is there a command that I can use to get the coordinates of the TCP? I would like to use that and define a target.
The unknown point is reached by using soft move. The only way that I have found to deactivate soft move is to have a move command built in, so I need to move to the current position.
0
Comments
-
Hi,Use CRobT the following example is from the manual:
VAR robtarget p1;
MoveL *, v500, fine Inpos := inpos50, tool1;
p1 := CRobT(Tool:=tool1 WObj:=wobj0);
The current position of the robot and external axes is stored in p1. The tool tool1 and work object wobj0 are used for calculating the position.
Note that the robot is standing still before the position is read and calculated. This is achieved by using the stop point fine within position accuracy inpos50 in the preceding movement instruction.
Hope this helps.
Regards
Graeme0 -
That worked perfectly. Thanks for pointing me in the right direction Graeme.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 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)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings