
7. Building SPEL+ Applications
7. Building SPEL+ Applications
7.1 Designing Applications
7.1.1 Creating the simplest application
The simplest SPEL
+
application has one program and one point file. This is what is
automatically defined for you when you create a new project. A blank program named
Main.prg (Program.prg for simple mode) and a blank point file named Points.pts are
created.
To write and run a simple application
1. Select New Project from the Project Menu to create a new project.
2. Write your program source code in the file that was created for you called Main.prg.
3. Teach the robot points using the Robot Manager Jog and Teach page .
4. Run the program by selecting Run Window from the Run Menu or by pressing F5 (the
shortcut key for the Start command).
7.1.2 Application Layout
Before writing your application, you need to decide what your application will accomplish
and how the project will be structured. Here are some general guide lines.
Programs
Each project can contain up to eight programs that can be started from the Operator
Window, Remote Control, or VB Guide. Each program has a start function, as shown in
the table below.
Program # Program Name Start Function
0 main main
1 main1 main1
2 main2 main2
3 main3 main3
4 main4 main4
5 main5 main5
6 main6 main6
7 main7 main7
Your project must always define function main so that the main program can be started.
The other programs are optional. If you use the Operator Window for your operator
interface, you can define meaningful names for each of the programs used in your project
in Project | Properties | Operator Window.
Operator interface
Operator Window
Use the operator window provided with EPSON RC+ 5.0. You can configure EPSON
RC+ 5.0 so that after Windows starts, EPSON RC+ 5.0 will start in Auto mode, which will
automatically open the Operator Window.
186 EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4
Comentários a estes Manuais