CommandTask Property
Description
Specifies the reserved API task to use in the Controller for executing robot commands.
Syntax
Property CommandTask As Integer
Default Value
The default value is 0 (do not use a reserved API task).
Remarks
Use CommandTask when you want to execute Spel robot commands on another thread in the Controller. Normally, CommandTask is used on a multi-robot system. Before using CommandTask, you must first reserve tasks in the Controller to be used by the API from Epson RC+ menu -[Setup]-[System Configuration]-[Controller]-[Preferences]. You can reserve up to 16 API tasks in the Controller.
See Also
ServerInstance Property
CommandTask Example
VB Example:
' In Robot1 thread
m_spel.CommandTask = 1
m_spel.Robot = 1
' In Robot2 thread
m_spel.CommandTask = 2
m_spel.Robot = 2
C# Example:
// In Robot1 thread
m_spel.CommandTask = 1;
m_spel.Robot = 1;
// In Robot2 thread
m_spel.CommandTask = 2;
m_spel.Robot = 2;