Executing Measurements On Vision Sensor - Omron Vision Sensor FH Series Connection Manual

Robot nachi-fujikoshi corp. edition
Hide thumbs Also See for Vision Sensor FH Series:
Table of Contents

Advertisement

6.5.

Executing Measurements on Vision Sensor

Send the measurement command to the Vision Sensor and receives a response to
that command.
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] = ""
1
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
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
2
GoTo *CLOSE_SAMPLE
EndIF
'Command Response Check
IF L3% <> 1
GoTo *CLOSE_SAMPLE
EndIF
nonprocedural command
nonprocedural command transmission function
command response receiving function
If the response is not OK, exit the program.
37

Advertisement

Table of Contents
loading

Table of Contents