
Chapter 21 Vision Control (Option)
21-97
VISSTATUS (Function)
Function
Monitors the process result of each instruction.
Format
VISSTATUS (<Parameter>)
Explanation
<Parameter> Designates the data to obtain (0 to 2).
0: Execution result status
1: Auxiliary data
2: Processing time
An obtained value is represented as a single precision real type constant (F type).
Note (1): The obtained data varies depending on the instructions
previously executed. Refer to the explanation of each
instruction.
Note (2): All processing times for instructions become objects. You
can obtain the processing times of previously executed
instructions.
Note (3): For this instruction, a µ
µµ
µVision board (option) is required.
Related Terms
VISMEASURE, VISPROJ, VISEDGE, VISREADQR, BLOB, BLOBMEASURE,
SHMODEL, SHCORNER, SHCIRCLE
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 'Execute labeling.
I1 = VISSTATUS(0) '
I2 = VISSTATUS(1) '
F1 = VISSTATUS(2) '
VISLOC 10,9 '
VISPRINT “Execution result =”;I1;“Labeling number =”;I2, “Execution time
(second)=”;F1 '
IF I1 = 0 THEN '
IF I2 <> 0 THEN '
FORI1=0TOI2-1 '
VISCROSS VISGETNUM(I1,1), VISGETNUM(I1,2)
'
NEXT I1 '
END IF '
END IF '
VISCAMOUT 1 '
Comentarios a estos manuales