3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

focas_disconnect()

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)

Keyword

focas / disconnect