Skip to main content
Skip table of contents

focas_connect(ip, port, timeout)

기능

Machine Center Controller와의 연결을 하기 위해 사용되는 명령어 입니다. 정상연결시 0이상의

핸들값을 반환 합니다.

연결가능한 controller는 다음과 같습니다.

  • FANUC Series 30i/31i/32i/35i-MODEL B
  • FANUC Series 31i-MODEL B5
  • FANUC Series Power Motion i-MODEL A
  • FANUC Series 0i-MODEL D/F

인수

인수명
자료형
기본값
설명

ip

str

-

Server IP address: (예) “192.168.137.200”

port

int

-

Server Port number (예) 8193

timeout

int

-

timeout설정(0:의 경우 무한, 단위:s)

리턴

설명

Handle

성공(핸들값 리턴)

errorCode

에러코드(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)
JavaScript errors detected

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

If this problem persists, please contact our support.