Skip to main content
Skip table of contents

focas_disconnect(handle)

Features

This command is used to disconnect from the Machine Center Controller.

Parameter

Parameter NameData TypeDefault ValueDescription

handle

int

-

Communication specific control constant value required for use of FOCAS

Return

ValueDescription

errorCode

0 : Success

Value other than 0: error (see focas_get_error_str)

Exception

ExceptionDescription

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

PY
ErrCode, hMachineCenter = focas_connect("10.10.0.95", 8193, 10)
ErrCode = focas_disconnect(hMachineCenter)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.