Skip to main content
Skip table of contents

svm_get_vision_info(job_id)

기능

입력된 비전작업에 해당하는 측정명령을 수행한다. WCM(워크셀 매니저)를 통하여 비전작업의 측정명령 상세정보를 미리 입력하여야 한다.

인수

인수명자료형기본값설명

job_id

int

-

비전작업 id (. 1000, 2000, …)

리턴

설명

1

측정 성공 - 1개의 물체를 검출/측정에 성공했다는 의미

0

측정 실패 해당하는 비전작업 물체를 검출하지 못함.

-1

측정 실패 통신 오류 발생 (timeout)

예제

PY
svm_connect()                           # Connect to vision 
vision_test=1000                         # Define vision job ID
svm_set_job(vision_test)                   # Load the vision_test (1000)
shoot_pos=svm_get_robot_pose (vision_test) # Load the robot pose of vision_test
count=svm_get_vision_info(vision_test)     # Execute the vision measurement
tp_popup("{0}".format(count))             # Check the result 
svm_disconnect()                           # Disconnect to vision 
JavaScript errors detected

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

If this problem persists, please contact our support.