omron — ID real-valued function

ID real-valued function ID real-valued function Syntax ID (component , device, board ) Function Return values that identify the configuration of the current system. Parameters 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 the device parameter value equals 4. Board #1 (the main CPU) is assumed if this parameter is omitted.

Details 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 numbers that do not exist return the value 0. For valid devices, an *Invalid argument* error message is reported if the requested component is not valid. The following table describes the type of information returned when the device parameter is set at a specified value. To see the acceptable values for the component parameter and the type of information returned for each device value, click on the device link in the table below.

eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 280 To obtain information on... Set the device parameter to... The basic system device = 1 (This is the default value.) The pendant device = 2 returns information about the manual control pendant. Robot device = 8 or device = 10+r returns information