Definition
focas_disconnect(handle)
Features
This command is used to disconnect from the Machine Center Controller.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
handle |
int |
- |
Communication specific control constant value required for use of FOCAS |
Return
|
Value |
Description |
|---|---|
|
errorCode |
0 : Success Value other than 0: error (see focas_get_error_str) |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data error occurred |
|
DR_Error (DR_ERROR_VALUE) |
Parameter value is invalid |
|
DR_Error (DR_ERROR_RUNTIME) |
C Extension module error occurred |
|
DR_Error (DR_ERROR_STOP) |
Program terminated forcefully |
Example
Python
ErrCode, hMachineCenter = focas_connect("10.10.0.95", 8193, 10)
ErrCode = focas_disconnect(hMachineCenter)