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.
SET S089 "FHRUNRECVVAL"
SET B098 1
1
WAIT B098=0
IFTHENEXP I099<>0
JUMP *EXIT
ENDIF
IFTHENEXP R090<>1
JUMP *EXIT
ENDIF
Numerical sequence receiving function
If the result of response is not OK, exit the program.
If the overall judgment is not OK, exit the program.
36