programming

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 ?

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