Writing Your First Program - Epson RC520 Safety And Installation

Hide thumbs Also See for RC520:
Table of Contents

Advertisement

3.3 Writing your first program

Follow these instructions to create a simple application program so that you will
become more familiar with the EPSON RC+ development environment.
1. Start EPSON RC+
Double-click the EPSON RC+ icon on the desktop.
2. Create a new project
a. Select New from the Project menu.
b. Type in a name for a project, for example, FirstApp.
c. Choose Ok to create the new project.
When the new project is created, a program called Main.prg is created. You will
see a window open with the title Main.prg with a cursor flashing in the upper left
corner. Now you are ready to start entering your first program.
3. Edit the program
Type in the following program lines in the Main.prg edit window. You can use
upper or lower case characters.
Function main
Print "This is my first program."
Fend
4. Run the program
Press F5 to run the program. (F5 is the hot key for the Start selection of the Run
menu). You will see the Status window showing the build operation.
Your program is compiled and loaded into memory. If there are no errors during
build, the Run window will appear.
Press the Start button on the Run window to run the program.
You should see the following displayed on the Run window:
-> main started as Task 1
This is my first program.
-> All Tasks Stopped
Now let's teach some robot points and modify the program to move the robot.
RC520 Safety and Installation Rev.2
3. First Step
49

Advertisement

Table of Contents
loading

Table of Contents