
Chapter 21 Vision Control (Option)
21-93
21.10 Obtaining Results
VISGETNUM (Function)
Function
Obtains an image process result from the storage memory.
Format
VISGETNUM(<Parameter 1>, <Parameter 2>)
Explanation
<Parameter 1> Designates the number of the process result to obtain (0 to
511).
<Parameter 2> Designates the type of the process result to obtain (0 to 9).
Note (1): The result contents stored change depending on an image
process instruction executed in advance. Refer to the image
process instructions.
Note (2) : The result is kept until the next image process instruction is
executed; therefore, you can obtain the result as whenever
you want.
Note (3) : The value becomes unknown if you designate an unknown
storage with the image process instruction in advance.
Note (4) : For this instruction, a µ
µµ
µVision board (option) is required.
Related Terms
VISMEASURE, VISPROJ, VISEDGE, VISREADQR, BLOB, BLOBMEASURE,
SHMODEL, SHCORNER, SHCIRCLE, VISPOSX, VISPOSY
Example
VISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.
VISCLS 0 '
WINDMAKE R,1,512,480,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
VISPLNOUT 0 '
VISWORKPLN 0 'Designates an object to storage memory 0.
BLOB 1,0,0,0,128 'Executes labeling.
I1 = VISSTATUS(0) '
IF I1 = 0 THEN '
I2 = VISSTATUS(1) '
IF I2 <> 0 THEN '
FORI1=0TO15 '
VISDEFCHAR 1,1,0 '
VISLOC 10,10+I1 '
VISPRINT “X=”;VISGETNUM(I1,1), VISGETNUM(I1,2)
'
NEXT I1 '
END IF '
END IF '
Comentários a estes Manuais