omron — SWITCH program instruction

SWITCH program instruction SWITCH program instruction Syntax SWITCH switch_name = value SWITCH switch_name[ index ] = value Function Enable or disable a system switch based on a value. Usage Considerations If the specified switch accepts an index qualifier and the index is zero or omitted (with or without the brackets), all the elements of the switch array are set according to the value given. Parameters switch_name Name of the switch whose setting is to be modified. The switch name can be abbreviated to the minimum length that identifies it uniquely.

index For switches that can be qualified by an index, this is an optional real value, variable, or expression that specifies the specific switch element of interest (see above). value Real value, variable, or expression that determines whether the switch is to be enabled or disabled. The switch is enabled if the value is TRUE (nonzero). The switch is disabled if the value is FALSE (zero). Details Sets the given system switch to the setting implied by the value on the right of the equal sign. The switch name can be abbreviated to the minimum length that identifies it uniquely. For details on switch names, see the section Switches in the eV+ Language User's Guide .

Other system switches are available when options are installed. Refer to the option documentation for details. For example, the switches associated with the AdeptVision options are described in the AdeptVision Reference Guide . eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 513