Breadcrumbs

vs_connect(ip_addr, port_num=9999)

기능

비전시스템의 통신을 연결한다.

인수

인수명

자료형

기본값

설명

ip_addr

str

-

비전 모듈의 Server IP (예, 192.168.137.200)

port_num

int

9999

Port 번호 (예, 9999)

리턴

설명

0

연결 성공

-1

연결 실패

예제

Python
vs_set_info(DR_VS_COGNEX) #Vision type information setting
vs_connect("192.168.137.10") #Connect to vision - Vision IP, Default port
# Enter your task
vs_disconnect()               #Disconnect to vision