# programming

**URL:** <https://tech-community.robotics.abb.com/t/programming/3146>\
**Category:** RobotStudio\
**Created:** [November 3, 2009, 10:35am UTC](https://tech-community.robotics.abb.com/t/programming/3146 "2009-11-03T10:35:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![candy](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/candy/32/3315_2.png) [@candy](https://tech-community.robotics.abb.com/u/candy)\
**Post date:** [November 3, 2009, 10:35am UTC](https://tech-community.robotics.abb.com/t/programming/3146/1 "2009-11-03T10:35:40Z")

</div>

I have written a simple program in the flexpendant.The program is that(it is very simple):  
MODULE MainModule  
CONST robtarget Target\_10:[,,,,];  
CONST robtarget Target\_10:[,,,,];  
PROC main()  
MoveL Target\_10,v1000,fine,tool0;  
MoveL Target\_20,v1000,fine,tool0;  
ENDPROC  
ENDMODULE

When I run ,the result is:  
Failed to start.  
Missing at least one task program pointer.

But when I simulate the program in the robotstudio,it works .

So ,I do not know how ?

---

<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:** [November 3, 2009, 12:34pm UTC](https://tech-community.robotics.abb.com/t/programming/3146/2 "2009-11-03T12:34:13Z")

</div>

Did you set “program pointer - PP” to main routine before starting the program?  
(Program Editor \> Debug \> PP to Main)
