
Chapter 21 Vision Control (Option)
21-57
Example
VISSCREEN 0,0,1 'Instantaneously draws on storage memory 0.
WINDMAKE R,1,512,480,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
VISWORKPLN 0 'Designates the object from storage memory 0.
VISPLNOUT 0 '
VISMEASURE 1,0,0,1,2,128
'Obtains the accumulated brightness, area, center of
'gravity and main axis angle.
IF VISSTATUS(0) = 0.0 THEN '
FORI1=0TO9 '
VISLOC 0,I1 '
VISPRINT “Result”;I1;“=”;VISGETNUM(0,I1)
'
NEXT I1 '
END IF '
Kommentare zu diesen Handbüchern