# How to stop moving 6 axis?

**URL:** <https://tech-community.robotics.abb.com/t/how-to-stop-moving-6-axis/8525>\
**Category:** RobotStudio\
**Created:** [October 24, 2018, 12:49pm UTC](https://tech-community.robotics.abb.com/t/how-to-stop-moving-6-axis/8525 "2018-10-24T12:49:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimYu](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@JimYu](https://tech-community.robotics.abb.com/u/JimYu)\
**Post date:** [October 24, 2018, 12:49pm UTC](https://tech-community.robotics.abb.com/t/how-to-stop-moving-6-axis/8525/1 "2018-10-24T12:49:24Z")

</div>

Dear all

I’m Jim from Taiwan.  
This is my first time to control robot arm.  
I’ve a question about robot moving.

When I moving my robot to specific position, the robot’s 6 axis was also turning.  
the 6 axis direction will be the same as Robot direction.  
How to stop the 6 axis turning?

Before I move the robot, I copy the CRobT() then change the pos to where I want and

also change the confdata. Is it possible to make this effect like it?

target\_p := CRobT();  
target\_p.trans := position;  
target\_p.robconf := fillConfdata(target\_p.trans);  
MoveJ target\_p,v3000,z200,target\_tool\WObj:=target\_wobj;

FUNC confdata fillConfdata(pos tarPos)  
VAR confdata rlt;  
VAR robtarget tmp;  
tmp := CRobT(\Tool:=target\_tool \WObj:=target\_wobj);  
rlt := tmp.robconf;

IF (tarPos.x \>= 0) AND (tarPos.y \>= 0) THEN  
rlt.cf1 := 0;

ELSEIF (tarPos.x \< 0) AND (tarPos.y \>= 0) THEN  
rlt.cf1 := 1;

ELSEIF (tarPos.x \>= 0) AND (tarPos.y \< 0) THEN  
rlt.cf1 := -1;

ELSE  
rlt.cf1 := -2;  
ENDIF

RETURN rlt;  
ENDFUNC

Please help me to fix this issue.

 ![|682x448.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/0/065a4d29975456eaf1d25e90ae5a75e0df094fae.png)

---

<div class="post-metadata">

**Author:** ![Rafal](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rafal](https://tech-community.robotics.abb.com/u/Rafal)\
**Post date:** [October 26, 2018, 6:41am UTC](https://tech-community.robotics.abb.com/t/how-to-stop-moving-6-axis/8525/2 "2018-10-26T06:41:25Z")

</div>

I am not sure if I have good understanding of your problem, but if you want to keep orientation of robot tool you can use OFFS function, or RelTool function, or just create new targets with desired orientation and configuration

---

<div class="post-metadata">

**Author:** ![JimYu](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@JimYu](https://tech-community.robotics.abb.com/u/JimYu)\
**Post date:** [October 31, 2018, 2:08am UTC](https://tech-community.robotics.abb.com/t/how-to-stop-moving-6-axis/8525/3 "2018-10-31T02:08:53Z")

</div>

Thank you. I fixed this problem. Just need to trun the orientation of robot to 90 degree.  
the axis 6 direction will be the same as axis 1.

I am sorry about my poor English..XD
