Sets and gets the number of the robot associated with a robot Exception.
exception_object.RobotNum =<new_value>
-or-
...exception_object.RobotNum
Prerequisites
Only valid for robot Exceptions.
Parameters
None
Remarks
For robot Exceptions, the RobotNum property specifies the number of the robot associated with the error condition. This value can range from 0 to 16. A value of 0 indicates that it is a conveyor belt and values from 1 to 16 specify regular robot numbers. For example, when the error code is -1006 (Robot already attached), the RobotNum property indicates which robot was being accessed when this error was generatedWhen a New Exception is created, it defaults to a general Exception not a robot. When an Exception is set to a robot type, the RobotNum value is initially set to 1.
Examples
Dim exc1 As New Exception ' Create new general exception
exc1.RobotError = True ' Indicate its a robot error
exc1.ErrorCode = -1006 ' *Robot already attached*
exc1.RobotNum = 3 ' Specify the robot
Console.WriteLine(exc1.Message) ' *Robot already attached* Robot 3
See Also
Exception Handling | exception_object.RobotError | exception_object.Axis