The following pages provide detailed information on the properties and methods of the global Robot Class. This class provides access to the features and status of each robot configured in the system, e.g. the current position of a robot, processes for establishing the position reference for each axes of each robot, functions for forcing an in-process motion to decelerate to a halt, methods for setting and getting the robot's base and tool offsets, etc.
The most important operations of the Robot Class are to associate a specific robot with a specific thread and to grant exclusive control of a robot to a thread. Most read-only robot operations require that a statement either explicitly specify a robot or have a previously Selected robot. For example, to read the current position of a robot, the Selected robot will be accessed if no robot is specified. More importantly, in order to control or move a robot, a thread must first be Attached to a robot in order to gain exclusive access to it.
As is standard in GPL, conversions between different arithmetic types, e.g. Integer, Single, Double, are automatically performed as required. So, for numeric properties and methods of the Robot Class, it is not necessary to have different variations of these members to deal with the different possible mixes of input parameter data types. Also, as appropriate, the properties and methods generally produce results that are formatted as Double’s. These results will automatically be converted to smaller data types as necessary, e.g. Double -> Integer, and will not generate an error so long as numeric overflow does not occur.
Table 19-77 summarizes the properties and methods that are described in greater detail in the following sections.
Member | Type | Description |
---|---|---|
Property |
Sets and gets the number of the robot that is exclusively controlled by a thread. |
|
Property |
Sets and gets the position and orientation offset for the base of the robot. |
|
Property |
Gets an Integer that contains flag bits that indicate if any special Cartesian trajectory modes are active. |
|
Property |
Sets and gets elements of a parameter array whose interpretation is specific to each kinematic module. |
|
Method |
Defines internal table of motor encoder "Linearity compensation" correction values that are automatically applied to encoder values. |
|
Property |
Returns a Cartesian Location whose value is equal to the originally planned final destination of the previously executed motion. |
|
Property |
Returns an Angles Location whose value is equal to the originally planned final destination of the previously executed motion. |
|
Method |
Homes the Attached robot to establish the reference positions for each axes. |
|
Method |
Homes all robots to establish the reference positions for each of their axes. |
|
Method |
Converts an array of axis joint angles (in degrees or millimeters) to an equivalent array of motor positions (in encoder counts).. |
|
Property |
Returns a Profile Object whose properties are equal to those of the currently executing motion or the last executed motion if no motion is active. |
|
Property |
Returns a code that indicates the temperature status of a motor. |
|
Method |
Converts an array of motor positions (in encoder counts) to an equivalent array of axis joint angles (in degrees or millimeters). |
|
Property |
Asserts or retrieves the last asserted value that specifies the mass of the payload being carried by the robot. |
|
Property |
Sets the Boolean flag that forces any in-process motion for a robot to be rapidly decelerated to a stop. |
|
Property |
Returns a Cartesian Location whose value is equal to the accumulated modifications generated by the Real-time Trajectory Modification mode. |
|
Property |
Gets the position and orientation offset for the base of the robot that was set when the controller was restarted. |
|
Property |
Gets the position and orientation offset for the tool or gripper of the robot that was set when the controller was restarted. |
|
Property |
Sets and gets the default robot number to be used when accessing a specific robot. |
|
Property |
Returns a Cartesian Location whose value is equal to the initial position and orientation of the previously executed motion. |
|
Property |
Returns an Angles Location whose value is equal to the initial axes positions of the previously executed motion. |
|
Property |
Returns an Angles Location whose components contain the instantaneous speed of each axis. |
|
Property |
Sets and gets the position and orientation offset for the tool or gripper of the robot. |
|
Property |
Gets an Integer that indicates the current state of the Trajectory Generator for a given robot. |
|
Property |
Gets a Cartesian Location whose value indicates the current position and orientation of a robot. |
|
Property |
Gets an Angles Location whose value indicates the current position of each axes of a robot. |