Skip to main content
Skip table of contents

focas_disconnect(handle)

기능

Machine Center Controller와의 연결을 해제하기 위해 사용되는 명령어 입니다.

인수

인수명자료형기본값설명

handle

int

-

FOCAS 사용에 필요한 통신 고유의 제어상수값

리턴

설명

errorCode

0 : 성공

0이외의 값 : 에러(focas_get_error_str 참조)

예외

예외설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

인수의 값이 유효하지 않을 시

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

DR_Error (DR_ERROR_STOP)

프로그램 강제 종료 시

예제

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.