Send the measurement command to the Vision Sensor and receives a response to that command. 32 6.5. Executing Measurements on Vision Sensor 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 !;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; !Send Measure Command cmd name := "MEASURE"; _ cmd arg{1} := ""; _ cmd arg{2} := ""; _ cmd arg{3} := ""; _ cmd arg{4} := ""; _ cmd arg{5} := ""; _ cmd arg num := 0; _ _ fhrunsendcmd fh socket, cmd name, cmd arg, cmd arg num, err no; _ _ _ _ _ _ nonprocedural command transmission function !Error check IF err no success THEN _ GOTO exit program; _ ENDIF 1 To receive the response to the measurement command from the Vision Sensor, execute "fhrunrecvres".
!Send Measure Command fhrunrecvres fh socket, retries recv, timeout recv, cmd res, err no; _ _ _ _ _ IF err no success THEN _ command response receiving function GOTO exit program; _ ENDIF !Command Response Check IF cmd res 1 THEN _ If the response is not OK, exit the program. GOTO exit program; _ ENDIF 2