Start Method
Description
Start one SPEL+ program.
Syntax
Sub Start (ProgramNumber As Integer)
Parameters
- ProgramNumber
The program number to start. The correspondence with the 64 main functions incorporated in SPEL+ is shown in the table below. The range is 0 to 63.
| Program Number | SPEL+ Function Name |
|---|---|
| 0 | main |
| 1 | main1 |
| 2 | main2 |
| 3 | main3 |
| 4 | main4 |
| 5 | main5 |
| ... | ... |
| 63 | main63 |
Remarks
When Start is executed, control will return immediately to the calling program. You cannot start a program that is already running. Note that Start causes global variables in the controller to be cleared and default robot points to be loaded.
See Also
Continue Method, Pause Method, Stop Method, Xqt Method
Start Example
VB Example:
Sub btnStart_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles btnStart.Click
m_spel.Start(0)
End Sub
C# Example:
void btnStart_Click(object sender, EventArgs e)
{
m_spel.Start(0);
}