Skip to main content
Skip table of contents

visor_job_change(index)

기능

입력된 번호로 비전센서의 설정작업으로 로딩합니다.

(*VS_TYPE: DR_VS_VISOR)

인수

인수명자료형기본값설명

index

int

-

변경하고자 하는 Job number

리턴

설명

result

잡 변경 성공 (1)

잡 변경 실패 (-1)

예제

PY
vs_set_info(DR_VS_VISOR)             # Select type of vision sensor
vs_connect("192.168.137.101")             # Vision IP, Default port
vis_posx = posx (410,310,300,0,0,0)       # Define the initial posx data - vision
rob_posx = posx (400,300,300,0,180,0)     # Define the initial posx data - robot 
vs_set_init_pos(vis_posx, rob_posx, VS_POS1) # Enter the initial posx data to Vision
visor_job_change(2)                   # change the job as the input parameter
 
for i in range(10):
   pos, var_list = vs_trigger()               # Execute the vision meausrement   
   tp_popup("{0}".format(var_list))

   if var_list[0] == 1:                     # Check the inspection result
       robot_posx_meas = vs_get_offset_pos(pos, VS_POS1) # offset the robot pose
      tp_popup("{0}".format(robot_posx_meas))
   else:
       tp_popup("Inspection Fail")
vs_disconnect()
JavaScript errors detected

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

If this problem persists, please contact our support.