V+ Language Reference Guide, v17.x


DISABLE program instruction

Syntax

DISABLE switch, ... , switch

Function

Turn off one or more system control switches.

Usage Considerations

If a 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 enabled.

Parameter

switch

Name of a system switch to be turned off.

The name can be abbreviated to the minimum length that uniquely identifies the switch. That is, for example, the MESSAGES switch can be referred to with ME since there is no other switch with a name beginning with the letters ME.

Details

System switches control various aspects of the operation of the V+ system, including some optional subsystems such as vision. The Switch entry in the index for this document directs you to the detailed descriptions of these switches.

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 documentation.

When a switch is disabled, or turned off, the feature it controls is no longer functional or available for use. Turning a switch on with the ENABLE monitor command or program instruction makes the associated feature functional or available for use.

NOTE: The system switches are shared by all the program tasks. Thus, care should be exercised when multiple tasks are disabling and enabling switches-otherwise, the switches may not be set correctly for one or more of the tasks. Disabling the DRY.RUN switch does not have an effect until the next EXECUTE command or instruction is processed for task #0, an ATTACH instruction is executed for the robot, or a CALIBRATE command or instruction is processed.

The SWITCH monitor command or the SWITCH real-valued function can be used to determine the status of a switch at any time. The SWITCH program instruction can be used, like the DISABLE instruction, to disable a switch.

Example

DISABLE MESSAGES	;Turns off the MESSAGES switch.

Related Keywords

ENABLE monitor command

ENABLE program instruction

SWITCH monitor command

SWITCH program instruction

SWITCH real-valued function


Submit comments to: techpubs@adept.com
Last modified on: 3/27/2012
Copyright © 1994 - 2012. Adept Technology, Inc.