Getting The Measurement Results - Omron Vision Sensor FH Series Connection Manual

Robot abb corporation edition
Hide thumbs Also See for Vision Sensor FH Series:
Table of Contents

Advertisement

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".
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
fhrunrecvval fh_socket, retries_recv, timeout_recv, outputdata, err_no;
IF
err_no <> success
1
GOTO
ENDIF
! Total Judge Check
IF
outputdata{1} <> 1
GOTO
ENDIF
The measurement results X - R are stored in the variables.
!Measurement results
res_cmd_pos_x := outputdata{2};
res_cmd_pos_y := outputdata{3};
2
res_cmd_pos_z := outputdata{4};
res_cmd_pos_w := outputdata{5};
res_cmd_pos_p := outputdata{6};
res_cmd_pos_r := outputdata{7};
THEN
exit_program;
THEN
exit_program;
numerical sequence receiving function
If the overall judgment is not OK, exit the program
The measurement results X-R
33

Advertisement

Table of Contents
loading

Table of Contents