76 / 109 Issued: 11.10.2013 Version: KST VisionTech 2.1 V1
KUKA.VisionTech 2.1
Explanation of
the syntax
Example
11.17 Subprogram DO_GETVTRESULTS
Description The subprogram DO_GETVTRESULTS is used for the detection of multiple
components.
DO_GETVTRESULTS generates a result structure for all object instances
found. This is written to the transfer parameter RESULTS. Once the subpro-
gram has been executed, the parameter PARTCOUNTER contains the num-
ber of components that have been found by the image processing system. The
flags are then set to TRUE and FALSE. The subprogram is executed in the ad-
vance run.
DO_GETVTRESULT can also be used as an interrupt program. This is called
after the image processing task has been executed. In this case, the subpro-
gram is executed in the main run.
Syntax Syntax: DO_GETVTRESULTS("
Configuration file", RESULTS[], PART-
COUNTER, "
Flag True", "Flag False")
Explanation of
the syntax
Example
Element Description
Configuration file
Name of the configuration file
Type: CHAR (IN)
RESULT Result of image processing
Type: VTRESULT (OUT)
Flag True
Number of the flag to be set to TRUE once the result
has been read
Type: INT (IN)
Flag False
Number of the flag to be set to FALSE once the result
has been read
Type: INT (IN)
DECL VTRESULT RESULT
DO_GETVTRESULT("VisionTechConfig", RESULT, 1, 998)
Element Description
Configuration file
Name of the configuration file
Type: CHAR (IN)
RESULTS Results of image processing
Type: VTRESULT (OUT)
PART-
COUNTER
Contains the number of object instances found after
execution of the subprogram
Type: INT (OUT)
Flag True
Number of the flag to be set to TRUE once the result
has been read
Type: INT (IN)
Flag False
Number of the flag to be set to FALSE once the result
has been read
Type: INT (IN)
DECL VTRESULT[100] RESULTS
DECL INT PARTCOUNTER = 0
DO_GETVTRESULTS("VisionTechConfig", RESULTS, PARTCOUNTER, 1, 998)