38
6.6.
Getting the Measurement Results
The Vision Sensor measurements are received using "fhrunrecvval". In this sample
program, it is assumed that the Vision Sensor measurements are sent in the order
"TJG X Y Z W P R".
1
In order to receive the measurement results from the Vision Sensor, we
execute "fhrunrecvval" and check the received overall judgment value.
'Get the Measurement Result
CallProc fhrunrecvval()
'Error check
IF fh_err_number <> fh_success
GoTo *CLOSE_SAMPLE
EndIF
'Total Judge Check
IF fh_param[1] <> 1
GoTo *CLOSE_SAMPLE
EndIF
numerical sequence receiving function
If the overall judgment is not OK,
exit the program