omron — 6.6. Getting the Measurement Results

The Vision Sensor measurements are received using "fhrunrecvval". In this sample "TJG X Y Z W P R". program, it is assumed that the Vision Sensor measurements are sent in the order 38 Check the execution result (command response) of the [RecvResponse] node. The result of the execution is stored in the global variable [g FHRobotVision OMRON pa _ _ _ ram[0]]. If the result of the execution is 1 (OK), then proceed to the next node. 6 6.6. Getting the Measurement Results 1 The [RecvVal] node receives the measurement result of the fhrunrecvval Componrnt Vision Sensor and stores it in the g FHRobotVision OMRON par _ _ _ am[0-6].

g FHRobotVision OMRON param[0] TJG _ _ _ g FHRobotVision OMRON param[1] X _ _ _ Each element contains the g FHRobotVision OMRON param[2] Y _ _ _ measurement results as shown g FHRobotVision OMRON param[3] Z _ _ _ in the table on the right. g FHRobotVision OMRON param[4] W _ _ _ g FHRobotVision OMRON param[5] P _ _ _ g FHRobotVision OMRON param[6] R _ _ _ Check for the error in the [RecvResponse] node. The error is stored in the global variable [g FHRobotVision OMRON err _ _ _ Code].

If the error code is 0 (zero), 2 g FHRobotVision OMRON param[0] _ _ _ TJG g FHRobotVision OMRON param[1] _ _ _ X g FHRobotVision OMRON param[2] _ _ _ Y g FHRobotVision OMRON param[3] _ _ _ Z g FHRobotVision OMRON param[4] _ _ _ W g FHRobotVision OMRON param[5] _ _ _ P g FHRobotVision OMRON param[6] _ _ _ R