Move to specific height.
Options
jthyge
✭
Hello
I am looking for at function to move the robot to a specific height.
When robot is in a random position, i want i to move to 3000 on the y axis.
I can not find this in the RAPID documentation.
Is there at way to make this move?
I am looking for at function to move the robot to a specific height.
When robot is in a random position, i want i to move to 3000 on the y axis.
I can not find this in the RAPID documentation.
Is there at way to make this move?
0
Comments
-
Just use the cRobT instruction to determine the location where the robot is and store it as the next point.
Once the next point is determined you just need to change the Y-coordinate before moving to it.
Underneath is a same example in rapid code.
Example code:NextPos:=CRobT(\Tool:=tGripper\WObj:=wobj0);
NextPos.trans.y:=3000;
MoveL NextPos,v200,fine,tGripper\WObj:=wobj0;
0 -
jthyge said:Hello
I am looking for at function to move the robot to a specific height.
When robot is in a random position, i want i to move to 3000 on the y axis.
This confuses me, Y axis is generally not height. Z is usually the height. Just how big is this robot? 3 meters is quite a distance in any direction.
I can not find this in the RAPID documentation.
Is there at way to make this move?Lee Justice0 -
Thanks Geoffrey, that works perfectly.
Lee, absolute distance.
Thanks for your answers.0 -
The other example he gave does work, but it is not the only way. As is the case many times with Rapid. What I did before to move to an absolute ceiling was like this:
pTemp:=CRobT(\Tool:=myTool\WObj:=myWobj);
MoveL Offs(pTemp, 0,0, (3000-pTemp.trans.z)), v100, fine, tool0;
3000 is the absolute ceiling and subtracting the current Z from it will always get you up to 3000.Lee Justice0 -
lemster68 said:The other example he gave does work, but it is not the only way. As is the case many times with Rapid. What I did before to move to an absolute ceiling was like this:
pTemp:=CRobT(\Tool:=myTool\WObj:=myWobj);
MoveL Offs(pTemp, 0,0, (3000-pTemp.trans.z)), v100, fine, tool0;
3000 is the absolute ceiling and subtracting the current Z from it will always get you up to 3000.0
Categories
- All Categories
- 5.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings