37
6.5.
Executing Measurements on Vision Sensor
Send the measurement command to the Vision Sensor and receives a response to
that command.
1
To send the measurement command to the Vision Sensor, set the
command name to "MEASURE" and execute "fhrunsendcmd".
'(4) Execute measurement and get the measurement results of the FH
fh_res_string = "MEASURE"
fh_para_cnt = 0
fh_cmd_input_arg[1] = ""
fh_cmd_input_arg[2] = ""
fh_cmd_input_arg[3] = ""
fh_cmd_input_arg[4] = ""
fh_cmd_input_arg[5] = ""
CallProc fhrunsendcmd(fh_para_cnt, fh_res_string, fh_cmd_input_arg[1-5])
'Error check
IF fh_err_number <> fh_success
GoTo *CLOSE_SAMPLE
EndIF
2
To receive the response to the measurement command from the Vision
Sensor, execute "fhrunrecvres".
L3% = 0
'Recv Command Response
CallProc L3% = fhrunrecvres()
'Error check
IF fh_err_number <> fh_success
GoTo *CLOSE_SAMPLE
EndIF
'Command Response Check
IF L3% <> 1
GoTo *CLOSE_SAMPLE
EndIF
nonprocedural command transmission function
nonprocedural command
command response receiving function
If the response is not OK, exit the program.
Содержание Vision Sensor FH Series
Страница 1: ...Robot Connection Guide NACHI FUJIKOSHI CORP Edition Vision Sensor FH Series Vision System Z464 E1 01 ...
Страница 14: ...12 ...
Страница 63: ......