# Question about ReadMotor

**URL:** <https://tech-community.robotics.abb.com/t/question-about-readmotor/7333>\
**Category:** RAPID Programming\
**Created:** [August 31, 2016, 4:08am UTC](https://tech-community.robotics.abb.com/t/question-about-readmotor/7333 "2016-08-31T04:08:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColoradoPacific](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/coloradopacific/32/2870_2.png) [@ColoradoPacific](https://tech-community.robotics.abb.com/u/ColoradoPacific)\
**Post date:** [August 31, 2016, 4:08am UTC](https://tech-community.robotics.abb.com/t/question-about-readmotor/7333/1 "2016-08-31T04:08:46Z")

</div>

I am attempting to utilize the ReadMotor function to determine initial motion during my homing routine. However, the value I receive from the ReadMotor command doesn’t seem to line up with the actual motor angle in degrees OR radians.

Attempting to read value of Axis1 on a single robot system with no external axes…

[code]MotorAngle\_1 := ReadMotor(1);  
MotorAngle\_1 value is returning as -155.803, but the Axis 1 position is 90.0 degrees.

Can anyone tell me what I’m doing wrong

---

<div class="post-metadata">

**Author:** ![Pavel\_Riabichev](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@Pavel\_Riabichev](https://tech-community.robotics.abb.com/u/Pavel_Riabichev)\
**Post date:** [August 31, 2016, 4:18am UTC](https://tech-community.robotics.abb.com/t/question-about-readmotor/7333/2 "2016-08-31T04:18:37Z")

</div>

Hello  
Use CJointT instead as below.

PERS jointtarget joints;  
PERS num joint3;

joints:=CJointT();  
joint3:=joints.robax.rax\_3;

/Pavel

---

<div class="post-metadata">

**Author:** ![ColoradoPacific](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/coloradopacific/32/2870_2.png) [@ColoradoPacific](https://tech-community.robotics.abb.com/u/ColoradoPacific)\
**Post date:** [August 31, 2016, 7:13pm UTC](https://tech-community.robotics.abb.com/t/question-about-readmotor/7333/3 "2016-08-31T19:13:40Z")

</div>

> [@Pavel Riabichev](#):
>
> Hello  
> Use CJointT instead as below.
> 
> PERS jointtarget joints;  
> PERS num joint3;
> 
> joints:=CJointT();  
> joint3:=joints.robax.rax\_3;
> 
> /Pavel

I will try this out tomorrow. Thank you!

---

<div class="post-metadata">

**Author:** ![ColoradoPacific](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/coloradopacific/32/2870_2.png) [@ColoradoPacific](https://tech-community.robotics.abb.com/u/ColoradoPacific)\
**Post date:** [September 1, 2016, 8:28pm UTC](https://tech-community.robotics.abb.com/t/question-about-readmotor/7333/4 "2016-09-01T20:28:23Z")

</div>

Pavel Riabichev, that worked perfectly! Thank you.
