# compare robot axis value

**URL:** <https://tech-community.robotics.abb.com/t/compare-robot-axis-value/6038>\
**Category:** Robot Controller\
**Created:** [March 22, 2014, 4:58pm UTC](https://tech-community.robotics.abb.com/t/compare-robot-axis-value/6038 "2014-03-22T16:58:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://tech-community.robotics.abb.com/u/blueberry)\
**Post date:** [March 22, 2014, 4:58pm UTC](https://tech-community.robotics.abb.com/t/compare-robot-axis-value/6038/1 "2014-03-22T16:58:01Z")

</div>

Is there a way to check individual axis angle? I like to check robot axis 2 angle before moving robot into another position

VAR jointtarget pCurrentRobt;

pCurrentRobt := CJointT();

this is where I am stuck

IF axis 2 is greater than 90 degree, don’t move robot

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://tech-community.robotics.abb.com/u/blueberry)\
**Post date:** [March 22, 2014, 5:55pm UTC](https://tech-community.robotics.abb.com/t/compare-robot-axis-value/6038/2 "2014-03-22T17:55:51Z")

</div>

Nevermind, I found it

IF pCurrent.robax.rax\_2 \> 90 Stop;
