omron — Example

SELECT monitor command SELECT monitor command Syntax SELECT device_type = unit Function Select a unit of the named device for access by the current eV+ monitor. Usage Considerations The SELECT command needs to be used only if there are multiple devices of the same type connected to your system controller. That capability is available only if your system has the eV+ Extensions option installed. The SELECT command affects only the robot selection for the eV+ monitor (i.e., for subsequent monitor commands, such as HERE and WHERE).

If you want to change the selection for a program task, you must execute the SELECT program instruction in that program task -- either within a program, or by using the DO monitor command. For example, DO @1 SELECT ROBOT = 2 changes the robot selection for program task 1). Parameters device_type Keyword that identifies the type of device that is to be selected. Currently, the only valid device types are "ROBOT" and "SAFETYZONE" (which must be specified without quotes). The device-type keyword can be abbreviated. unit Real value, variable, or expression (interpreted as an integer) that specifies the particular unit to be selected.

The values that are accepted depend on the configuration of the system. Details In a multiple-robot system, the SELECT monitor command specifies which robot the eV+ monitor is to access. In a system with multiple safety zones, the SELECT monitor command specifies which safety zone the eV+ monitor will access. Example Select robot #2: SELECT ROBOT = 2 eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 151