# Reltool

**URL:** <https://tech-community.robotics.abb.com/t/reltool/4569>\
**Category:** RobotStudio S4\
**Created:** [December 8, 2011, 3:18pm UTC](https://tech-community.robotics.abb.com/t/reltool/4569 "2011-12-08T15:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikethk](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mikethk](https://tech-community.robotics.abb.com/u/Mikethk)\
**Post date:** [December 8, 2011, 3:18pm UTC](https://tech-community.robotics.abb.com/t/reltool/4569/1 "2011-12-08T15:18:13Z")

</div>

Im new… My Rutine::

PROC  
Opg5\_90()  
Set Do9Lampe1;  
MoveJ offs (p000, -50, 50, 30), v1000, z50, tool1;  
MoveL reltool (p000, -50, 50, 0), v1000, fine, tool1;  
MoveL reltool (p000, -175, 120, 0), v1000, fine, tool1;  
MoveL reltool (p000, -50, 190, 0), v1000, fine, tool1;  
MoveL reltool (p000, -50, 50, 0), v1000, fine, tool1;  
MoveJ offs (p000, -50, 50, 30), v1000, fine, tool1; Reset Do9Lampe1; ENDPROC

I used offs instead of reltool before. When reltool is used it changes the points in the Z direction… Only offs to reltool is done… Is it right that reltool need to do this? I didnt even place any z:=90

Im cunfused…

---

<div class="post-metadata">

**Author:** ![mattdavis](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mattdavis](https://tech-community.robotics.abb.com/u/mattdavis)\
**Post date:** [December 9, 2011, 12:48am UTC](https://tech-community.robotics.abb.com/t/reltool/4569/2 "2011-12-09T00:48:31Z")

</div>

reltool operates in the tool coordinate system.

So although you have 0 z it will still probably move in z in the world coordinate system as they are usually not aligned. Offs works in whatever workobject the position is in.
