CALL disable_comm (args[], error)
Statement execution routine for the DISABLE_COMM statement. It is used to perform the action of switching from the ENABLED to the DISABLED state in the Communications State model.
Syntax
DISABLE_COMMInput Parameters
No arguments are used.
Output Parameter
Real variable that receives a value indicating whether or not the operation was successful and what action should be taken by the calling routine. 0 indicates the operation was successful (also returned if the model is already disabled). Otherwise, a standard AIM operator error response code is returned. See the standard AIM operator error response code values for details.
Details
This routine will disable host communication and place the equipment in the "not communicating" state.
Before communication can be successfully disabled, the communication channel must be properly installed and configured and communications with the host must be established. All the configuration options for the serial or ethernet channel as well as the GEM parameters are set in the GEM Variables database.
The equipment constants that define the communication configuration and GEM parameters are included in Predefined SVs, ECs, and DVVALs. They are also summarized in Tables 4-1 through 4-3.