Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
offset help
can someone please help, and let me start by saying im very new to robots and programming of them.
PROC Recovery()
!wrote by gareth thwaite to
aid recovery
! set slow speed for recovery
CONST speeddata
GarethSpeed:=[500,500,500,500];
!+++++++++++ var position for
recovery++++++++++++++
VAR robtarget recovery1;
CONST robtarget
pabovetray:=[[349.48,-934.95,854.23],[0.0237752,0.716986,0.695494,0.0406639],[-1,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget
phalfhome:=[[391.49,-337.97,854.23],[0.023777,0.716985,0.695495,0.0406651],[-1,0,0,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
WaitTime 0.8;
recovery1:=
crobt( ool:=tool0WObj:=wobj0);
MoveL
reltool,(recovery1,0,0,-300),GarethSpeed,fine,tool0WObj:=wobj0;
MoveJ
pabovetray,garethspeed,fine,tool0;
MoveJ
phalfhome,garethspeed,fine,tool0;
MoveJ pHome, vCycle,
fine, tool0WObj:=wobj0;
waittime 5;
main;
ENDPROC
ENDMODULE
---------------------------------------------------------------------------------------------------------------
the porblem is i dont know the command to move it with an offset relative to the world/robot rather than the tool,
can anyone help?
Gareth_Minting2012-10-05 15:26:37
Comments
-
Hello,Given that you have the recovery1 point, and it is already in the world/base frame of the robot, I would suggest that you skip the reltool and simply modify the Z value of the point itself,recovery1.trans.z := recovery1.trans.z + 300;MoveL recover1, GarethSpeed,fine,tool+Wobj:=wobj0;RelTool is for use when you want to extract a tool in the direction of the tool z (or x, y).Steve0
-
thanks steve, i just did it anyother waymove L offs(recovery1,0,0,300),garethspeed,fine,tool0;thanks for the reply,0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings