|
V+ 12.4 Release Notes |
ID (component, device, board)
Return values that identify the configuration of the current system.
component Real value, variable, or expression (interpreted as an integer) whose value determines which component of identification information is returned.
device Optional real value, variable, or expression (interpreted as an integer) whose value selects the device to be identified. Device #1 (the basic system) is assumed if this parameter is omitted.
board Optional integer specifying the CPU of interest when device = 4. Board #1 (the main CPU) is assumed if this parameter is omitted.
The ID function enables a program to access the information displayed by the ID monitor command. The values of the components are the same as the fields displayed by that command.
The function returns the value 0 for devices that do not exist.
Device number 1 refers to the basic system. The acceptable values for the component parameter, and the corresponding values returned, are:
The value for the controller hardware configuration [returned by ID(11,1)] should be interpreted as a bit field, as follows:
Bit 1 (LSB): Graphics system processor (mask = 1)
This bit is 1 if the system processor in the controller includes hardware components for graphics output by the V+ system.
Bit 2: V+ monitor outputs to graphics monitor (mask = 2)
This bit is 1 if the system processor supports graphics output and the configuration switches on the system processor are set to direct the V+ monitor output to the graphics monitor. This bit is 0 if the V+ monitor output is directed to a terminal connected to the system controller.
Bit 4: SIO board present (mask = 8)
This bit is set if the SIO board is present in the controller.
Device number 2 refers to the manual control pendant. The component parameter must have the value 1. The value returned is the version number of the pendant software.
Device number 3 refers to the AdeptVision system if one is included in the system. The acceptable values for the component parameter, and the corresponding values returned, are listed below. (If the system has multiple vision systems, the information returned is for the vision system that is currently selected.)
Device number 4 refers to the system CPUs.
Device number 5 returns servo information.
Result of ID (component, 5) Returns the servo version number Returns the servo revision numberDevice numbers 6 through 7 are invalid and return the value 0, as do any other specified devices that do not exist. For valid devices, an *Invalid argument* error message is reported if the requested component is not valid.
Device number 8 returns information for the currently selected robot. The acceptable values for the component parameter are the same as for a robot.
The values returned for device number 9 are for Adept's internal use.
Device number 10 refers to the external encoders connected to the robot controller. The acceptable values for the component parameter are the same as for a robot.
Device numbers 11, 12, ... refer to robot number 1, 2, ..., respectively, for each robot connected to the controller. That is, a device number equal to 10+r refers to robot number r, which can range from 1 to the value returned by the function SELECT(ROBOT, -1). The acceptable values for the component parameter, and the corresponding values returned, are listed below.
Device number 50 refers to the currently selected force sensor. Device numbers 51 to 66 refer to force sensors numbered 1 to 16, respectively.
See the documentation for the SELECT program instruction for an explanation of selecting among multiple force sensors. The acceptable values for the component parameter, and the corresponding values returned, are listed below.
ID device (monitor command)
$ID (select) (string function)
SELECT (device_type, mode) (monitor command, program instruction, and real-valued function)
|
Please submit comments to: techpubs@adept.com |