70 / 109 Issued: 11.10.2013 Version: KST VisionTech 2.1 V1
KUKA.VisionTech 2.1
processing task is transferred. VTRESULT_CHECK is executed in the ad-
vance run.
Syntax VTRESULT_CHECK(
Image processing result)
Explanation of
the syntax
Example
11.9 Subprogram VT_RESULTCHECK2
Description The subprogram VT_RESULTCHECK2 checks the result of an image pro-
cessing task. If the result is faulty, a message is displayed. The result of the
image processing task is transferred. VT_RESULTCHECK2 is executed in the
advance run.
Syntax RET = VT_RESULTCHECK2(
Image processing result)
Explanation of
the syntax
Example
11.10 Subprogram VT_WAIT
Description The subprogram VT_WAIT stops the program sequence until the flag is set to
the value TRUE. Program execution is then resumed. VT_WAIT triggers an
advance run stop.
Syntax VT_WAIT("
Flag")
Explanation of
the syntax
Element Description
Image processing
result
The image processing result that is to be checked
Type: VTRESULT (IN)
DECL VTRESULT RESULT
RESULT = GET_VTRESULT("VisionTechConfig")
VTRESULT_CHECK(RESULT,"VisionTechConfig")
Element Description
RET Return value
Type: BOOL
TRUE: The image processing task has been exe-
cuted successfully.
FALSE: An error occurred during execution of the
image processing task.
Image processing
result
The image processing result that is to be checked
Type: VTRESULT (IN)
DECL VTRESULT RESULT
RESULT = GET_VTRESULT("VisionTechConfig")
VT_RESULTCHECK2(RESULT,"VisionTechConfig")
The flag for which the program is to wait is the same flag that is set to
TRUE in the subprograms DO_GETVTRESULT and
DO_GETVTRESULTS.
Element Description
Flag
Number of the flag for which the program is to wait
Type: INT (IN)