Chapter 21 Vision Control (Option)
21-59
Note (3): The following data can be obtained with the processing
result obtaining function.
Note (4): When this command is executed, the process screen 3
(VISWORKPLN 3) is used as a work area and data on the
process screen 3 are not guaranteed. Also, you cannot use
the process screen 3 for processing.
Note (5): For this instruction, a µ
µµ
µVision board (option) is required.
Related Terms
WINDMAKE, VISWORKPLN, VISGETNUM, VISSTATUS
Example
VISSCREEN 0,0,1 'Instantaneously draws on storage memory 0.
WINDMAKE R,1,100,20,0,1 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
VISWORKPLN 0 'Designates an object from storage memory 0.
VISPROJ 1,100,100,1,128'Measures the project data.
IF VISSTATUS(0) = 0.0 THEN '
FORI1=0TO19 '
VISPRINT VISGETNUM(I1,0) '
NEXT I1 '
END IF '
VISSTATUS (n)
n Item
0 Execution result 0= Normal
-1= Abnormal
1 Unknown
2 Execution time
VISGETNUM (a, b)
b a = 0~511
0Area
1 unknown
2 unknown
3 unknown
4 Brightness integration
5 unknown
6 unknown
7 unknown
8 unknown
9 unknown
Comments to this Manuals