Robot Property
Description
Sets / returns the current robot number.
Syntax
Property Robot As Integer
Default Value
If one or more robots exists, the default value for the first Spel instance is 1, otherwise it is 0. For all other Spel instances, the default value is 0.
Return Value
Integer value that contains the current robot number.
Remarks
On a system using multiple robots, use the Robot property to set the robot for subsequent robot related commands, such as motion commands.
See Also
RobotModel Property, RobotType Property
Robot Example
VB Example:
m_spel.Robot = 2
If Not m_spel.MotorsOn Then
m_spel.MotorsOn = True
End If
C# Example:
m_spel.Robot = 2;
if (\!m_spel.MotorsOn)
m_spel.MotorsOn = true;