# is there a manual to learn how to right a rapid pr

**URL:** <https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930>\
**Category:** Robot Controller\
**Created:** [November 26, 2010, 3:32pm UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930 "2010-11-26T15:32:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amindari](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@amindari](https://tech-community.robotics.abb.com/u/amindari)\
**Post date:** [November 26, 2010, 3:32pm UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/1 "2010-11-26T15:32:46Z")

</div>

hi there,i’m a new user of abb1400,we use it in our design lab in deu university.  
i have to give some simple moves to different axis of the robot . can anyone help me,how do i gonna write the rapid prog ??? and whether if there are any samples of the prog ??  
thank you 🙂

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [November 28, 2010, 9:01pm UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/2 "2010-11-28T21:01:22Z")

</div>

Hi,

To move the different axis of the robot use the MovAbsJ command.  
Below is the example text from the RAPID manual, you can put the required angles for each axis into the data type JointTarget, or you can teach (modpos) the point, or assign them ito the postion via the code.

MoveAbsJ p50, v1000, z50, tool2;  
The robot with the tool tool2 is moved along a non-linear path to the absolute axis position,p50, with velocity data v1000 and zone data z50.

Normally you do not care aboot the postions of the robot axis, only where the tool of the robot is (the Tool Center Point) TCP).  
You would then use MoveJ, MoveL, or MoveC, where the postion is stored as X,Y,Z corordinates and rotation.

Hope this helps.

Regards  
Graeme

---

<div class="post-metadata">

**Author:** ![amindari](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@amindari](https://tech-community.robotics.abb.com/u/amindari)\
**Post date:** [November 28, 2010, 10:43pm UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/3 "2010-11-28T22:43:39Z")

</div>

thank you so much graeme  
for example if i want to move the first axe ,15 degress,what would be the rapid robot ?  
if doesnt take time can you write the whol prog ?  
as i said ,im new user, and have no idea about rapid .!

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [December 2, 2010, 9:49am UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/4 "2010-12-02T09:49:08Z")

</div>

Hi,

Sorry about the delay, try this:

MODULE testit  
PERS jointtarget robot\_pos1 := [[ 0, 0, 0, 0, 0, 0], [0, 9E+09,9E+09, 9E+09, 9E+09, 9E+09] ];  
VAR num Axis1Val;  
PROC Main()  
TPErase;  
TPReadNum Axis1Val,"Enter axis one value ";  
robot\_pos1.robax.rax\_1:=Axis1Val;  
MoveAbsJ robot\_pos1, v1000, z50, tool0;  
ENDPROC  
ENDMODULE

If you run the program from the virtual Flexpendant you enter the number of degrees that you want the robot (axis one) to move to, then the robot will move there.

Regards  
Graeme

---

<div class="post-metadata">

**Author:** ![amindari](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@amindari](https://tech-community.robotics.abb.com/u/amindari)\
**Post date:** [December 2, 2010, 3:55pm UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/5 "2010-12-02T15:55:21Z")

</div>

thank you so much for your reply mr.paulin

yes i wrote the prog and it worked so well.but what my teacher wants from me is,to run a module with pc whitout using flexpendent.  
i mean he wants to rotate the first axe from pc whitout using flexpendent.and im confused,i checked the robotstudio-online but i couldnt find anythin,i can only transfer module to controller and run it from flexpendent.  
how can i run a module from pc ???

---

<div class="post-metadata">

**Author:** ![charon](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/charon/32/87_2.png) [@charon](https://tech-community.robotics.abb.com/u/charon)\
**Post date:** [December 2, 2010, 4:36pm UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/6 "2010-12-02T16:36:40Z")

</div>

Hi amindari,

You can execute a program module from PC if you have “PC Interface” option on your controller. PC SDK manual has detailed sample codes for computer program which is written in C#.

BR.

---

<div class="post-metadata">

**Author:** ![doc-zee](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@doc-zee](https://tech-community.robotics.abb.com/u/doc-zee)\
**Post date:** [October 9, 2011, 11:17am UTC](https://tech-community.robotics.abb.com/t/is-there-a-manual-to-learn-how-to-right-a-rapid-pr/3930/7 "2011-10-09T11:17:32Z")

</div>

Hi,charon!  
can you give me some code example that can change the angle for each axis ?i can`t find the code in manual!

regards!!!
