Send the measurement command to the Vision Sensor and receives a response to that command. 35 6.5. Executing Measurements on Vision Sensor 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 ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SET S090 "MEASURE" Nonprocedural command SET B097 0 SET S089 "FHRUNSENDCMD" Nonprocedural command transmission function SET B098 1 WAIT B098=0 IFTHENEXP I099 0 JUMP *EXIT ENDIF 2 To receive the response to the measurement command from the Vision Sensor, execute "FHRUNRECVRES".
SET S089 "FHRUNRECVRES" Command response receiving function SET B098 1 WAIT B098=0 IFTHENEXP I099 0 If the response is not OK, exit the program. JUMP *EXIT ENDIF IFTHENEXP R090 1 JUMP *EXIT If the overall judgment is not OK, exit the program. ENDIF