
Chapter 21 Vision Control (Option)
21-77
Note (1): If the model to be registered is not more than 16 pixels inside
from the edge of the screen, it cannot be registered.
Note (2): The reference coordinates are used to designate a point to
detect when a model is searched.
Note (3): A registered model requires a certain amount of brightness
distribution. If the brightness distribution is too flat or there
are many small differences in the model, it cannot be
registered.
Note (4): If you designate a number already registered, it overwrites the
already registered model.
Note (5): You can find the availability of registration by using
VISSTATUS after the instruction is executed.
Note (6): 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 (7): For this instruction, a µ
µµ
µVision board (option) is required.
Note (8): During execution of this instruction, do not power off the
controller. If you do so, the controller will recognize in the
next powering-on sequence that it has not been normally
terminated, so it will initialize the vision-related information.
Related Terms
SHREFMODEL, SHDISPMODEL, SHCLRMODEL, SHMODEL
Example
VISSCREEN 1,0,1 'Instantaneously draws on draw screen No. 0.
VISCLS 0 '
VISRECT 100,100,100,100 '
CAMIN 1 'Obtains a camera image from the storage memory.
SHDEFMODEL 1,100,100,100,100,50,50
'Registers the model.
I1 = VISSTATUS(0) '
VISLOC 10,10 '
IF I1 = 0 THEN VISPRINT “Registration completed” ELSE VISPRINT “Cannot register.”
'
VISCAMOUT 1 '
VISSTATUS (n)
n Item
0 Execution Result
0 = Normal
-1 = Designated area error
-2 = Space full
-3 = Uniform model
-4 = Complicated
1,2 = Search time long
3,4 = Angle unidentifiable
[V1.4 or later]
1 Not Used 0
2 Execution Time
Commentaires sur ces manuels