Epson .NET Support User manual

Category
Software
Type
User manual
Rev.16 EM19XS4124F
EPSON RC+ 7.0 Option
RC+ API 7.0
EPSON RC+ 7.0 Option RC+ API 7.0 Rev.16
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 i
EPSON RC+ 7.0 Option
RC+ API 7.0
Rev.16
Copyright 2012-2019 SEIKO EPSON CORPORATION. All rights reserved.
ii EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
FOREWORD
Thank you for purchasing our robot products.
This manual contains the information necessary for the correct use of the Manipulator.
Please carefully read this manual and other related manuals before installing the robot
system.
Keep this manual handy for easy access at all times.
WARRANTY
The robot and its optional parts are shipped to our customers only after being subjected to
the strictest quality controls, tests, and inspections to certify its compliance with our high
performance standards.
Product malfunctions resulting from normal handling or operation will be repaired free of
charge during the normal warranty period. (Please ask your Regional Sales Office for
warranty period information.)
However, customers will be charged for repairs in the following cases (even if they occur
during the warranty period):
1.
Damage or malfunction caused by improper use which is not described in the manual, or
careless use.
2.
Malfunctions caused by customers’ unauthorized disassembly.
3.
Damage due to improper adjustments or unauthorized repair attempts.
4.
Damage caused by natural disasters such as earthquake, flood, etc.
Warnings, Cautions, Usage:
1.
If the robot or associated equipment is used outside of the usage conditions and product
specifications described in the manuals, this
warranty is void.
2.
If you do not follow the WARNINGS and CAUTIONS in this manual, we cannot be
responsible for any malfunction or accident, even if the result is injury or death.
3.
We cannot foresee all possible dangers and consequences. Therefore, this manual cannot
warn the user of all possible hazards.
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 iii
TRADEMARKS
Microsoft, Windows, and Windows logo are either registered trademarks or trademarks of
Microsoft Corporation in the United States and/or other countries. Other brand and
product names are trademarks or registered trademarks of the respective holders.
TRADEMARK NOTATION IN THIS MANUAL
Microsoft® Windows® 7 Operating system
Microsoft® Windows® 8 Operating system
Microsoft® Windows® 10 Operating system
Throughout this manual, Windows 7, Windows 8, and Windows 10 refer to above
respective operating systems. In some cases, Windows refers generically to Windows 7,
Windows 8, and Windows 10.
NOTICE
No part of this manual may be copied or reproduced without authorization.
The contents of this manual are subject to change without notice.
Please notify us if you should find any errors in this manual or if you have any comments
regarding its contents.
MANUFACTURER
CONTACT INFORMATION
Contact information is described in SUPPLIERS in the first pages of the following
manual:
Robot System Safety and Installation Read this manual first
iv EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
Table of Contents
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 v
1. Introduction 1
1.1 Features ...................................................................................................1
2. Installation 2
2.1 Step by step instructions ..........................................................................2
2.2 Whats installed ........................................................................................2
3. Getting Started 3
3.1 Getting started using Visual Basic ...........................................................3
3.2 Getting started using Visual C# ...............................................................4
3.3 Getting started using Visual C++ .............................................................4
3.4 Countermeasure for build failure (MSB8036) on Visual C++ 2017 .........5
4. Environments 7
4.1 Development Environment ......................................................................7
4.1.1 Development Startup ..................................................................7
4.1.2 Spel Class Instance Initialization ................................................7
4.1.3 Spel Class Instance Termination.................................................7
4.1.4 Development Cycle .....................................................................7
4.2 In Production Facilities .............................................................................8
4.2.1 Opening EPSON RC+ 7.0 at Runtime ........................................8
4.2.2 Using EPSON RC+ 7.0 Dialogs and Windows ...........................8
4.2.3 Installation on Target System ......................................................8
5. Executing Methods, Programs, Tasks 9
5.1 Executing Methods ..................................................................................9
5.1.1 Using Multiple Threads ................................................................9
5.2 Executing SPEL+ Programs .................................................................. 11
5.3 Executing SPEL+ Tasks ......................................................................... 11
5.4 Aborting All Tasks ...................................................................................12
6. Events 13
6.1 Overview ................................................................................................13
6.2 System Events .......................................................................................13
6.3 User Events from SPEL+ .......................................................................13
Table of Contents
vi EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
7. Error Handling 14
7.1 Errors for Spel methods ......................................................................... 14
8. Handling Pause and Continue 15
8.1 Pause state ............................................................................................ 15
8.2 Catching the Pause event ..................................................................... 15
8.3 Executing Pause .................................................................................... 15
8.4 Continue after pause ............................................................................. 16
8.5 Abort after pause ................................................................................... 16
9. Handling Emergency Stop 17
9.1 Using system EStop events ................................................................... 17
10. EPSON RC+ 7.0 Windows and Dialogs 18
10.1 Windows .............................................................................................. 18
10.2 Dialogs ................................................................................................. 18
11. Displaying Video 19
Using multiple video displays ....................................................................... 20
12. Using AsyncMode 21
13. SPELCom_Event 22
14. RCAPINet Reference 23
14.1 Spel Class ............................................................................................ 23
14.2 Spel Class Properties .......................................................................... 23
14.3 Spel Class Methods ............................................................................. 50
14.4 Spel Class Events .............................................................................. 277
14.5 SPELVideo Control ............................................................................ 280
14.6 SPELVideo Control Properties .......................................................... 280
14.7 SPELVideo Control Methods ............................................................. 283
14.8 SPELVideo Control Events ................................................................. 284
14.9 SpelConnectionInfo Class ................................................................. 284
14.10 SpelControllerInfo Class .................................................................. 284
14.11 SpelException Class ........................................................................ 285
14.12 SpelPoint Class ............................................................................... 286
14.12.1 SpelPoint Properties ........................................................... 287
14.12.2 SpelPoint Methods .............................................................. 288
Table of Contents
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 vii
14.13 Enumerations .................................................................................. 289
14.13.1 SpelArmDefMode Enumeration ......................................... 289
14.13.2 SpelArmDefType Enumeration .......................................... 289
14.13.3 SpelAxis Enumeration ........................................................ 289
14.13.4 SpelBaseAlignment Enumeration ...................................... 289
14.13.5 SpelCalPlateType Enumeration ......................................... 289
14.13.6 SpelConnectionType Enumeration .................................... 289
14.13.7 SpelDialogs Enumeration .................................................. 289
14.13.8 SpelElbow Enumeration ..................................................... 290
14.13.9 SpelEvents Enumeration ................................................... 290
14.13.10 SpelForceAxis Enumeration ............................................ 290
14.13.11 SpelForceCompareType Enumeration............................. 291
14.13.12 SpelHand Enumeration .................................................... 291
14.13.13 SpelIOLabelTypes Enumeration ...................................... 291
14.13.14 SpelOperationMode Enumeration ................................... 291
14.13.15 SpelRobotPosType Enumeration ..................................... 291
14.13.16 SpelRobotType Enumeration ........................................... 292
14.13.17 SpelShutdownMode Enumeration ................................... 292
14.13.18 SpelStopType Enumeration ............................................. 292
14.13.19 SpelTaskState Enumeration ............................................ 292
14.13.20 SpelTaskType Enumeration ............................................. 292
14.13.21 SpelToolDefType Enumeration ........................................ 293
14.13.22 SpelUserRights Enumeration .......................................... 293
14.13.23 SpelVDefShowWarning Enumeration .............................. 293
14.13.24 SpelVisionImageSize Enumeration ................................. 294
14.13.25 SpelVisionObjectTypes Enumeration .............................. 294
14.13.26 SpelVisionProps Enumeration ......................................... 294
14.13.27 SpelWrist Enumeration .................................................... 295
14.13.28 SpelWindows Enumeration .............................................. 295
14.14 Spel Error Numbers and Messages ............................................... 295
15. 32 Bit and 64 Bit Applications 296
Table of Contents
viii EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
16. Using the LabVIEW VI Library 297
16.1 Overview ............................................................................................ 297
16.2 Installation .......................................................................................... 297
16.3 Tool and Control Palettes .................................................................. 298
16.4 Getting started ................................................................................... 300
16.5 Working with Spel+ projects .............................................................. 301
16.6 Displaying Video ................................................................................ 302
16.7 VI Reference ....................................................................................... 303
17. Using LabVIEW with RCNetLib 407
17.1 Overview ............................................................................................ 407
17.2 Initialization ........................................................................................ 407
17.2.1 Add a constructor node for the Spel class ............................ 407
17.2.2 Initialize the Spel class instance ........................................... 408
17.2.3 Connect to Controller and set project ................................... 408
17.3 Use Spel properties and methods ..................................................... 408
17.4 Shutdown ........................................................................................... 408
17.5 Using Dialogs and Windows .............................................................. 408
18. How to Control Multiple Controllers from One PC 409
18.1 Overview ............................................................................................ 409
18.1.1 System Condition .................................................................. 409
18.1.2 Connection of PC and Controllers ........................................ 410
18.2 Restrictions on controlling multiple Controllers ................................. 411
18.2.1 Restrictions on Controller options ......................................... 411
18.2.2 Restrictions on simulator ...................................................... 411
18.3 Sample Program for connecting multiple Controllers ........................ 411
18.3.1 Controller connection setting ................................................ 411
18.3.2 Project setting ....................................................................... 412
18.3.3 Sample program using Visual Basic ..................................... 412
18.3.4 Sample program using Visual C# ......................................... 414
1. Introduction
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 1
1. Introduction
The EPSON RC+ 7.0 Option RC+ API enables you to use Microsoft Visual Basic or any other
language that supports .NET technology to run your robotic applications. This gives you the
power to create sophisticated user interfaces, use databases, and use third party products
designed for use with .NET.
A LabVIEW library is also included.
1.1 Features
The following features are supported in the RC+ API package:
A .NET library and LabVIEW library.
Supports 32 bit and 64 bit applications.
Properties and methods for controlling multiple robots, I/O, and tasks from multiple
controllers.
Methods for executing vision and force sensing* commands.
* Force sensing and Force Sensor are different.
Methods and properties for force sensing described in API manual are not available for
Force Sensor. To use commands for Force Sensor, use Xpt method to execute SPEL
function.
API does not support EPSON RC+ option Force Guide.
Supports parallel execution of asynchronous commands by multi-threading.
Several EPSON RC+ 7.0 windows and dialogs can be used by your .NET application,
including:
Robot Manager
IO monitor
Task manager
Simulator
Controller Tools dialog
During development, EPSON RC+ 7.0 can be run along with Visual Basic.
In production facilities, EPSON RC+ 7.0 can be run invisibly in the background.
The figure below shows the basic structure of a system using the RC+ API.
User PC
.NET Application using
RCAPINet.dll
EPSON RC+ 7.0
Server
Robot Controller
or
Virtual Controller
Controller that connects to EPSON RC+
7.0 is supported.
RC+ API Basic Structure for the .NET library
EPSON RC+ 7.0 is an out-of-process server for the RCAPINet library.
Each instance of RCAPINet Spel class can start an instance of EPSON RC+ 7.0.
2. Installation
2 EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
2. Installation
Please follow the instructions in this chapter to help ensure proper installation of the RC+ API
software.
Before starting, ensure that all Windows applications have been closed.
2.1 Step by step instructions
(1) Install either one of the folllwing:
Visual Studio 2008, 2010, 2012, 2013, 2015, 2017
(Incluedes Express or Express Edition)
LabVIEW 2009 or later
(2) Install EPSON RC+ 7.0.
(3) If you are using LabVIEW, install the LabVIEW VI library.
(4) Ensure that the software key has been enabled for RC+ API in the Controllers you will be
using. Refer to the EPSON RC+ 7.0 Users Guide for information on how to enable
options in the Controller.
This completes the RC+ API installation.
2.2 Whats installed
The directories and files shown in the table below are installed on your PC during installation.
Directories and Files Description
\EPSONRC70\API\VS20xx\VB\DEMOS
Visual Basic .NET demonstrations
\EPSONRC70\API\VS20xx\VCS\DEMOS
Visual C# .NET demonstrations
\EPSONRC70\API\VS20xx\VC\DEMOS
Visual C++ .NET demonstrations
\EPSONRC70\API\LabVIEW
LabVIEW VI Library installer
\EPSONRC70\PROJECTS\API_Demos
EPSON RC+ 7.0 projects for demos
\EPSONRC70\EXE\RCAPINet.dll
RCAPINet Class library (32 bit or 64 bit)
\EPSONRC70\EXE\SpelNetLib70.dll
1
SpelNetLib70 Class library (32 bit)
\EPSONRC70\EXE\SpelNetLib70_x64.dll
1
SpelNetLib70 Class library (64 bit)
1
: These libraries are obsolete, and are provided for backwards compatibility.
The RCAPINet library replaces these libraries and can be used with 32 bit or 64 bit
applications
3. Getting Started
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 3
3. Getting Started
This chapter contains information for getting started in the following development
environments.
Visual Basic .NET
Visual C# .NET
Visual C++ .NET
Demonstration programs are supplied with the RC+ API. It is recommended that you go
through the demonstrations to get more familiar with the product.
LabVIEW users should now refer to chapter 16. Using the LabVIEW VI Library for
instructions on getting started and using the library.
When you build the demonstration program on Visual C++ 2017 for the first time, the program
build may fail. When program build fails, refer to the following section:
3.4 Countermeasure for build failure (MSB8036) on Visual C++ 2017
3.1 Getting started using Visual Basic
To use RCAPINet in a Visual Basic .NET project, declare a Spel Class instance, as shown in
the example below. g_spel can now be used in your project.
1. In Visual Studio .NET, select File | Project.
2. Create a Visual Basic project as Windows Forms Application.
3. From the Project menu, select Add Reference.
4. In the NET Components tab, browse to the \EpsonRC70\Exe directory and select the
RCAPINet.dll file.
5. From the Project menu, create a new module and add the following code.
Module Module1
Public WithEvents g_spel As RCAPINet.Spel
Public Sub InitApp()
g_spel = New RCAPINet.Spel
With g_spel
.Initialize
.Project = "c:\EpsonRC70\projects\API_Demos\Demo1 \demo1.sprj"
End With
End Sub
Public Sub EventReceived( _
ByVal sender As Object, _
ByVal e As RCAPINet.SpelEventArgs) _
Handles g_spel.EventReceived
MsgBox("received event " & e.Event)
End Sub
End Module
3. Getting Started
4 EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
When your application exits, you need to execute Dispose for each Spel class instance. This
can be done in your main forms FormClosed event. If Dispose is not executed, the application
will not shutdown properly.
g_spel.Dispose()
3.2 Getting started using Visual C#
1. In Visual Studio .NET, select File | Project.
2. Create a Visual C# project as Windows Forms Application.
3. From the Project menu, select Add Reference.
4. Select the Browse tab and browse to the \EpsonRC70\Exe directory and select the
RCAPINet.dll file.
5. In the Form1 class, declare a Spel class variable as shown below.
private RCAPINet.Spel m_spel;
6. In the Form_Load event, add initialization code, as shown below.
private void Form1_Load(object sender, EventArgs e)
{
m_spel = new RCAPINet.Spel();
m_spel.Initialize();
m_spel.Project =
"c:\\EpsonRC70\\projects\\API_Demos\\Demo1\\demo1.sprj";
m_spel.EventReceived += new
RCAPINet.Spel.EventReceivedEventHandler(m_spel_ EventReceived);
7. Add the event handler, as shown below.
public void m_spel_EventReceived(object sender,
RCAPINet.SpelEventArgs e)
{
}
When your application exits, you need to execute Dispose for each Spel class instance. This
can be done in your main form's FormClosed event. If Dispose is not executed, the application
will not shutdown properly.
m_spel.Dispose();
3.3 Getting started using Visual C++
1. In Visual Studio .NET, select File | Project.
2. Create a Visual C++ CLR Windows Forms Application project.
3. From the Project menu, select References
4. Click the Add New Reference button.
5. Select the Browse tab and browse to the \EpsonRC70\Exe directory and select the
RCAPINet.dll file.
6. In the Form1 class, declare a Spel variable as shown below.
private RCAPINet::Spel^ m_spel;
3. Getting Started
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 5
7. In the Form_Load event, add initialization code, as shown below.
private:System::Void Form1_Load(
System::Object^ sender, System::EventArgs^ e)
{
m_spel = gcnew RCAPINet::Spel();
m_spel->Initialize();
m_spel->Project =
“c:\\EpsonRC70\\projects\\ API_Demos\\Demo1\\demo1.sprj";
m_spel->EventReceived += gcnew
RCAPINet::Spel::EventReceivedEventHandler(
this, &Form1::m_spel_EventReceived);
}
8. Add the event handler, as shown below.
private System::Void m_spel_EventReceived(
System::Object^ sender, RCAPINet::SpelEventArgs^ e)
{
MessageBox::Show(e->Message);
}
When your application exits, you need to delete each Spel class instance if it was allocated on
the heap (using gcnew). This can be done in your main form's FormClosed event. If the Spel
class instances are not deleted, then the application will not shutdown properly.
delete m_spel;
3.4 Countermeasure for build failure (MSB8036) on Visual C++ 2017
When you build the demonstration program on Visual C++ 2017 for the first time, and if the
build fails due to an error: MSB8036, follow the procedures below:
(1) Select Visual Studio C++ 2017-Solution Explorer-“Demo1project.
(2) Select Menu-[Project]-[Properties].
3. Getting Started
6 EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
(3) Select [Configuration Properties]-[General]-[Windows SDK Version] on Demo1
Proeprty Pages”.
(4) Click the pulldown button which is on the right side of 10.0.16299.0”.
(5) Select Windows SDK Versionwhich is installed in the developmnet environment.
(6) Click the <OK> button.
(7) Re-build the demonstaration program.
4. Environments
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 7
4. Environments
4.1 Development Environment
4.1.1 Development Startup
Typically, you would perform these steps to start development:
1. Declare a Spel class variable in a module in your .NET project.
2. Start EPSON RC+ 7.0.
3. Open the desired EPSON RC+ 7.0 project or create a new EPSON RC+ 7.0 project.
4. Build the EPSON RC+ 7.0 project.
5. Add initialization code for the SPEL class instance.
6. Run and debug the .NET project.
4.1.2 Spel Class Instance Initialization
After a new instance of the Spel class has been created, it needs to be initialized. When
initialization occurs, the underlying EPSON RC+ 7.0 modules are loaded and initialized.
Initialization is implicit with the first method call or property access. You can initialize the
class by calling the Initialize method.
m_spel.Initialize()
4.1.3 Spel Class Instance Termination
When your application exits, you need to execute Dispose for each Spel class instance. This
can be done in your main form's FormClosed event. If Dispose is not executed, the application
will not shutdown properly.
For Visual Basic and Visual C#, use the Dispose method:
m_spel.Dispose()
For Visual C++, if your Spel class instance was created on the heap (with gcnew), then use
delete:
delete m_spel;
4.1.4 Development Cycle
Follow these basic steps to edit and run your .NET code:
1. Stop the .NET project.
2. Edit the .NET project
3. Open EPSON RC+ 7.0.
4. Make changes in the EPSON RC+ 7.0 project.
5. Build the EPSON RC+ 7.0 project.
6. Close the RC+ 7.0.
7. Switch to Visual Studio.
8. Run the .NET project.
4. Environments
8 EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
4.2 In Production Facilities
4.2.1 Opening EPSON RC+ 7.0 at Runtime
Decide if you want to allow the EPSON RC+ 7.0 environment to be opened from your
application. This is especially useful for debugging. Set the OperationMode property to
Program to put EPSON RC+ 7.0 in Program Mode and open the EPSON RC+ 7.0 GUI.
4.2.2 Using EPSON RC+ 7.0 Dialogs and Windows
At runtime, you can open and hide certain EPSON RC+ 7.0 windows from your .NET
application. You can also run certain EPSON RC+ 7.0 dialogs.
See the chapter EPSON RC+ 7.0 Windows and Dialogs for details.
4.2.3 Installation on Target System
You should make an installation program for your .NET project by using a Visual Studio setup
project. Then follow these steps to setup a target system for your .NET application:
1. Install EPSON RC+ 7.0.
2. Install your EPSON RC+ 7.0 project.
3. Install your .NET application.
5. Executing Methods, Programs, Tasks
EPSON RC+ 7.0 option RC+ API 7.0 Rev.16 9
5. Executing Methods, Programs, Tasks
5.1 Executing Methods
There are several methods in the Spel class. For descriptions of available methods, see the
section 14.3 Spel Class Methods. When you execute a method, the associated internal
functions are called in the EPSON RC+ server process, which in turn communicates with the
Controller to execute the associated function. There are two types of methods: immediate and
asynchronous. For immediate methods, the internal function is executed in the Controller and
the reply is returned immediately. Immediate commands include all I/O commands. For
asynchronous methods, the associated function is started in the Controller, and then the Spel
class instance waits for an event from the EPSON RC+ server process indicating that the
function has completed. Asynchronous methods include all robot motion commands. While
waiting for command completion, the Spel class instance dispatches Windows events, so that
the user GUI is still responsive. For example, when the Go method is called, the robot is
moving to a point, and the user may want to stop it by clicking a button. You can disable
Windows event dispatching during asynchronous methods by setting DisableMsgDispatch to
True. You can also wait for asynchronous methods to finish in your program by setting
AsyncMode to True.
5.1.1 Using Multiple Threads
You can execute Spel methods in multiple threads in your application. The sections below
describe the various scenarios.
One Spel class instance used in multiple threads
You can execute methods with the same Spel class instance in multiple threads, but only one
asynchronous command at a time. If you attempt to execute an asynchronous command in one
thread while another asynchronous command is already executing in another thread, you will
get a command in cycleerror. You can execute an immediate command in one thread while
executing an asynchronous command in another thread.
Separate Spel class instance used in each thread
For each Controller connection, you can have one or more Spel class instances. The first
instance for each Controller initializes an EPSON RC+ 7.0 server process and connects to the
specified Controller. To use one or more additional instances in other threads to communicate
with the same Controller, you must specify the ServerInstance property to be the same value.
You call Initialize for the first instance before using additional Spel class instances.
' Initialize Spel class instance for thread 1
m_spel_1 = New Spel
m_spel_1.ServerInstance = 1
m_spel_1.Initialize()
m_spel_1.Project = "c:\EpsonRC70\Projects\MyProject\MyProject.sprj"
m_spel_1.Connect(1)
' Initialize Spel class instance for thread 2
' This instance uses the same controller as m_spel_1
m_spel_2 = New Spel
m_spel_2.ServerInstance = 1
Thread 1
' Uses instance m_spel_1 for motion
m_spel_1.Robot = 1
Do
m_spel_1.Go(1)
m_spel_1.Go(2)
Loop Until m_stop
Thread 2
' Uses instance m_spel_2 for I/O
5. Executing Methods, Programs, Tasks
10 EPSON RC+ 7.0 option RC+ API 7.0 Rev.16
Do
m_spel_2.On(1)
m_spel_2.Delay(500)
m_spel_2.Off(1)
m_spel_2.Delay(500)
Loop Until m_stop
Using API threads in the Controller
By default, only one API thread is supported in the Controller. In this case, asynchronous
methods are executed one at a time in the Controller, even when controlling multiple robots.
For most applications that use one robot, or execute robot motion using SPEL+ tasks, this is
sufficient, but you can configure the system to use up to 10 API tasks in the Controller to allow
parallel processing for your .NET threads, such as when you are controlling more than one
robot from the same Controller.
There are two basic steps required to use more than one API task in the Controller.
1. In the EPSON RC+ GUI, connect to the Controller, then open [Setup]-[System
Configuration]-[Controller]-[Preferences]. Set Reserved tasks for APIto the desired
number of API tasks. Note that the more tasks you reserve for the API, the fewer tasks
will be available for your SPEL+ programs. For example, if you reserve 5 API tasks, then
there will be 27 tasks (32 5) available for SPEL+.
2. In your application, set the CommandTask property to specify which API task you want to
execute methods on.
In the simple example below, there is one thread for each robot in the same Controller. The
robot motion commands will execute in parallel, since a different CommandTask is used in
each thread, and ServerInstance is set to 1 for both Spel instances.
' Initialize Spel class instance for thread 1
m_spel_1 = New Spel
m_spel_1.ServerInstance = 1
m_spel_1.CommandTask = 1
m_spel_1.Initialize()
m_spel_1.Project = "c:\EpsonRC70\Projects\MyProject\MyProject.sprj"
m_spel_1.Connect(1)
' Initialize Spel class instance for thread 2
' This instance uses the same controller as m_spel_1
' And uses the second CommandTask in the controller.
m_spel_2 = New Spel
m_spel_2.ServerInstance = 1
m_spel_2.CommandTask = 2
Thread 1
' Uses instance m_spel_1 for Robot 1 motion
m_spel_1.Robot = 1
Do
m_spel_1.Go(1)
m_spel_1.Go(2)
Loop Until m_stop
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426

Epson .NET Support User manual

Category
Software
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI